Skip to content

Uses finalized block as the freeze threshold #406

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

Closed
wants to merge 2 commits into from

Conversation

diegoximenes
Copy link
Contributor

@diegoximenes diegoximenes commented Feb 4, 2025

Related to NIT-2585

Uses finalized block as the freeze threshold.

Pulled by OffchainLabs/nitro#2927

@cla-bot cla-bot bot added the s CLA signed label Feb 4, 2025
@diegoximenes diegoximenes changed the title Ancients finalized Uses finalized block as the freeze threshold Feb 4, 2025
@diegoximenes diegoximenes marked this pull request as ready for review February 6, 2025 18:45
@@ -118,24 +117,23 @@ func (f *chainFreezer) readFinalizedNumber(db ethdb.KeyValueReader) uint64 {
return *number
}

// freezeThreshold returns the threshold for chain freezing. It's determined
// by formula: max(finality, HEAD-params.FullImmutabilityThreshold).
// freezeThreshold returns the threshold for chain freezing.
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems like the original function is actually good. It's 100% o.k to have a threshold that won't be frozen even if finalized.
Can we remove the change to geth entirely?

@diegoximenes diegoximenes marked this pull request as draft February 10, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s CLA signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants