-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
graphman: Check if its safe to rewind by comparing block to earliest …
…block (#5423) * graphman: Check if its safe to rewind by comparing block to earliest block * store/postgres: revert_block_ptr checks if its safe to revert based on earliest block and reorg threshold * graph: change default reorg threshold for tests
- Loading branch information
1 parent
b4605ef
commit 6aa9a89
Showing
6 changed files
with
97 additions
and
25 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
Just noticed this change. Now if I run graph-node in
--debug
mode, i.e. for debugging, I can’t deploy subgraphs as I’m getting this error because of it:So it requires setting
GRAPH_HISTORY_BLOCKS_OVERRIDE
env variable to override it, which is not obvious. Took me a while to figure out that it's not some bug.There has to be a better way, maybe an opt-in env variable for testing.