Skip to content

Commit

Permalink
Byron: Force startTime in genesis data to be strict (#4574)
Browse files Browse the repository at this point in the history
* Byron: Force startTime in genesis data to be strict
  • Loading branch information
aniketd authored Aug 31, 2024
1 parent 3f00082 commit ae9a885
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions eras/byron/ledger/impl/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Revision history for `cardano-ledger-byron`

## 1.0.1.1
## 1.0.2.0

*
* `force` `startTime` in the evaluation of genesis-data. #4574

## 1.0.1.0

Expand Down
2 changes: 1 addition & 1 deletion eras/byron/ledger/impl/cardano-ledger-byron.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 3.0
name: cardano-ledger-byron
version: 1.0.1.0
version: 1.0.2.0
license: Apache-2.0
maintainer: operations@iohk.io
author: IOHK
Expand Down
2 changes: 1 addition & 1 deletion eras/byron/ledger/impl/src/Cardano/Chain/Genesis/Data.hs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ instance MonadError SchemaError m => FromJSON m GenesisData where
GenesisData
<$> fromJSField obj "bootStakeholders"
<*> fromJSField obj "heavyDelegation"
<*> fromJSField obj "startTime"
<*> (force <$> fromJSField obj "startTime")
<*> fromJSField obj "nonAvvmBalances"
<*> fromJSField obj "blockVersionData"
-- The above is called blockVersionData for backwards compatibility with
Expand Down

0 comments on commit ae9a885

Please sign in to comment.