Skip to content
Snippets Groups Projects

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

3 files
+ 19
9
Compare changes
  • Side-by-side
  • Inline

Files

+ 2
1
@@ -16,6 +16,7 @@ use tokio::sync::{
use tracing::{error, info};
use crate::app::AppState;
use crate::dragoon_network::BlockResponse;
use crate::error::DragoonError;
use crate::peer_block_info::PeerBlockInfo;
use crate::to_serialize::{ConvertSer, JsonWrapper};
@@ -94,7 +95,7 @@ pub(crate) enum DragoonCommand {
peer_id: PeerId,
file_hash: String,
block_hash: String,
sender: SenderOneS<Vec<u8>>,
sender: SenderOneS<BlockResponse>,
},
GetBlocksInfoFrom {
peer_id: PeerId,
Loading