change tombstone, revert LOCK, problem isnt that.

This commit is contained in:
blackjok3r
2018-12-29 21:44:48 +08:00
parent abffb831a6
commit 9237e43052
2 changed files with 2 additions and 2 deletions

View File

@@ -3852,7 +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
LOCK(cs_main);
LOCK2(cs_main, pwalletMain->cs_wallet);
pwalletMain->EraseFromWallet(tx.GetHash());
#endif
}