fix crash

This commit is contained in:
blackjok3r
2019-05-16 14:48:39 +08:00
parent aa919f3847
commit bb83deb084

View File

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