Skip to content

Commit

Permalink
Fix p2p_leak_tx test
Browse files Browse the repository at this point in the history
  • Loading branch information
timemarkovqtum committed Oct 31, 2024
1 parent 0a72a8b commit 125cb19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6087,6 +6087,8 @@ bool ChainstateManager::AcceptBlock(const std::shared_ptr<const CBlock>& pblock,

// Header is valid/has work, merkle tree and segwit merkle tree are good...RELAY NOW
// (but if it does not build on our best tip, let the SendMessages loop relay it)
if (block.IsProofOfWork() && !IsInitialBlockDownload() && ActiveTip() == pindex->pprev)
GetMainSignals().NewPoWValidBlock(pindex, pblock);

// Write block to history file
if (fNewBlock) *fNewBlock = true;
Expand Down

0 comments on commit 125cb19

Please sign in to comment.