aboutsummaryrefslogtreecommitdiff
path: root/params
diff options
context:
space:
mode:
authorAaron Buchwald <[email protected]>2020-12-15 17:34:48 -0500
committerAaron Buchwald <[email protected]>2020-12-15 17:34:48 -0500
commitfaf845717a170e1c4baebaafef051d32058e2f99 (patch)
tree11c79e199e47dedfd3a692eaf21a3e5b860e0c4c /params
parentcc2a13f91f95bd377f5c3efb86ebbcc7096f6d97 (diff)
Move params for network upgrade
Diffstat (limited to 'params')
-rw-r--r--params/config.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/params/config.go b/params/config.go
index d5db94f..a0b4a51 100644
--- a/params/config.go
+++ b/params/config.go
@@ -53,6 +53,7 @@ var CheckpointOracles = map[common.Hash]*CheckpointOracleConfig{
GoerliGenesisHash: GoerliCheckpointOracle,
}
+// Avalanche ChainIDs
var (
// AvalancheMainnetChainID ...
AvalancheMainnetChainID = big.NewInt(43114)
@@ -60,6 +61,12 @@ var (
AvalancheFujiChainID = big.NewInt(43113)
)
+// Network upgrade block timestamps
+var (
+ AvalancheMainnetApricotTimestamp = new(big.Int).SetUint64(uint64(time.Date(2021, 1, 7, 5, 00, 0, 0, time.UTC).Unix()))
+ AvalancheFujiApricotTimestamp = new(big.Int).SetUint64(uint64(time.Date(2020, 12, 23, 5, 00, 0, 0, time.UTC).Unix()))
+)
+
var (
// AvalancheApricotMainnetChainConfig is the configuration for Avalanche Main Network
AvalancheApricotMainnetChainConfig = &ChainConfig{
@@ -75,7 +82,7 @@ var (
PetersburgBlock: big.NewInt(0),
IstanbulBlock: big.NewInt(0),
MuirGlacierBlock: big.NewInt(0),
- ApricotBlockTimestamp: new(big.Int).SetUint64(uint64(time.Date(2021, 1, 7, 5, 00, 0, 0, time.UTC).Unix())),
+ ApricotBlockTimestamp: AvalancheMainnetApricotTimestamp,
}
// AvalancheApricotFujiChainConfig is the configuration for the Fuji Test Network
@@ -92,7 +99,7 @@ var (
PetersburgBlock: big.NewInt(0),
IstanbulBlock: big.NewInt(0),
MuirGlacierBlock: big.NewInt(0),
- ApricotBlockTimestamp: new(big.Int).SetUint64(uint64(time.Date(2020, 12, 23, 5, 00, 0, 0, time.UTC).Unix())),
+ ApricotBlockTimestamp: AvalancheFujiApricotTimestamp,
}
// MainnetChainConfig is the chain parameters to run a node on the main network.