Description of SendBloc in RPC.md is not accurate
From https://github.com/NebulousLabs/Sia/blob/master/doc/RPC.md:
the SendBlocks call is a loop of requests and responses that continues until the responding peer has no more blocks to send
But what is implemented in modules/consensus/synchronize.go
is a single request followed by multiple responses (see functions rpcSendBlocks
and managedReceiveBlocks
).
This recommendation:
Responding peers should identify the most recent BlockID that is in their blockchain, and send up to 10 blocks following that block.
is also not implemented. Instead both peers communicate until sendBlocksTimeout
fires.