Skip to content

Commit

Permalink
Merge #3158
Browse files Browse the repository at this point in the history
3158: Enabled `getBlockHeader` for Alonzo Era r=newhoggy a=bwbush

This simple fix appears to resolve #3139. I've tested it as follows:
1. `scan-blocks` executable running on `testnet`
2. The `watch-coin` and `watch-address` modes of my chain-walking CLI https://github.com/functionally/mantis.
3. My token-blending application, which also walks the chain to watch coins and addresses: https://github.com/functionally/pigy-genetics

I haven't run any other test suites.

Co-authored-by: Brian W Bush <[email protected]>
  • Loading branch information
iohk-bors[bot] and bwbush authored Sep 3, 2021
2 parents c48cf5a + dd8d022 commit 53fd9ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cardano-api/src/Cardano/Api/Block.hs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ getBlockHeader (ShelleyBlock shelleyEra block) = case shelleyEra of
ShelleyBasedEraShelley -> go
ShelleyBasedEraAllegra -> go
ShelleyBasedEraMary -> go
ShelleyBasedEraAlonzo -> error "getBlockHeader: Alonzo era not implemented yet"
ShelleyBasedEraAlonzo -> go
where
go :: Consensus.ShelleyBasedEra (ShelleyLedgerEra era) => BlockHeader
go = BlockHeader headerFieldSlot (HeaderHash hashSBS) headerFieldBlockNo
Expand Down

0 comments on commit 53fd9ec

Please sign in to comment.