]> Git Repo - VerusCoin.git/commitdiff
Test
authorjl777 <[email protected]>
Sat, 30 Jun 2018 14:13:18 +0000 (03:13 -1100)
committerjl777 <[email protected]>
Sat, 30 Jun 2018 14:13:18 +0000 (03:13 -1100)
src/wallet/rpcwallet.cpp

index a16fc77e487784313f73b54c0e9266a65ec32a2a..deb49e94a51e78217be9285892a508ce5adfeeb2 100644 (file)
@@ -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));
This page took 0.025105 seconds and 4 git commands to generate.