-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bfgd: simpler finality calculations with new table (#353)
* simpler finality with new table * add table who's rows each represent the lowest published btc block that an l2_keystone is found in * on bfg startup, backfill existing l2_keystones' lowest btc block * use pop_basis database notifications to continue to index these l2_keyston <-> lowest btc block * update finality queries to use this * allowing insertion of l2_keystone abreviated fields, as we sometimes will pull these from the btc chain and they are abbreviated there * add tests * fix variable name * add condition to ON CONFLICT to avoid not-needed writes * make effective height sql more efficient * allow pageSize for backfill to use fewer queries
- Loading branch information
1 parent
67a1ccb
commit b014087
Showing
6 changed files
with
523 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.