Add inline-gen to itests
This commit is contained in:
parent
5616dfb1bc
commit
9606dce425
@ -13,5 +13,5 @@
|
||||
- [ ] Update `chain/stmgr/forks.go`
|
||||
- [ ] Schedule
|
||||
- [ ] Migration
|
||||
- [ ] Update upgrade schedule in `api/test/test.go` and `chain/sync_test.go`
|
||||
- [ ] Update upgrade schedule in `chain/sync_test.go`
|
||||
- [ ] Register in init in `chain/stmgr/utils.go`
|
||||
|
@ -83,6 +83,9 @@ func main() {
|
||||
}
|
||||
return fmt.Sprintf("/v%d/", int(v))
|
||||
},
|
||||
"add": func(a, b float64) float64 {
|
||||
return a + b
|
||||
},
|
||||
}).Parse(strings.Join(templateLines, "\n"))
|
||||
if err != nil {
|
||||
fmt.Printf("%s:%d: parsing template: %s\n", path, ln, err)
|
||||
|
@ -38,14 +38,25 @@ func SDRUpgradeAt(calico, persian abi.ChainEpoch) EnsembleOpt {
|
||||
}
|
||||
|
||||
func LatestActorsAt(upgradeHeight abi.ChainEpoch) EnsembleOpt {
|
||||
/* inline-gen template
|
||||
return UpgradeSchedule(stmgr.Upgrade{
|
||||
Network: network.Version{{add .latestNetworkVersion -1}},
|
||||
Height: -1,
|
||||
}, stmgr.Upgrade{
|
||||
Network: network.Version{{.latestNetworkVersion}},
|
||||
Height: upgradeHeight,
|
||||
Migration: filcns.UpgradeActorsV{{.latestActorsVersion}},
|
||||
})
|
||||
inline-gen start */
|
||||
return UpgradeSchedule(stmgr.Upgrade{
|
||||
Network: network.Version12,
|
||||
Network: network.Version13,
|
||||
Height: -1,
|
||||
}, stmgr.Upgrade{
|
||||
Network: network.Version13,
|
||||
Network: network.Version14,
|
||||
Height: upgradeHeight,
|
||||
Migration: filcns.UpgradeActorsV5,
|
||||
Migration: filcns.UpgradeActorsV6,
|
||||
})
|
||||
//inline-gen end
|
||||
}
|
||||
|
||||
func TurboUpgradeAt(upgradeHeight abi.ChainEpoch) EnsembleOpt {
|
||||
|
Loading…
Reference in New Issue
Block a user