Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

remove unnecessary assert in initialize_epoch #168

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions casper/contracts/simple_casper.v.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,6 @@ def initialize_epoch(epoch: int128):
# Set the reward factor for the next epoch.
adj_interest_base: decimal = self.BASE_INTEREST_FACTOR / self.sqrt_of_total_deposits()
self.reward_factor = adj_interest_base + self.BASE_PENALTY_FACTOR * (self.esf() - 2)
# ESF is only thing that is changing and reward_factor is being used above.
assert self.reward_factor > 0.0
else:
# Before the first validator deposits, new epochs are finalized instantly.
self.insta_finalize()
Expand Down