Skip to content

Commit

Permalink
enforce min commission on pre-genesis validators at init-chain
Browse files Browse the repository at this point in the history
  • Loading branch information
brentstone committed Sep 23, 2024
1 parent eac0b1f commit b8492b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/node/src/shell/init_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,10 @@ where
eth_cold_key: &eth_cold_key.pk.raw,
eth_hot_key: &eth_hot_key.pk.raw,
current_epoch,
commission_rate: *commission_rate,
commission_rate: std::cmp::max(
*commission_rate,
params.min_commission_rate,
),
max_commission_rate_change:
*max_commission_rate_change,
metadata: metadata.clone(),
Expand Down

0 comments on commit b8492b9

Please sign in to comment.