diff --git a/p2p/src/conn.rs b/p2p/src/conn.rs index 394902fd3..92db4317f 100644 --- a/p2p/src/conn.rs +++ b/p2p/src/conn.rs @@ -163,7 +163,7 @@ impl<'a> Response<'a> { } } -pub const SEND_CHANNEL_CAP: usize = 10; +pub const SEND_CHANNEL_CAP: usize = 100; pub struct StopHandle { /// Channel to close the connection diff --git a/servers/src/grin/sync/body_sync.rs b/servers/src/grin/sync/body_sync.rs index 687258642..a4e88946d 100644 --- a/servers/src/grin/sync/body_sync.rs +++ b/servers/src/grin/sync/body_sync.rs @@ -106,7 +106,7 @@ impl BodySync { // 10) max will be 80 if all 8 peers are advertising more work // also if the chain is already saturated with orphans, throttle let block_count = cmp::min( - cmp::min(100, peers.len() * p2p::SEND_CHANNEL_CAP), + cmp::min(100, peers.len() * 10), chain::MAX_ORPHAN_SIZE.saturating_sub(self.chain.orphans_len()) + 1, );