I’m seeking to fetch blocks the use of P2P messages however at block 501500 I by no means won any block
message.
Right here how I do it :
I’m connecting to a node model/verack occurs easily. I in an instant resolution any ping
message. I’ve been ready to do the getblocks/inv/block procedure as much as to dam 501500 the place I’m lately caught. I should not have timeout so I’m simply looking ahead to my block
messages. I additionally spotted I’m really not receiving ping
message anymore. May it’s that the node disconnected from me ?
After I ask blocks from the beginning I’ve a solution. The node is meant to be synced as I am getting its get started peak from the model message and it fits present block peak.
Is there a explanation why the node is disconnecting from me ? Any concept how I may just debug or repair this ?
Observe: I additionally attempted with other nodes however I by no means get the blocks.
Replace: I occur to have additionally a python script doing the similar factor (fetching blocks) and I attempted the use of it. It really works! (more often than not). So certainly once in a while I’m being disregarded by way of the node. However I additionally consider in my rust implementation I’ve a subject matter when studying messages shape the buffer.
I learn first the 24 first bytes of a message so I am getting the command and the payload measurement. Then I block till I do know I’ve the entire payload. Sadly it seems like the payload isn’t totally to be had (however most certainly despatched by way of the opposite node). I by no means had this factor on different networks however I consider right here this is because now we have blocks at complete capability.