Re-add txs that were removed from wallet, if they are valid.

This commit is contained in:
blackjok3r
2019-01-04 17:26:28 +08:00
parent 5837b5bc05
commit ff43475a31
2 changed files with 10 additions and 4 deletions

View File

@@ -1753,8 +1753,6 @@ bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pbl
AssertLockHeld(cs_wallet);
if ( tx.IsCoinBase() && tx.vout[0].nValue == 0 )
return false;
if ( tx.vin.empty() )
return false;
bool fExisted = mapWallet.count(tx.GetHash()) != 0;
if (fExisted && !fUpdate) return false;
auto sproutNoteData = FindMySproutNotes(tx);