-
Notifications
You must be signed in to change notification settings - Fork 16
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 immutable tip parameter to conway queries #603
Conversation
fmap QueryTipCmd $ | ||
QueryTipCmdArgs | ||
<$> pSocketPath envCli | ||
<*> pConsensusModeParams | ||
<*> pNetworkId envCli | ||
<*> pTarget era |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then what you can do here is use maybe
and forEraMaybeEon
so that when we cannot get the ConwayEraOnwards
witness, we default to VolatileTip
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't that go inside the pTarget
as, in my opinion, the defaulting is its implementation detail?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job!
Closed by accident |
Changelog
How to trust this PR
Don't trust it, look at it with a magnifying glass.
Checklist