Merge pull request #443 from jl777/dev

fix default volume for paxprice, doesnt affect consensus
This commit is contained in:
jl777
2017-06-27 17:52:10 +03:00
committed by GitHub

View File

@@ -708,7 +708,7 @@ UniValue paxprice(const UniValue& params, bool fHelp)
height = chainActive.Tip()->nHeight;
else height = atoi(params[2].get_str().c_str());
//if ( params.size() == 3 || (basevolume= COIN * atof(params[3].get_str().c_str())) == 0 )
basevolume = 1;
basevolume = 100000;
relvolume = komodo_paxprice(&seed,height,(char *)base.c_str(),(char *)rel.c_str(),basevolume);
ret.push_back(Pair("base", base));
ret.push_back(Pair("rel", rel));