Skip to content

Commit

Permalink
fix: remove 'finalized' condition (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgorkavenko committed Apr 5, 2023
1 parent e724d06 commit ef94603
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ export class ConsensusProviderService {
if (blockId == 'finalized') {
if (Number(r.data.header.message.slot) > this.lastFinalizedSlot.slot) {
this.lastFinalizedSlot = { slot: Number(r.data.header.message.slot), fetchTime: Number(Date.now()) };
} else if (Number(Date.now()) - this.lastFinalizedSlot.fetchTime > 420 * 1000) {
// if 'finalized' slot doesn't change ~7m we must switch to fallback
this.logger.error("Finalized slot hasn't changed in ~7m");
return true;
}
}
// for other states don't use fallback on resolved
Expand Down

0 comments on commit ef94603

Please sign in to comment.