Skip to content

Commit c84be10

Browse files
Name F-Upgrade Fortuna (#3761)
1 parent cc90464 commit c84be10

File tree

15 files changed

+415
-413
lines changed

15 files changed

+415
-413
lines changed

api/info/service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ curl -X POST --data '{
695695
"cortinaXChainStopVertexID": "11111111111111111111111111111111LpoYY",
696696
"durangoTime": "2020-12-05T05:00:00Z",
697697
"etnaTime": "2024-10-09T20:00:00Z",
698-
"fUpgradeTime": "9999-12-01T05:00:00Z"
698+
"fortunaTime": "9999-12-01T05:00:00Z"
699699
},
700700
"id": 1
701701
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/DataDog/zstd v1.5.2
1414
github.com/NYTimes/gziphandler v1.1.1
1515
github.com/antithesishq/antithesis-sdk-go v0.3.8
16-
github.com/ava-labs/coreth v0.14.1-acp-176.1
16+
github.com/ava-labs/coreth v0.14.1-rc.2
1717
github.com/ava-labs/ledger-avalanche/go v0.0.0-20241009183145-e6f90a8a1a60
1818
github.com/btcsuite/btcd/btcutil v1.1.3
1919
github.com/cockroachdb/pebble v0.0.0-20230928194634-aa077af62593

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ github.com/antithesishq/antithesis-sdk-go v0.3.8/go.mod h1:IUpT2DPAKh6i/YhSbt6Gl
6464
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
6565
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
6666
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
67-
github.com/ava-labs/coreth v0.14.1-acp-176.1 h1:44iXYYeLR4LzTM+5DB7ohGqysDiTFPIvxiuFY9vZJAI=
68-
github.com/ava-labs/coreth v0.14.1-acp-176.1/go.mod h1:AEQcF8MWrKH0sS114wEZlkSfeGF5F66xTbQYqqimNLI=
67+
github.com/ava-labs/coreth v0.14.1-rc.2 h1:GRL7bMeNKhz1aNFEPJ3Rcd2Di/RfW8JOK/I9deAr6+0=
68+
github.com/ava-labs/coreth v0.14.1-rc.2/go.mod h1:gIGr+5WDNX1DrFvUMy53AtTpkxlM/8cNOD/PDIChKfM=
6969
github.com/ava-labs/ledger-avalanche/go v0.0.0-20241009183145-e6f90a8a1a60 h1:EL66gtXOAwR/4KYBjOV03LTWgkEXvLePribLlJNu4g0=
7070
github.com/ava-labs/ledger-avalanche/go v0.0.0-20241009183145-e6f90a8a1a60/go.mod h1:/7qKobTfbzBu7eSTVaXMTr56yTYk4j2Px6/8G+idxHo=
7171
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=

proto/pb/vm/vm.pb.go

Lines changed: 385 additions & 385 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/vm/vm.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ message NetworkUpgrades {
130130
bytes cortina_x_chain_stop_vertex_id = 12;
131131
google.protobuf.Timestamp durango_time = 13;
132132
google.protobuf.Timestamp etna_time = 14;
133-
google.protobuf.Timestamp f_upgrade_time = 15;
133+
google.protobuf.Timestamp fortuna_time = 15;
134134
}
135135

