-
Notifications
You must be signed in to change notification settings - Fork 86
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 more stake-related ledger queries #2161
Conversation
ouroboros-consensus-shelley/src/Ouroboros/Consensus/Shelley/Ledger/Ledger.hs
Outdated
Show resolved
Hide resolved
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.
LGTM
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.
I think we will not need the GetFilteredRegisteredStakeCreds
and just need the other two. I'm double checking this...
ouroboros-consensus-shelley/src/Ouroboros/Consensus/Shelley/Ledger/Ledger.hs
Outdated
Show resolved
Hide resolved
GetFilteredRegisteredStakeCreds | ||
:: Set (SL.Credential 'SL.Staking c) | ||
-> Query (ShelleyBlock c) (SL.StakeCreds c) |
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.
I'm double checking, but I think this one will not be needed, since the StakeCreds
does not contain any useful information, and indeed will soon be changed to be just a Set
once we remove decaying rewards.
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.
indeed!
After consulting with @JaredCorduan we think that indeed we do not need to look up the So we probably only want a single query, given the set of stake key (hashes): look up in both the |
dc7d1cb
to
6538fac
Compare
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.
LGTM!
bors merge |
2161: Add more stake-related ledger queries r=dcoutts a=intricate Requirement for IntersectMBO/cardano-node#1053 Co-authored-by: Luke Nadur <19835357+intricate@users.noreply.github.com>
Requirement for IntersectMBO/cardano-node#1053