Skip to content

Commit

Permalink
Merge branch 'master' into address-history
Browse files Browse the repository at this point in the history
  • Loading branch information
alex v authored Jul 1, 2020
2 parents 5f27171 + 2863e3e commit 79b8722
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rpc/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,7 @@ UniValue getaddressbalance(const UniValue& params, bool fHelp)
CAmount stakable = 0;
CAmount voting_weight = 0;
CAmount received = 0;
CAmount staked = 0;

for (std::vector<std::pair<CAddressHistoryKey, CAddressHistoryValue> >::const_iterator it=addressHistory.begin(); it!=addressHistory.end(); it++) {
spending += (*it).second.spendable;
Expand All @@ -1122,6 +1123,7 @@ UniValue getaddressbalance(const UniValue& params, bool fHelp)
result.pushKV("stakable", stakable);
result.pushKV("voting_weight", voting_weight);
result.pushKV("received", received);
result.pushKV("staked", staked);

return result;

Expand Down

0 comments on commit 79b8722

Please sign in to comment.