Skip to content
Snippets Groups Projects

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

1 file
+ 2
5
Compare changes
  • Side-by-side
  • Inline
+ 2
5
@@ -93,16 +93,13 @@ pub(crate) async fn create_swarm(
)),
request_block: request_response::cbor::Behaviour::new(
[(
StreamProtocol::new("/file-exchange/1"),
StreamProtocol::new("/block-exchange/1"),
ProtocolSupport::Full,
)],
request_response::Config::default(),
),
request_info: request_response::cbor::Behaviour::new(
[(
StreamProtocol::new("/file-exchange/1"),
ProtocolSupport::Full,
)],
[(StreamProtocol::new("/peer-info/1"), ProtocolSupport::Full)],
request_response::Config::default(),
),
})?
Loading