try ignore 0 sat coinbase
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user