Skip to content
Snippets Groups Projects

Write `get-file` and commands to get the list of blocks from another node

1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
+ 2
0
@@ -819,6 +819,8 @@ impl DragoonNetwork {
self.pending_request_block_info
.insert(request_id, Sender::SenderMPSC(info_sender.clone()));
}
// ! we never actually get here, need to spawn the request of the list of blocks inside a new task
debug!("Finished requesting the file to all providers");
//TODO change this to keep in memory other providers of the same block in case the first one fails (a hash map maybe ?)
let mut already_request_block = vec![];
Loading