Skip to content

Commit adbc26b

Browse files
facundominguezneilmayhew
authored andcommitted
Set the jump size to smaller size for byron
1 parent d07aba2 commit adbc26b

File tree

1 file changed

+6
-1
lines changed
  • ouroboros-consensus-diffusion/src/ouroboros-consensus-diffusion/Ouroboros/Consensus/Node

1 file changed

+6
-1
lines changed

ouroboros-consensus-diffusion/src/ouroboros-consensus-diffusion/Ouroboros/Consensus/Node/Genesis.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,12 @@ mkGenesisConfig (Just GenesisConfigFlags{..}) =
140140
defaultCapacity = 100_000 -- number of tokens
141141
defaultRate = 500 -- tokens per second leaking, 1/2ms
142142

143-
defaultCSJJumpSize = 3 * 2160 * 20 -- mainnet forecast range
143+
-- The larger Shelley forecast range (3 * 2160 * 20) works in more recent
144+
-- ranges of slots, but causes syncing to block in Byron. A future
145+
-- improvement would be to make this era-dynamic, such that we can use the
146+
-- larger (and hence more efficient) larger CSJ jump size in Shelley-based
147+
-- eras.
148+
defaultCSJJumpSize = 2 * 2160 -- Byron forecast range
144149

145150
gbfcBulkSyncGracePeriod = fromInteger $ fromMaybe defaultBulkSyncGracePeriod gcfBulkSyncGracePeriod
146151
csbcCapacity = fromInteger $ fromMaybe defaultCapacity gcfBucketCapacity

0 commit comments

Comments
 (0)