Make nSPV disable wallet

This commit is contained in:
jl777
2019-07-02 01:54:11 -11:00
parent efec2490c8
commit 119a7e825b
3 changed files with 4 additions and 2 deletions

View File

@@ -4109,7 +4109,7 @@ bool static DisconnectTip(CValidationState &state, bool fBare = false) {
if ((i == (block.vtx.size() - 1)) && (ASSETCHAINS_STAKED != 0 && (komodo_isPoS((CBlock *)&block,pindexDelete->GetHeight(),true) != 0)))
{
#ifdef ENABLE_WALLET
if ( !GetBoolArg("-disablewallet", false) )
if ( !GetBoolArg("-disablewallet", false) && KOMODO_NSPV == 0 )
pwalletMain->EraseFromWallet(tx.GetHash());
#endif
}