Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 1.31 KB

File metadata and controls

45 lines (26 loc) · 1.31 KB

New Upgrade Configuration Checklist

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.


1. Core Configuration Files

  • Add new time field to Config struct
  • Add UnscheduledActivationTime activation time to all configs:
    • Mainnet config
    • Fuji config
    • Default config
  • Add field to Validate() method's upgrades slice
  • Add IsXActivated(time.Time) bool method
  • Add new time field to NetworkUpgrades struct in getNetworkUpgrades()
  • Add a new grpcutils.TimestampAsTime block to convertNetworkUpgrades() function

2. Test Helper Files

  • Add new fork constant before Latest
  • Add case to String() method
  • Add case to SetTimesTo() function

After Initial Implementation

Once the upgrade is scheduled for mainnet or fuji, ensure you update the config with the actual activation time respectively.