Skip to content

Commit f71d000

Browse files
committed
fix: finalize round after both epochs pass
1 parent 15e0035 commit f71d000

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

observer/observer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def validate_fdc(round: VotingRound, entity: Entity, config: Configuration):
383383
if s2 and ssd and not ss:
384384
issues.append(
385385
mb.build(
386-
MessageLevel.CRITICAL,
386+
MessageLevel.ERROR,
387387
(
388388
"no submit signatures transaction during grace period, "
389389
"causing loss of rewards"

observer/reward_epoch_manager.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -351,16 +351,10 @@ def finalize(self, block: BlockData) -> list[VotingRound]:
351351
self.rounds.pop(k, None)
352352
continue
353353

354-
round = self.rounds[k]
355-
356-
ftso_finalized = round.ftso.finalization is not None
357-
fdc_finalized = round.fdc.finalization is not None
358-
both_finalized = fdc_finalized and ftso_finalized
359-
360354
# need to wait until end of next epoch for fdc reveal offence condition
361355
round_completed = k.next.end_s < block["timestamp"]
362356

363-
if both_finalized or round_completed:
357+
if round_completed:
364358
self.finalized = max(self.finalized, k.id)
365359
rounds.append(self.rounds.pop(k))
366360

0 commit comments

Comments
 (0)