-
Notifications
You must be signed in to change notification settings - Fork 720
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4818 from input-output-hk/jordan/cardano-testnet-…
…byron-genesis-refactor Small Byron genesis refactor in cardano-testnet
- Loading branch information
Showing
4 changed files
with
47 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
{-# LANGUAGE TypeApplications #-} | ||
|
||
-- | All Byron and Shelley Genesis related functionality | ||
module Testnet.Genesis | ||
( defaultByronGenesisJsonValue | ||
) where | ||
|
||
import Prelude | ||
|
||
import Data.Aeson | ||
|
||
-- | We need a Byron genesis in order to be able to hardfork to the later Shelley based eras. | ||
-- The values here don't matter as the testnet conditions are ultimately determined | ||
-- by the Shelley genesis. | ||
defaultByronGenesisJsonValue :: Value | ||
defaultByronGenesisJsonValue = | ||
object | ||
[ "heavyDelThd" .= toJSON @String "300000000000" | ||
, "maxBlockSize" .= toJSON @String "2000000" | ||
, "maxTxSize" .= toJSON @String "4096" | ||
, "maxHeaderSize" .= toJSON @String "2000000" | ||
, "maxProposalSize" .= toJSON @String "700" | ||
, "mpcThd" .= toJSON @String "20000000000000" | ||
, "scriptVersion" .= toJSON @Int 0 | ||
, "slotDuration" .= toJSON @String "1000" | ||
, "softforkRule" .= object | ||
[ "initThd" .= toJSON @String "900000000000000" | ||
, "minThd" .= toJSON @String "600000000000000" | ||
, "thdDecrement" .= toJSON @String "50000000000000" | ||
] | ||
, "txFeePolicy" .= object | ||
[ "multiplier" .= toJSON @String "43946000000" | ||
, "summand" .= toJSON @String "155381000000000" | ||
] | ||
, "unlockStakeEpoch" .= toJSON @String "18446744073709551615" | ||
, "updateImplicit" .= toJSON @String "10000" | ||
, "updateProposalThd" .= toJSON @String "100000000000000" | ||
, "updateVoteThd" .= toJSON @String "1000000000000" | ||
] |