Browse Source

try ignore 0 sat coinbase

pull/27/head
blackjok3r 6 years ago
parent
commit
3ce2f4ec50
  1. 5
      src/wallet/wallet.cpp

5
src/wallet/wallet.cpp

@ -1209,6 +1209,11 @@ bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pbl
{
{
AssertLockHeld(cs_wallet);
if ( tx.IsCoinBase() && tx.vout[0].nValue == 0 )
{
fprintf(stderr, "ZERO sat coinbase, ignored!\n");
return false;
}
bool fExisted = mapWallet.count(tx.GetHash()) != 0;
if (fExisted && !fUpdate) return false;
auto noteData = FindMyNotes(tx);

Loading…
Cancel
Save