Skip to content

Commit

Permalink
Add testnet05
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundnoble committed Sep 19, 2024
1 parent 94a0bb5 commit de086e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haskell-src/lib/ChainwebData/Env.hs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ versionReader :: ReadM ChainwebVersion
versionReader = eitherReader $ \case
txt | map toLower txt == "mainnet01" || map toLower txt == "mainnet" -> Right "mainnet01"
txt | map toLower txt == "testnet04" || map toLower txt == "testnet" -> Right "testnet04"
txt -> Left $ printf "Can'txt read chainwebversion: got %" txt
txt | map toLower txt == "testnet05" -> Right "testnet05"
txt -> Left $ printf "Can't read chainwebversion: got %" txt

simpleVersionParser :: Parser ChainwebVersion
simpleVersionParser =
Expand Down
1 change: 1 addition & 0 deletions haskell-src/lib/ChainwebData/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ withEventsMinHeight version errorMessage action = withVersion version onVersion
onVersion = \case
"mainnet01" -> Just 1_722_500
"testnet04" -> Just 1_261_000
"testnet05" -> Just 0
"development" -> Just 14
"fast-development" -> Just 0
_ -> Nothing

0 comments on commit de086e3

Please sign in to comment.