This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhancement: don't allow missing blocks (#1349)
* Implement error codes for FFI WASM functions * early exit and kill switch * review feedback * update comment * add early_exit FFI function and handle errors in load * fmt * add wasm exit codes test and fix an expect msg * fmt * cargo sort * Update packages/fuel-indexer-lib/src/lib.rs Co-authored-by: rashad <[email protected]> * Update packages/fuel-indexer-lib/src/lib.rs Co-authored-by: rashad <[email protected]> * Update packages/fuel-indexer-lib/src/lib.rs Co-authored-by: rashad <[email protected]> * more review feedback * improve ealy_exit function * add database trigger to ensure indexers cannot miss any blocks * handle missing blocks as a speacial case of database error * add missing block test * adjust get_start_block to be compatible with the trigger * update test * adjust last_block_height_for_indexer * more test fixes * remove unused variant that was re-introduced in a merge * clearer comment * handle trigger more like other sql statements * move trigger function from migration to rust --------- Co-authored-by: Alexander Decurnou <[email protected]> Co-authored-by: rashad <[email protected]>
- Loading branch information
1 parent
2424dd7
commit abb8abf
Showing
10 changed files
with
198 additions
and
13 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
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
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
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
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