HomePhabricator

[avalanche] Don't download proofs during IBD

Description

[avalanche] Don't download proofs during IBD

Summary:
We already avoid requesting compact proofs, but this extends to relayed proofs as well.
This diffs prevents the node from requesting proofs when an inv is received during IBD, and also discards the proofs received via the network in the event a peer sent us spontaneously a proof.

Depends on D11815.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, sdulfari

Reviewed By: #bitcoin_abc, sdulfari

Subscribers: sdulfari

Differential Revision: https://reviews.bitcoinabc.org/D11816

Details

Provenance
FabienAuthored on Jul 29 2022, 14:20
FabienPushed on Jul 31 2022, 19:25
Reviewer
Restricted Project
Differential Revision
D11816: [avalanche] Don't download proofs during IBD
Parents
rABC11390e0317a7: [avalanche] Don't ban a peer sending a proof with an unknown utxo
Branches
Unknown
Tags
Unknown