Skip to content

Opt out of rollback on reorg for templates - #154

Merged
JonoPrest merged 2 commits into
mainfrom
jp/opt-out-rollback
Aug 29, 2024
Merged

Opt out of rollback on reorg for templates#154
JonoPrest merged 2 commits into
mainfrom
jp/opt-out-rollback

Conversation

@JonoPrest

Copy link
Copy Markdown
Collaborator

Currently it incurs a performance hit on historical sync. For starting up and development we want to encourage people to turn it off until they deploy for production.

@JonoPrest
JonoPrest requested a review from DZakh August 29, 2024 08:27
},
"rollback_on_reorg": {
"description": "A flag to indicate if the indexer should rollback to the last known valid block on a reorg (default: true)",
"description": "A flag to indicate if the indexer should rollback to the last known valid block on a reorg. This currently incurs a performance hit one historical sync and is recommended to to turn this off while developing (default: true)",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
"description": "A flag to indicate if the indexer should rollback to the last known valid block on a reorg. This currently incurs a performance hit one historical sync and is recommended to to turn this off while developing (default: true)",
"description": "A flag to indicate if the indexer should rollback to the last known valid block on a reorg. This currently incurs a performance hit on historical sync and is recommended to turn this off while developing (default: true)",

Comment on lines +149 to +151
valid block on a reorg. This currently incurs a performance hit one \
historical sync and is recommended to to turn this off while \
developing (default: true)"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
valid block on a reorg. This currently incurs a performance hit one \
historical sync and is recommended to to turn this off while \
developing (default: true)"
valid block on a reorg. This currently incurs a performance hit on \
historical sync and is recommended to turn this off while \
developing (default: true)"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks JJ, I copied this in locally and ran the generator to output the schema 👍🏼

Comment on lines +14 to +16
# Rollback on reorg mode currently incurs a performance hit on historical sync
# while developing an indexer we recommend setting this to false
rollback_on_reorg: false

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nicely put 💪

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Cool just to note, this message won't be in contract import templates.

@moose-code moose-code left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just a couple spelling change suggestions!

lots of liniting changes it seems, glossed over.

Nice!!

@JonoPrest
JonoPrest force-pushed the jp/opt-out-rollback branch from 90885ce to f8abd65 Compare August 29, 2024 08:37
@JonoPrest
JonoPrest enabled auto-merge (rebase) August 29, 2024 08:40
@JonoPrest
JonoPrest merged commit 9c0bae9 into main Aug 29, 2024
@JonoPrest
JonoPrest deleted the jp/opt-out-rollback branch August 29, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants