Skip to content

Commit

Permalink
Merge pull request #4775 from IntersectMBO/coot/block-size
Browse files Browse the repository at this point in the history
Update block-size
  • Loading branch information
coot authored Jan 12, 2024
2 parents fb7e5d4 + 7d63dfb commit 5df93dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ouroboros-network/src/Ouroboros/Network/NodeToNode.hs
Original file line number Diff line number Diff line change
Expand Up @@ -330,19 +330,19 @@ blockFetchProtocolLimits MiniProtocolParameters { blockFetchPipeliningMax } = Mi
-- @maxInFlightReqsPerPeer = 100@ is specified). In the future the
-- block fetch client will count bytes rather than blocks. By far
-- the largest (and the only pipelined message) in 'block-fetch'
-- protocol is 'MsgBlock'. Current block size limit is 64KB and
-- protocol is 'MsgBlock'. Current block size limit is 88kiB and
-- `blockFetchPipeliningMax` below is set to `100`. This means that
-- overall queue limit must be:
--
-- ```
-- 100 * 64KB = 6.4MB
-- 100 * 88kiB = 8.8MiB
-- ```
--
-- In the byron era this limit was set to `10 * 2MB`, we keep the more
-- In the byron era this limit was set to `10 * 2MiB`, we keep the more
-- relaxed limit here.
--
maximumIngressQueue = addSafetyMargin $
max (10 * 2_097_154 :: Int) (fromIntegral blockFetchPipeliningMax * 65_535)
max (10 * 2_097_154 :: Int) (fromIntegral blockFetchPipeliningMax * 90_112)
}

txSubmissionProtocolLimits MiniProtocolParameters { txSubmissionMaxUnacked } = MiniProtocolLimits {
Expand Down Expand Up @@ -388,7 +388,7 @@ txSubmissionProtocolLimits MiniProtocolParameters { txSubmissionMaxUnacked } = M
-- 1 -- encodeListLen 2
-- + 1 -- encodeWord 3
-- + 1 -- encodeListLenIndef
-- + 65_536 -- 64kb transaction
-- + 65_536 -- 64kiB transaction
-- + 1 -- encodeBreak
-- = 65_540
-- ```
Expand Down

0 comments on commit 5df93dc

Please sign in to comment.