Skip to content

Add not_found protocol overrides at bip37. - #9

Open
echennells wants to merge 1 commit into
masterfrom
notfound-70001
Open

Add not_found protocol overrides at bip37.#9
echennells wants to merge 1 commit into
masterfrom
notfound-70001

Conversation

@echennells

@echennells echennells commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Rework of libbitcoin#1106 per the 2026-08-31 review: not_found is a protocol level, not a condition on _106.

protocol_block_out_70001 and protocol_transaction_out_70001 derive from the _106 classes and override handle_unservable. The _106 classes retain the stop, as not_found is undefined below bip37; protocol_block_out_70012 now derives from _70001. The session attaches the derived protocol when bip37 is negotiated. The reply is gated by peer.enable_not_found, routed through config and parse.

A hash resolving to no header is answered before the checkpoint height query, which faults the store on a terminal link.

Six cases in test/functional/p2p.cpp cover unknown, pruned and unassociated blocks, an unknown transaction, a peer below bip37, and the option disabled; fixtures live in p2p_setup_fixture.

Depends on echennells/libbitcoin-network peer-enable-not-found and echennells/libbitcoin-server peer-enable-not-found-parser.

Fork-internal. Verified 2026-09-08 against upstream heads in a container: functional_p2p_tests 9/9, 158 assertions; network settings 59/59; server parser compiles. Fork CI 43/43 green. Upstream body drafted at ~/ech-sep7/pr1106/upstream-body.md.

@echennells echennells closed this Sep 8, 2026
@echennells
echennells deleted the notfound-70001 branch September 8, 2026 15:42
@echennells
echennells restored the notfound-70001 branch September 8, 2026 15:43
@echennells echennells reopened this Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant