Skip to content

Commit

Permalink
fix: different hash but same number case
Browse files Browse the repository at this point in the history
  • Loading branch information
eddort committed Dec 20, 2023
1 parent 2796b6f commit 1533454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jobs/keys-update/staking-module-updater.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class StakingModuleUpdaterService {

if (currentBlock.parentHash === prevBlock.hash) return false;
// different hash but same number
if (currentBlock.number === prevBlock.number) {
if (currentBlock.hash !== prevBlock.hash && currentBlock.number === prevBlock.number) {
updaterState.isReorgDetected = true;
return true;
}
Expand Down

0 comments on commit 1533454

Please sign in to comment.