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

track only unique block hashes when writing to DB #1087

Merged
merged 1 commit into from
Jun 23, 2023

Conversation

vedhavyas
Copy link
Contributor

Seems like import notifications is sending the block hash multiple times and everytime its called, even the same hash gets written to DB event though the DB has already seen it. This change should ensure we only write unique fork hashes

Seems like import notifications is sending the block hash multiple times and everytime its called, even the same hash gets written to DB event though the DB has already seen it. This change should ensure we only write unique fork hashes
@vedhavyas vedhavyas requested a review from sorpaas as a code owner June 22, 2023 12:40
@cla-bot-2021
Copy link

cla-bot-2021 bot commented Jun 22, 2023

User @vedhavyas, please sign the CLA here.

@sorpaas sorpaas merged commit 036e6af into polkadot-evm:master Jun 23, 2023
4 checks passed
@vedhavyas vedhavyas deleted the fix/check_block_hash branch June 23, 2023 12:10
koushiro pushed a commit to alt-research/frontier that referenced this pull request Jul 12, 2023
Seems like import notifications is sending the block hash multiple times and everytime its called, even the same hash gets written to DB event though the DB has already seen it. This change should ensure we only write unique fork hashes
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