Cardano-node: Make `cardano-node` slot length derived from genesis

Created on 7 Nov 2019  路  3Comments  路  Source: input-output-hk/cardano-node

Subtask of #255

Slot length is currently hard-coded in ourobboros-network to 20s [1], which is counterproductive for short CI runs, that would benefit from 1s slots.

--

  1. https://github.com/input-output-hk/ouroboros-network/blob/master/ouroboros-consensus/src/Ouroboros/Consensus/Node.hs#L188

Most helpful comment

@deepfire My branch jordan/replace-cardano-configuration has a key in the soon to be config yaml file to set the slot length.

All 3 comments

@deepfire My branch jordan/replace-cardano-configuration has a key in the soon to be config yaml file to set the slot length.

The slot length is already specified in the genesis file. It should be taken from there, not hard coded. But it should not be a config file or CLI item. It's critical for consensus that everyone agree on the slot length, so it is right that it comes from the genesis.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bergr01 picture bergr01  路  8Comments

dmitrystas picture dmitrystas  路  6Comments

aftershowrc picture aftershowrc  路  3Comments

bobdobs picture bobdobs  路  8Comments

peteremiljensen picture peteremiljensen  路  4Comments