136136
message InitializeResponse {

tests/e2e/c/dynamic_fees.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ var _ = e2e.DescribeCChain("[Dynamic Fees]", func() {
105105
require.NoError(err)
106106

107107
now := time.Now()
108-
if upgrades.IsFUpgradeActivated(now) {
108+
if upgrades.IsFortunaActivated(now) {
109109
gasLimit = acp176.MinMaxCapacity
110110
} else {
111111
gasLimit = cortina.GasLimit

tests/e2e/e2e_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ var _ = ginkgo.SynchronizedBeforeSuite(func() []byte {
4747

4848
upgrades := upgrade.Default
4949
if flagVars.ActivateFortuna() {
50-
upgrades.FUpgradeTime = upgrade.InitiallyActiveTime
50+
upgrades.FortunaTime = upgrade.InitiallyActiveTime
5151
} else {
52-
upgrades.FUpgradeTime = upgrade.UnscheduledActivationTime
52+
upgrades.FortunaTime = upgrade.UnscheduledActivationTime
5353
}
5454
tc.Log().Info("setting upgrades",
5555
zap.Reflect("upgrades", upgrades),

upgrade/upgrade.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var (
3535
CortinaXChainStopVertexID: ids.FromStringOrPanic("jrGWDh5Po9FMj54depyunNixpia5PN4aAYxfmNzU8n752Rjga"),
3636
DurangoTime: time.Date(2024, time.March, 6, 16, 0, 0, 0, time.UTC),
3737
EtnaTime: time.Date(2024, time.December, 16, 17, 0, 0, 0, time.UTC),
38-
FUpgradeTime: UnscheduledActivationTime,
38+
FortunaTime: UnscheduledActivationTime,
3939
}
4040
Fuji = Config{
4141
ApricotPhase1Time: time.Date(2021, time.March, 26, 14, 0, 0, 0, time.UTC),
@@ -56,7 +56,7 @@ var (
5656
CortinaXChainStopVertexID: ids.FromStringOrPanic("2D1cmbiG36BqQMRyHt4kFhWarmatA1ighSpND3FeFgz3vFVtCZ"),
5757
DurangoTime: time.Date(2024, time.February, 13, 16, 0, 0, 0, time.UTC),
5858
EtnaTime: time.Date(2024, time.November, 25, 16, 0, 0, 0, time.UTC),
59-
FUpgradeTime: UnscheduledActivationTime,
59+
FortunaTime: UnscheduledActivationTime,
6060
}
6161
Default = Config{
6262
ApricotPhase1Time: InitiallyActiveTime,
@@ -73,7 +73,7 @@ var (
7373
CortinaXChainStopVertexID: ids.Empty,
7474
DurangoTime: InitiallyActiveTime,
7575
EtnaTime: InitiallyActiveTime,
76-
FUpgradeTime: UnscheduledActivationTime,
76+
FortunaTime: UnscheduledActivationTime,
7777
}
7878

7979
ErrInvalidUpgradeTimes = errors.New("invalid upgrade configuration")
@@ -94,7 +94,7 @@ type Config struct {
9494
CortinaXChainStopVertexID ids.ID `json:"cortinaXChainStopVertexID"`
9595
DurangoTime time.Time `json:"durangoTime"`
9696
EtnaTime time.Time `json:"etnaTime"`
97-
FUpgradeTime time.Time `json:"fUpgradeTime"`
97+
FortunaTime time.Time `json:"fortunaTime"`
9898
}
9999

100100
func (c *Config) Validate() error {
@@ -111,7 +111,7 @@ func (c *Config) Validate() error {
111111
c.CortinaTime,
112112
c.DurangoTime,
113113
c.EtnaTime,
114-
c.FUpgradeTime,
114+
c.FortunaTime,
115115
}
116116
for i := 0; i < len(upgrades)-1; i++ {
117117
if upgrades[i].After(upgrades[i+1]) {
@@ -175,8 +175,8 @@ func (c *Config) IsEtnaActivated(t time.Time) bool {
175175
return !t.Before(c.EtnaTime)
176176
}
177177

178-
func (c *Config) IsFUpgradeActivated(t time.Time) bool {
179-
return !t.Before(c.FUpgradeTime)
178+
func (c *Config) IsFortunaActivated(t time.Time) bool {
179+
return !t.Before(c.FortunaTime)
180180
}
181181

182182
func GetConfig(networkID uint32) Config {

upgrade/upgradetest/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ func GetConfigWithUpgradeTime(fork Fork, upgradeTime time.Time) upgrade.Config {
3131
// to the provided upgradeTime.
3232
func SetTimesTo(c *upgrade.Config, fork Fork, upgradeTime time.Time) {
3333
switch fork {
34-
case FUpgrade:
35-
c.FUpgradeTime = upgradeTime
34+
case Fortuna:
35+
c.FortunaTime = upgradeTime
3636
fallthrough
3737
case Etna:
3838
c.EtnaTime = upgradeTime

upgrade/upgradetest/fork.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ const (
1717
Cortina
1818
Durango
1919
Etna
20-
FUpgrade
20+
Fortuna
2121

22-
Latest = FUpgrade
22+
Latest = Fortuna
2323
)
2424

2525
// Fork is an enum of all the major network upgrades.
2626
type Fork int
2727

2828
func (f Fork) String() string {
2929
switch f {
30-
case FUpgrade:
31-
return "FUpgrade"
30+
case Fortuna:
31+
return "Fortuna"
3232
case Etna:
3333
return "Etna"
3434
case Durango:

0 commit comments

Comments
 (0)