Skip to content

Commit

Permalink
Move ChainSync to separate file, update visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-markin committed Oct 30, 2023
1 parent 250020b commit 2511cfc
Show file tree
Hide file tree
Showing 6 changed files with 3,441 additions and 3,402 deletions.
4 changes: 3 additions & 1 deletion substrate/client/network/sync/src/block_request_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ use crate::{
BlockResponse as BlockResponseSchema, BlockResponse, Direction,
},
service::network::NetworkServiceHandle,
MAX_BLOCKS_IN_RESPONSE,
};

use codec::{Decode, DecodeAll, Encode};
Expand Down Expand Up @@ -54,6 +53,9 @@ use std::{
time::Duration,
};

/// Maximum blocks per response.
pub(crate) const MAX_BLOCKS_IN_RESPONSE: usize = 128;

const LOG_TARGET: &str = "sync";
const MAX_BODY_BYTES: usize = 8 * 1024 * 1024;
const MAX_NUMBER_OF_SAME_REQUESTS_PER_PEER: usize = 2;
Expand Down
Loading

0 comments on commit 2511cfc

Please sign in to comment.