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

bfg: take into account l2 keystones that are more final than 100 #415

Merged
merged 3 commits into from
Feb 21, 2025

Conversation

ClaytonNorthey92
Copy link
Contributor

@ClaytonNorthey92 ClaytonNorthey92 commented Feb 19, 2025

Summary
there is a bug in the postgres query that only takes into account the first 100 bitcoin blocks when determining effective height, so if a keystone was published older than the first 100 it wouldn't get counted in effective height.

remove this clause; I am not sure why it was introduced but it is likely fallout from when trying to optimize these queries

add a test that should have caught this

Changes
see summary

@ClaytonNorthey92 ClaytonNorthey92 requested a review from a team as a code owner February 19, 2025 20:48
@github-actions github-actions bot added the area: bfg This is a change to BFG (Bitcoin Finality Governor) label Feb 19, 2025
there is a bug in the postgres query that only takes into account the first 100 btc blocks when determining effective height, so if a keystone was published older than the first 100 it wouldn't get counted in effective height.

remove this clause; I am not sure why it was introduced but it is likely fallout from when trying to optimize these queries

add a test that should have caught this
@ClaytonNorthey92 ClaytonNorthey92 force-pushed the clayton/op-geth-testing-2 branch from 695e4c9 to 9ddaad9 Compare February 19, 2025 20:59
@ClaytonNorthey92
Copy link
Contributor Author

meh one bug in my change...fixing

Copy link
Contributor

@jcvernaleo jcvernaleo left a comment

Choose a reason for hiding this comment

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

OK

@joshuasing joshuasing changed the title take into account l2 keystones that are more final than 100 bfg: take into account l2 keystones that are more final than 100 Feb 20, 2025
@ClaytonNorthey92 ClaytonNorthey92 merged commit 5bfd279 into main Feb 21, 2025
7 checks passed
@ClaytonNorthey92 ClaytonNorthey92 deleted the clayton/op-geth-testing-2 branch February 21, 2025 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: bfg This is a change to BFG (Bitcoin Finality Governor)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants