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 a75c15c commit 6eaaeb2
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 @@ -306,7 +306,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 @@ -124,4 +124,5 @@ withEventsMinHeight version errorMessage action = withVersion version onVersion
"testnet04" -> Just 1_261_000
"recap-development" -> Just 14
"development" -> Just 0
"testnet05" -> Just 0
_ -> Nothing

0 comments on commit 6eaaeb2

Please sign in to comment.