From ca76a7dfcd7ed4a145e9f7129986e05ad4378ba5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 30 Jun 2018 03:13:18 -1100 Subject: [PATCH] Test --- src/wallet/rpcwallet.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index a16fc77e4..deb49e94a 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -4699,7 +4699,7 @@ UniValue getbalance64(const UniValue& params, bool fHelp) continue; if (!setAddress.count(address)) continue; - segid = komodo_segid((char *)CBitcoinAddress(address).ToString().c_str()); + segid = (komodo_segid32((char *)CBitcoinAddress(address).ToString().c_str()) & 0x3f); if ( out.nDepth < 100 ) nValues2[segid] += nValue, total2 += nValue; else nValues[segid] += nValue, total += nValue; @@ -4710,9 +4710,9 @@ UniValue getbalance64(const UniValue& params, bool fHelp) for (i=0; i<64; i++) { UniValue item(UniValue::VOBJ); - item.push_back((double)nValues[i] / COIN); + item.push_back((uint64_t)nValues[i]); a.push_back(item); - item.push_back((double)nValues2[i] / COIN); + item.push_back((uint64_t)nValues2[i]); b.push_back(item); } ret.push_back(Pair("staking", a));