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

Check block is still in chain before processing event #1799

Merged
merged 1 commit into from
Oct 3, 2023
Merged

Conversation

bitwiseguy
Copy link
Contributor

The chainservice waits for REQUIRED_BLOCK_CONFIRMATIONS before processing an event. This PR adds an additional check to make sure there was not a chain re-org between the time the event was emitted+detected by the chainservice, and the time when the chainservice tries to process the event. The additional check looks like this:

oldBlock.Hash() != chainEvent.BlockHash

@netlify
Copy link

netlify bot commented Sep 27, 2023

👷 Deploy Preview for nitrodocs processing.

Name Link
🔨 Latest commit 7281fb4
🔍 Latest deploy log https://app.netlify.com/sites/nitrodocs/deploys/65146218614b8b00087ba261

@bitwiseguy bitwiseguy merged commit 0d8c24e into main Oct 3, 2023
2 checks passed
@bitwiseguy bitwiseguy deleted the check-reorg branch October 3, 2023 21:14
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.

2 participants