From 125cb1972e36cf0d31f2138c8575eb1e50ececa0 Mon Sep 17 00:00:00 2001 From: timemarkovqtum Date: Thu, 31 Oct 2024 09:12:59 +0100 Subject: [PATCH] Fix p2p_leak_tx test --- src/validation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/validation.cpp b/src/validation.cpp index 0e911990fb..8db65d10e6 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -6087,6 +6087,8 @@ bool ChainstateManager::AcceptBlock(const std::shared_ptr& 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;