Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IsString (Hash BlockHeader) #3619

Merged
merged 1 commit into from
Mar 9, 2022
Merged

Add IsString (Hash BlockHeader) #3619

merged 1 commit into from
Mar 9, 2022

Conversation

andreabedini
Copy link
Contributor

This PR adds the instance IsString (Hash BlockHeader) following the same
pattern of many other keys in Cardano.Api. The use case is simple, being
able to refer to a specific point on the chain.

E.g.

recentPoint :: ChainPoint
recentPoint = ChainPoint (SlotNo 53427524) "5e2bde4e504a9888a4..."

I am also changing the Show instance, as it seems to be the common
pattern.

This PR adds the instance IsString (Hash BlockHeader) following the same
pattern of many other keys in Cardano.Api. The use case is simple, being
able to refer to a specific point on the chain.

E.g.

recentPoint :: ChainPoint
recentPoint = ChainPoint (SlotNo 53427524) "5e2bde4e504a9888a4..."

I am also changing the Show instance, as it seems to be the common
pattern.
@andreabedini
Copy link
Contributor Author

The failure on windows seems to be unrelated.

It might be flaky test. It also fails on a completely unrelated PR https://github.com/input-output-hk/cardano-node/runs/5239760055?check_suite_focus=true#step:20:1223

@andreabedini
Copy link
Contributor Author

Hi @Jimbo4350 Is there anything more I need to do here?

@andreabedini
Copy link
Contributor Author

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Mar 9, 2022

Build succeeded:

@iohk-bors iohk-bors bot merged commit 2c32629 into master Mar 9, 2022
@iohk-bors iohk-bors bot deleted the andreabedini/patch-1 branch March 9, 2022 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants