Just looking for a quick answer about BIP152.
So, I'm trying to complete handshakes and send `getheaders` requests to other Bitcoin nodes. Check out this debug output:
Don’t worry about the error; it just means there’s no code for handling the `sendcmpct` command. It gets confusing because it seems like `sendcmpct` is requesting blocks, but I was the one who asked first. Let’s get some order in this.
By the way, the node I'm connecting to at IP[STATIC] is part of the hardcoded nodes list in Bitcoin Core.
What's up with Bitcoin nodes not responding to `getheaders`?
1 reply 114 views
Handshake between nodes is more than just sending version/verack messages back and forth. It consists of sending and receiving a couple of other messages that I'd like to call "preference" messages which are telling the other peer the settings and preferences your node prefers.
These messages include feefilter, sendcmpct and sendheaders. They need to be handled during handshake and the receiver needs to remember these preferences so that it can communicate with its peer the way it requests.
For example when receiving sendcmpct "preference" message, the receiver has to remember to send any new blocks to this peer as compact blocks as defined by BIP-152.
Assuming this is the code, the reason why it is crashing here is because it lacks the message parsing capability not because the other node responded to getheaders with sendcmpct. It probably got caught in the parsing queue and crashed there.
I say "queue" because these messages aren't necessarily sent one by one, they can be received in one payload (eg. verack + ping + feefilter + sendcmpct) and the receiver has to handle the entire payload with multiple messages.
Related topics
- Bitcoin Core displaying coins (UTXOs) in a new tab 13
- Are you in favor of BIP-110? Let's get a Bitcoin poll going. 0
- Erlay seems to have some issues here’s a better proposal for a bitcoin protocol without invites 3
- Ways to earn some sats by contributing to bitcoin core development 5
- Exploring the Potential and Challenges of a Kardashev-Scale Bitcoin Network 3
- What can I do to fix this Bitcoin Core error? 8