mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-17 04:11:33 +02:00
[net_processing] ignore all transactions during ibd
Co-authored-by: Amiti Uttarwar <amiti@uttarwar.org>
This commit is contained in:
parent
ab25ef8c7f
commit
b9e105b664
@ -3207,6 +3207,11 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Stop processing the transaction early if we are still in IBD since we don't
|
||||||
|
// have enough information to validate it yet. Sending unsolicited transactions
|
||||||
|
// is not considered a protocol violation, so don't punish the peer.
|
||||||
|
if (m_chainman.ActiveChainstate().IsInitialBlockDownload()) return;
|
||||||
|
|
||||||
CTransactionRef ptx;
|
CTransactionRef ptx;
|
||||||
vRecv >> ptx;
|
vRecv >> ptx;
|
||||||
const CTransaction& tx = *ptx;
|
const CTransaction& tx = *ptx;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user