Hi, I'm trying to figure out what's happening with some custom client code I'm writing. This is for the initial blockchain download.
When I start up I send the first getblocks with just two hashes (genesis, and zeroes):
This works fine and the client sends me an inv and I download and store those 500 blocks. It then sends me the latest block it knows about (at the time of this writing block 157940).
I save it as an orphan and then send the following hashes in my next getblocks *but I get no response from the peer*.
I'm showing the height of the block on the left here just for clarity, obviously my getblocks is only sending the hashes as normal.
The last one (height NA) is the prev_block for the orphan I just saved. I tried putting all zeros here also which should also work, but no matter what I try the peer won't send me the next 500 blocks. (have tried this with multiple peers multiple times so I don't think it's a bad peer).
I believe I'm formatting it correctly - after 10 latest blocks, it jumps back 2, then 4, then 8 etc.
Does anyone see what I might be messing up here? Thanks for the help! I really appreciate it.