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: set finalized & safe block information on startup #9873

Closed
wants to merge 13 commits into from

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Jul 29, 2024

supersedes #9105

@joshieDo joshieDo requested a review from fgimenez as a code owner July 29, 2024 20:00
Copy link
Collaborator Author

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

nits

Comment on lines 402 to 411
let genesis_block = self.base_config.chain_spec.genesis_header().seal_slow();
let finalized_block = genesis_block.clone();

let blockchain_provider = BlockchainProvider::with_block_information(
provider_factory.clone(),
tree,
genesis_block,
Some(finalized_block),
)
.expect("failed to create blockchain provider");
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

why do we need to update this?
is None, not sufficient?

@joshieDo joshieDo closed this Jul 30, 2024
@joshieDo joshieDo deleted the matt/fix-finalized-block branch July 30, 2024 11:23
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.

3 participants