Block packet size limit

This commit is contained in:
arkpar
2020-06-18 10:39:54 +02:00
parent 74a989f353
commit 08e0747d2b
2 changed files with 9 additions and 2 deletions
@@ -54,7 +54,8 @@ mod blocks;
mod extra_requests;
/// Maximum blocks to request in a single packet.
const MAX_BLOCKS_TO_REQUEST: usize = 128;
/// TODO: set to 128 once yamux issue is resolved.
const MAX_BLOCKS_TO_REQUEST: usize = 64;
/// Maximum blocks to store in the import queue.
const MAX_IMPORTING_BLOCKS: usize = 2048;