Skip to content

Commit

Permalink
Add TODOs about initial nonces
Browse files Browse the repository at this point in the history
  • Loading branch information
mrBliss committed Jul 3, 2020
1 parent 6ae236a commit af519a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cardano-node/src/Cardano/Node/Protocol/Cardano.hs
Expand Up @@ -191,6 +191,10 @@ mkConsensusProtocolCardano NodeByronProtocolConfiguration {
--
-- WARNING: chains using different values of this parameter will be
-- mutually incompatible.
--
-- TODO: This should be replaced with the hash of the Shelley genesis
-- config JSON file, which should be taken as an argument/configuration
-- parameter.
initialNonce = NeutralNonce


Expand Down
5 changes: 5 additions & 0 deletions cardano-node/src/Cardano/Node/Protocol/Shelley.hs
Expand Up @@ -107,6 +107,11 @@ mkConsensusProtocolShelley NodeShelleyProtocolConfiguration {
--
-- WARNING: chains using different values of this parameter will be
-- mutually incompatible.
--
-- TODO: This should also be replaced with the hash of the Shelley genesis
-- config JSON file, which should be taken as an argument/configuration
-- parameter. But be careful, all testnets so far have used NeutralNonce,
-- changing the value will require starting a new testnet.
initialNonce = NeutralNonce

readGenesis :: GenesisFile
Expand Down

0 comments on commit af519a6

Please sign in to comment.