File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -4208,35 +4208,6 @@ UniValue getautocombinethreshold(const JSONRPCRequest& request)
4208
4208
return result;
4209
4209
}
4210
4210
4211
- UniValue printAddresses ()
4212
- {
4213
- std::vector<COutput> vCoins;
4214
- pwalletMain->AvailableCoins (&vCoins);
4215
- std::map<std::string, double > mapAddresses;
4216
- for (const COutput& out : vCoins) {
4217
- CTxDestination utxoAddress;
4218
- ExtractDestination (out.tx ->tx ->vout [out.i ].scriptPubKey , utxoAddress);
4219
- std::string strAdd = EncodeDestination (utxoAddress);
4220
-
4221
- if (mapAddresses.find (strAdd) == mapAddresses.end ()) // if strAdd is not already part of the map
4222
- mapAddresses[strAdd] = (double )out.tx ->tx ->vout [out.i ].nValue / (double )COIN;
4223
- else
4224
- mapAddresses[strAdd] += (double )out.tx ->tx ->vout [out.i ].nValue / (double )COIN;
4225
- }
4226
-
4227
- UniValue ret (UniValue::VARR);
4228
- for (std::map<std::string, double >::const_iterator it = mapAddresses.begin (); it != mapAddresses.end (); ++it) {
4229
- UniValue obj (UniValue::VOBJ);
4230
- const std::string* strAdd = &(*it).first ;
4231
- const double * nBalance = &(*it).second ;
4232
- obj.pushKV (" Address " , *strAdd);
4233
- obj.pushKV (" Balance " , *nBalance);
4234
- ret.push_back (obj);
4235
- }
4236
-
4237
- return ret;
4238
- }
4239
-
4240
4211
UniValue getsaplingnotescount (const JSONRPCRequest& request)
4241
4212
{
4242
4213
if (!EnsureWalletIsAvailable (pwalletMain, request.fHelp ))
You can’t perform that action at this time.
0 commit comments