Skip to content

Commit

Permalink
Add reward_vote_epoch_divider to protocol config
Browse files Browse the repository at this point in the history
  • Loading branch information
cyc60 committed Jul 8, 2024
1 parent 3843799 commit ebedafc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions sw_utils/protocol_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ def build_protocol_config(
exit_signature_epoch=config_data['exit_signature_epoch'],
signature_validity_period=config_data['signature_validity_period'],
until_force_exit_epochs=config_data['until_force_exit_epochs'],
reward_vote_epoch_divider=config_data.get('reward_vote_epoch_divider', 0),
)
4 changes: 4 additions & 0 deletions sw_utils/typings.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,9 @@ class ProtocolConfig:

exit_signature_recover_threshold: int

# Vote for rewards every n epochs
reward_vote_epoch_divider: int = 0

# values from contracts
validators_threshold: int = 0
rewards_threshold: int = 0

0 comments on commit ebedafc

Please sign in to comment.