Oraclesregister, allow using floating point for < 1.0 data fee
This commit is contained in:
@@ -5715,7 +5715,8 @@ UniValue oraclesregister(const UniValue& params, bool fHelp)
|
|||||||
const CKeyStore& keystore = *pwalletMain;
|
const CKeyStore& keystore = *pwalletMain;
|
||||||
LOCK2(cs_main, pwalletMain->cs_wallet);
|
LOCK2(cs_main, pwalletMain->cs_wallet);
|
||||||
txid = Parseuint256((char *)params[0].get_str().c_str());
|
txid = Parseuint256((char *)params[0].get_str().c_str());
|
||||||
datafee = atol((char *)params[1].get_str().c_str());
|
if ( (datafee= atol((char *)params[1].get_str().c_str())) == 0 )
|
||||||
|
datafee = atof((char *)params[1].get_str().c_str()) * COIN;
|
||||||
hex = OracleRegister(0,txid,datafee);
|
hex = OracleRegister(0,txid,datafee);
|
||||||
if ( hex.size() > 0 )
|
if ( hex.size() > 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user