Browse Source

attempt wallet fix for empty vin issue

pull/27/head
blackjok3r 6 years ago
parent
commit
a089187c44
  1. 2
      src/wallet/wallet.cpp

2
src/wallet/wallet.cpp

@ -1211,6 +1211,8 @@ 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 noteData = FindMyNotes(tx);

Loading…
Cancel
Save