Skip to content

Commit

Permalink
Fix p2p_leak_tx.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil committed Oct 27, 2024
1 parent 0744635 commit c92a3a5
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 (!IsInitialBlockDownload() && ActiveTip() == pindex->pprev)
GetMainSignals().NewPoWValidBlock(pindex, pblock);

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

0 comments on commit c92a3a5

Please sign in to comment.