From 0a6fabc41ac3026bd10737f76ce109fe651d2ae7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 24 Oct 2016 16:16:45 -0300 Subject: [PATCH] test --- src/rpcblockchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 804168306..e4960b17c 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -394,7 +394,7 @@ Value paxprice(const Array& params, bool fHelp) std::string base = params[0].get_str(); std::string rel = params[1].get_str(); int32_t height = atoi(params[2].get_str().c_str()); - if ( basevolume == 0 ) + if ( (basevolume= atol(params[3].get_str().c_str())) == 0 ) basevolume = COIN; relvolume = komodo_paxprice(height,(char *)base.c_str(),(char *)rel.c_str(),basevolume); ret.push_back(Pair("base", base));