btclib_node.p2p.messages package¶
Module contents¶
The p2p payloads this node sends only to old peers.
Every other wire message this node speaks is btclib.p2p’s, imported where it is used, except the stored block p2p.raw_block serves. The payloads here are what Core still sends a peer too old for the rest, and they are sent and never parsed: p2p.callbacks is where every command received is dispatched to a handler. BIP61’s reject has none: Core’s ProcessMessage ignores it as an unknown type (src/net_processing.cpp, at bitcoin/bitcoin@9be056a8a7).
- class btclib_node.p2p.messages.FinalAlert[source]¶
Bases:
PayloadThe final alert, for a peer at a common version of 70012 or below.
What Core’s version handler (src/net_processing.cpp, at bitcoin/bitcoin@9be056a8a7, the v31.1 tag) sends a peer “old enough to have the old alert system”, its common version 70012 or below.
- class btclib_node.p2p.messages.NoncelessPing[source]¶
Bases:
PayloadA ping with no payload, for a peer at BIP0031_VERSION or below.
What Core’s MaybeSendPing (src/net_processing.cpp, at bitcoin/bitcoin@9be056a8a7, the v31.1 tag) sends such a peer, which answers it with no pong. btclib’s own Ping always carries a nonce.