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

fix: Dump history now uses WalBlockReader #457

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

gonzalezzfelipe
Copy link
Contributor

Fixes #456

Comment on lines 220 to 223
pub fn lookahead_from_genesis(genesis: &Genesis) -> u64 {
((3.0 * genesis.byron.protocol_consts.k as f32)
/ (genesis.shelley.active_slots_coeff.unwrap())) as u64
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't belong here. The ledger should provide a function describing the "mutability window" from genesis data.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's already a method in there.

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.

fix: implement WAL block reader (with look-ahead) for the dump history endpoint
2 participants