File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -733,12 +733,12 @@ UniValue getbalance(const UniValue& params, bool fHelp)
733
733
if (params[0 ].get_str () == " *" ) {
734
734
// Calculate total balance a different way from GetBalance()
735
735
// (GetBalance() sums up all unspent TxOuts)
736
- // getbalance and getbalance '*' 0 should return the same number
736
+ // getbalance and " getbalance * 1 true" should return the same number
737
737
CAmount nBalance = 0 ;
738
738
for (map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet .begin (); it != pwalletMain->mapWallet .end (); ++it)
739
739
{
740
740
const CWalletTx& wtx = (*it).second ;
741
- if (!wtx. IsTrusted ( ) || wtx.GetBlocksToMaturity () > 0 )
741
+ if (!CheckFinalTx (wtx ) || wtx.GetBlocksToMaturity () > 0 || wtx. GetDepthInMainChain () < 0 )
742
742
continue ;
743
743
744
744
CAmount allFee;
You can’t perform that action at this time.
0 commit comments