Skip to content

Commit

Permalink
param update for increased slahsing penalties
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun committed Nov 18, 2019
1 parent bb7e769 commit 4964b09
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions contrib/updates/columbus-2-to-columbus-3.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ def process_raw_genesis(genesis, parsed_args):
}
}

genesis['app_state']['slash']['params']['slash_fraction_double_sign'] = '0.05'
genesis['app_state']['slash']['params']['slash_fraction_downtime'] = '0.01'

# Move genesis state key from distr to distribution
genesis['app_state']['distribution'] = genesis['app_state']['distr']
del genesis['app_state']['distr']
Expand Down Expand Up @@ -295,8 +298,8 @@ def process_raw_genesis(genesis, parsed_args):
'reward_band': genesis['app_state']['oracle']['params']['oracle_reward_band'],
'whitelist': ['ukrw', 'usdr', 'uusd', 'umnt'],
'reward_distribution_window': '86400', # votes periods per month (blocks per monty = 518,400)
'slash_window': '2880', # vote periods per day (blocks per day = 17,280)
'slash_fraction': '0.0001', # 0.01%
'slash_window': '86400', # vote periods per day (blocks per day = 17,280)
'slash_fraction': '0.01', # 0.01%
'min_valid_per_window': '0.05' # 5%
}
}
Expand Down

0 comments on commit 4964b09

Please sign in to comment.