This commit is contained in:
blackjok3r
2018-11-18 21:28:10 +08:00
parent 702f709517
commit dbbe6d4191

View File

@@ -1064,7 +1064,7 @@ UniValue cleanwallettransactions(const UniValue& params, bool fHelp)
int32_t oldestTxDepth = 0; int32_t oldestTxDepth = 0;
BOOST_FOREACH(const COutput& out, vecOutputs) BOOST_FOREACH(const COutput& out, vecOutputs)
{ {
if ( out.nDepth > oldestTxHeight ) if ( out.nDepth > oldestTxDepth )
oldestTxDepth = out.nDepth; oldestTxDepth = out.nDepth;
} }
oldestTxDepth = oldestTxDepth + 1; oldestTxDepth = oldestTxDepth + 1;