Skip to content

Commit

Permalink
Update params/network_upgrades.go
Browse files Browse the repository at this point in the history
Co-authored-by: Darioush Jalali <darioush.jalali@avalabs.org>
Signed-off-by: Ceyhun Onur <ceyhunonur54@gmail.com>
  • Loading branch information
ceyonur and darioush authored Mar 28, 2024
1 parent 8f8adb5 commit 712c843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion params/network_upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (n *NetworkUpgrades) setDefaults(networkID uint32) {
// If the network upgrade is set to 0, we also treat it as nil and set it default.
// This is because in prior versions, upgrades were not modifiable and were directly set to their default values.
// Most of the tools and configurations just provide these as 0, so it is safer to treat 0 as nil and set to default
// to prevent premature activations of the network upgrades.
// to prevent premature activations of the network upgrades for live networks.
if n.SubnetEVMTimestamp == nil || *n.SubnetEVMTimestamp == 0 {
n.SubnetEVMTimestamp = defaults.SubnetEVMTimestamp
}
Expand Down

0 comments on commit 712c843

Please sign in to comment.