remove rescan for corrupt tx and add LOCK2 for deleteion of staking tx. debug prints.

This commit is contained in:
blackjok3r
2018-12-29 21:18:45 +08:00
parent 0de6fd12ee
commit 8799583cc0
2 changed files with 7 additions and 1 deletions

View File

@@ -3852,6 +3852,7 @@ bool static DisconnectTip(CValidationState &state, bool fBare = false) {
if ((i == (block.vtx.size() - 1)) && (ASSETCHAINS_STAKED != 0 && (komodo_isPoS((CBlock *)&block) != 0)))
{
#ifdef ENABLE_WALLET
LOCK2(cs_main, pwalletMain->cs_wallet);
pwalletMain->EraseFromWallet(tx.GetHash());
#endif
}