This commit is contained in:
blackjok3r
2018-11-18 21:32:19 +08:00
parent dbbe6d4191
commit d506b5433e

View File

@@ -1074,7 +1074,7 @@ UniValue cleanwallettransactions(const UniValue& params, bool fHelp)
for (map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it) for (map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
{ {
const CWalletTx& wtx = (*it).second; const CWalletTx& wtx = (*it).second;
if (wtx.GetDepthInMainChain() < oldestTxDepth) if (wtx.GetDepthInMainChain() > oldestTxDepth)
{ {
TxToRemove.push_back(wtx.GetHash()); TxToRemove.push_back(wtx.GetHash());
fprintf(stderr, "[%s] : depth.%i \n",wtx.GetHash().ToString().c_str(),wtx.GetDepthInMainChain()); fprintf(stderr, "[%s] : depth.%i \n",wtx.GetHash().ToString().c_str(),wtx.GetDepthInMainChain());