Skip to content

Commit

Permalink
Merge pull request #12 from absolute-community/revert-11-revert-8-The…
Browse files Browse the repository at this point in the history
…Caat-patch-1

Re-Apply "Do not list locked coins - take 2""
  • Loading branch information
madagaga authored Jul 21, 2018
2 parents 4b25409 + a772441 commit 32e3c1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rpc/masternode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ UniValue masternode(const UniValue& params, bool fHelp)
" current - Print info on current masternode winner to be paid the next block (calculated locally)\n"
" genkey - Generate new masternodeprivkey\n"
#ifdef ENABLE_WALLET
" outputs - Print masternode compatible outputs\n"
" outputs - Print masternode compatible (unlocked) outputs\n"
" start-alias - Start single remote masternode by assigned alias configured in masternode.conf\n"
" start-<mode> - Start remote masternodes configured in masternode.conf (<mode>: 'all', 'missing', 'disabled')\n"
#endif // ENABLE_WALLET
Expand Down Expand Up @@ -376,6 +376,9 @@ UniValue masternode(const UniValue& params, bool fHelp)

UniValue obj(UniValue::VOBJ);
BOOST_FOREACH(COutput& out, vPossibleCoins) {
// Do not add locked coins
if(pwalletMain->IsLockedCoin(out.tx->GetHash(), out.i))
continue;
obj.push_back(Pair(out.tx->GetHash().ToString(), strprintf("%d", out.i)));
}

Expand Down

0 comments on commit 32e3c1e

Please sign in to comment.