feat: implement FIP-0063
This commit is contained in:
1 parent
6a0f16b084
commit
aa72d69ad0
13 files changed
+127
-95
No files matched your search
@@ -27,6 +27,7 @@ const (
|
||||
DrandDevnet
|
||||
DrandLocalnet
|
||||
DrandIncentinet
|
||||
DrandQuicknet
|
||||
)
|
||||
|
||||
var DrandConfigs = map[DrandEnum]dtypes.DrandConfig{
|
||||
@@ -36,6 +37,7 @@ var DrandConfigs = map[DrandEnum]dtypes.DrandConfig{
|
||||
"https://api2.drand.sh",
|
||||
"https://api3.drand.sh",
|
||||
"https://drand.cloudflare.com",
|
||||
"https://api.drand.secureweb3.com:6875", // Storswift
|
||||
},
|
||||
Relays: []string{
|
||||
"/dnsaddr/api.drand.sh/",
|
||||
@@ -44,6 +46,21 @@ var DrandConfigs = map[DrandEnum]dtypes.DrandConfig{
|
||||
},
|
||||
ChainInfoJSON: `{"public_key":"868f005eb8e6e4ca0a47c8a77ceaa5309a47978a7c71bc5cce96366b5d7a569937c529eeda66c7293784a9402801af31","period":30,"genesis_time":1595431050,"hash":"8990e7a9aaed2ffed73dbd7092123d6f289930540d7651336225dc172e51b2ce","groupHash":"176f93498eac9ca337150b46d21dd58673ea4e3581185f869672e59fa4cb390a"}`,
|
||||
},
|
||||
DrandQuicknet: {
|
||||
Servers: []string{
|
||||
"https://api.drand.sh",
|
||||
"https://api2.drand.sh",
|
||||
"https://api3.drand.sh",
|
||||
"https://drand.cloudflare.com",
|
||||
"https://api.drand.secureweb3.com:6875", // Storswift
|
||||
},
|
||||
Relays: []string{
|
||||
"/dnsaddr/api.drand.sh/",
|
||||
"/dnsaddr/api2.drand.sh/",
|
||||
"/dnsaddr/api3.drand.sh/",
|
||||
},
|
||||
ChainInfoJSON: `{"public_key":"83cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a","period":3,"genesis_time":1692803367,"hash":"52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971","groupHash":"f477d5c89f21a17c863a7f937c6a6d15859414d2be09cd448d4279af331c5d3e","schemeID":"bls-unchained-g1-rfc9380","metadata":{"beaconID":"quicknet"}}`,
|
||||
},
|
||||
DrandTestnet: {
|
||||
Servers: []string{
|
||||
"https://pl-eu.testnet.drand.sh",
|
||||
|
||||
+5
-2
@@ -67,7 +67,9 @@ var UpgradeThunderHeight = abi.ChainEpoch(-23)
|
||||
|
||||
var UpgradeWatermelonHeight = abi.ChainEpoch(-24)
|
||||
|
||||
var UpgradePineappleHeight = abi.ChainEpoch(200)
|
||||
var UpgradePineappleHeight = abi.ChainEpoch(20)
|
||||
|
||||
var UpgradeMangoHeight = UpgradePineappleHeight + 10
|
||||
|
||||
// This fix upgrade only ran on calibrationnet
|
||||
const UpgradeWatermelonFixHeight = -100
|
||||
@@ -76,7 +78,8 @@ const UpgradeWatermelonFixHeight = -100
|
||||
const UpgradeWatermelonFix2Height = -101
|
||||
|
||||
var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
|
||||
0: DrandMainnet,
|
||||
0: DrandMainnet,
|
||||
UpgradeMangoHeight: DrandQuicknet,
|
||||
}
|
||||
|
||||
var SupportedProofTypes = []abi.RegisteredSealProof{
|
||||
|
||||
@@ -16,7 +16,8 @@ import (
|
||||
)
|
||||
|
||||
var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
|
||||
0: DrandMainnet,
|
||||
0: DrandMainnet,
|
||||
UpgradeMangoHeight: DrandQuicknet,
|
||||
}
|
||||
|
||||
const GenesisNetworkVersion = network.Version20
|
||||
@@ -59,6 +60,8 @@ const UpgradeWatermelonHeight = -24
|
||||
// ??????
|
||||
const UpgradePineappleHeight = 999999999999999
|
||||
|
||||
const UpgradeMangoHeight = UpgradePineappleHeight + 10
|
||||
|
||||
// This fix upgrade only ran on calibrationnet
|
||||
const UpgradeWatermelonFixHeight = -100
|
||||
|
||||
|
||||
@@ -19,7 +19,8 @@ import (
|
||||
)
|
||||
|
||||
var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
|
||||
0: DrandMainnet,
|
||||
0: DrandMainnet,
|
||||
UpgradeMangoHeight: DrandQuicknet,
|
||||
}
|
||||
|
||||
const GenesisNetworkVersion = network.Version0
|
||||
@@ -91,6 +92,8 @@ const UpgradeWatermelonFix2Height = 1108174
|
||||
// ??????
|
||||
const UpgradePineappleHeight = 999999999999999
|
||||
|
||||
const UpgradeMangoHeight = UpgradePineappleHeight + 10
|
||||
|
||||
var SupportedProofTypes = []abi.RegisteredSealProof{
|
||||
abi.RegisteredSealProof_StackedDrg32GiBV1,
|
||||
abi.RegisteredSealProof_StackedDrg64GiBV1,
|
||||
|
||||
@@ -57,6 +57,8 @@ var UpgradeWatermelonHeight = abi.ChainEpoch(-24)
|
||||
|
||||
const UpgradePineappleHeight = 50
|
||||
|
||||
const UpgradeMangoHeight = UpgradePineappleHeight + 10
|
||||
|
||||
// This fix upgrade only ran on calibrationnet
|
||||
const UpgradeWatermelonFixHeight = -1
|
||||
|
||||
@@ -64,7 +66,8 @@ const UpgradeWatermelonFixHeight = -1
|
||||
const UpgradeWatermelonFix2Height = -2
|
||||
|
||||
var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
|
||||
0: DrandMainnet,
|
||||
0: DrandMainnet,
|
||||
UpgradeMangoHeight: DrandQuicknet,
|
||||
}
|
||||
|
||||
var SupportedProofTypes = []abi.RegisteredSealProof{
|
||||
|
||||
@@ -18,6 +18,7 @@ import (
|
||||
var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
|
||||
0: DrandIncentinet,
|
||||
UpgradeSmokeHeight: DrandMainnet,
|
||||
UpgradeMangoHeight: DrandQuicknet,
|
||||
}
|
||||
|
||||
var NetworkBundle = "mainnet"
|
||||
@@ -101,6 +102,10 @@ const UpgradeWatermelonHeight = 3469380
|
||||
// ??????
|
||||
var UpgradePineappleHeight = abi.ChainEpoch(999999999999999)
|
||||
|
||||
// This epoch, 10 epochs after the "rest" of the nv22 upgrade, is when we switch to Drand quicknet
|
||||
// ??????
|
||||
var UpgradeMangoHeight = UpgradePineappleHeight + 10
|
||||
|
||||
// This fix upgrade only ran on calibrationnet
|
||||
const UpgradeWatermelonFixHeight = -1
|
||||
|
||||
@@ -123,7 +128,8 @@ func init() {
|
||||
}
|
||||
|
||||
if os.Getenv("LOTUS_DISABLE_PINEAPPLE") == "1" {
|
||||
UpgradePineappleHeight = math.MaxInt64
|
||||
UpgradePineappleHeight = math.MaxInt64 - 1
|
||||
UpgradeMangoHeight = math.MaxInt64
|
||||
}
|
||||
|
||||
// NOTE: DO NOT change this unless you REALLY know what you're doing. This is not consensus critical, however,
|
||||
|
||||
@@ -113,9 +113,11 @@ var (
|
||||
UpgradeWatermelonFixHeight abi.ChainEpoch = -24
|
||||
UpgradeWatermelonFix2Height abi.ChainEpoch = -25
|
||||
UpgradePineappleHeight abi.ChainEpoch = -26
|
||||
UpgradeMangoHeight abi.ChainEpoch = -27
|
||||
|
||||
DrandSchedule = map[abi.ChainEpoch]DrandEnum{
|
||||
0: DrandMainnet,
|
||||
0: DrandMainnet,
|
||||
UpgradeMangoHeight: DrandQuicknet,
|
||||
}
|
||||
|
||||
GenesisNetworkVersion = network.Version0
|
||||
|
||||
Reference in new issue
Block a user