This checklist lists all the required steps when adding a new network upgrade/fork to AvalancheGo. Note that this list is not exhaustive nor future-proof.
- Add new time field to
Configstruct - Add
UnscheduledActivationTimeactivation time to all configs:MainnetconfigFujiconfigDefaultconfig
- Add field to
Validate()method'supgradesslice - Add
IsXActivated(time.Time) boolmethod
- Add new time field to
NetworkUpgradesstruct ingetNetworkUpgrades()
- Add a new
grpcutils.TimestampAsTimeblock toconvertNetworkUpgrades()function
- Add new fork constant before
Latest - Add case to
String()method
- Add case to
SetTimesTo()function
Once the upgrade is scheduled for mainnet or fuji, ensure you update the config with the actual activation time respectively.