Skip to content

Write the send_block_to protocol

DISSOUBRAY Nathan requested to merge send-blocks into master

Description

Create a new command that allows to try sending a block to a given peer.

Detailed list of changes

  • Add a receiver task to handle receiving blocks from send request
  • Add a command to send blocks to a given peer (can fail)
  • Manage multiple block send at a time

Left to do

  • Write send_block, which has a notation of strategy to choose who to send a block to
  • Manage the available size on disk to decide on whether or not to accept a block

I think the second point could be done right now, or it can be done later, what do you think @j.detchart ?

Merge request reports