Skip to content

Commit 6125a8a

Browse files
authored
[genesis] set Redsea to activate at 11-05-2023 23:59pm UTC (#3949)
1 parent f52501f commit 6125a8a

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

action/protocol/context.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ type (
113113
ValidateSystemAction bool
114114
AllowCorrectChainIDOnly bool
115115
AddContractStakingVotes bool
116-
SharedGasWithDapp bool
117116
FixContractStakingWeightedVotes bool
117+
SharedGasWithDapp bool
118118
}
119119

120120
// FeatureWithHeightCtx provides feature check functions.
@@ -253,8 +253,8 @@ func WithFeatureCtx(ctx context.Context) context.Context {
253253
ValidateSystemAction: g.IsQuebec(height),
254254
AllowCorrectChainIDOnly: g.IsQuebec(height),
255255
AddContractStakingVotes: g.IsQuebec(height),
256-
SharedGasWithDapp: g.IsToBeEnabled(height),
257256
FixContractStakingWeightedVotes: g.IsRedsea(height),
257+
SharedGasWithDapp: g.IsToBeEnabled(height),
258258
},
259259
)
260260
}

action/protocol/execution/evm/evm_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,12 @@ func TestConstantinople(t *testing.T) {
226226
},
227227
{
228228
"io1pcg2ja9krrhujpazswgz77ss46xgt88afqlk6y",
229-
34838200,
229+
26704440,
230230
},
231231
// after Redsea
232232
{
233233
action.EmptyAddress,
234-
34838201,
234+
26704441,
235235
},
236236
{
237237
"io1pcg2ja9krrhujpazswgz77ss46xgt88afqlk6y",

blockchain/genesis/genesis.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func defaultConfig() Genesis {
7171
OkhotskBlockHeight: 21542761,
7272
PalauBlockHeight: 22991401,
7373
QuebecBlockHeight: 24838201,
74-
RedseaBlockHeight: 34838201,
74+
RedseaBlockHeight: 26704441,
7575
ToBeEnabledBlockHeight: math.MaxUint64,
7676
},
7777
Account: Account{
@@ -239,7 +239,9 @@ type (
239239
// 2. enable IIP-13 liquidity staking
240240
// 3. valiate system action layout
241241
QuebecBlockHeight uint64 `yaml:"quebecHeight"`
242-
// RedseaBlockHeight is the start height to enable Shanghai EVM
242+
// RedseaBlockHeight is the start height to
243+
// 1. upgrade go-ethereum to Bellatrix release
244+
// 2. correct weighted votes for contract staking bucket
243245
RedseaBlockHeight uint64 `yaml:"redseaHeight"`
244246
// ToBeEnabledBlockHeight is a fake height that acts as a gating factor for WIP features
245247
// upon next release, change IsToBeEnabled() to IsNextHeight() for features to be released

blockchain/genesis/heightupgrade_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ func TestNewHeightChange(t *testing.T) {
5757
require.True(cfg.IsPalau(uint64(22991401)))
5858
require.False(cfg.IsQuebec(uint64(24838200)))
5959
require.True(cfg.IsQuebec(uint64(24838201)))
60-
require.False(cfg.IsRedsea(uint64(34838200)))
61-
require.True(cfg.IsRedsea(uint64(34838201)))
60+
require.False(cfg.IsRedsea(uint64(26704440)))
61+
require.True(cfg.IsRedsea(uint64(26704441)))
6262

6363
require.Equal(cfg.PacificBlockHeight, uint64(432001))
6464
require.Equal(cfg.AleutianBlockHeight, uint64(864001))
@@ -80,5 +80,5 @@ func TestNewHeightChange(t *testing.T) {
8080
require.Equal(cfg.OkhotskBlockHeight, uint64(21542761))
8181
require.Equal(cfg.PalauBlockHeight, uint64(22991401))
8282
require.Equal(cfg.QuebecBlockHeight, uint64(24838201))
83-
require.Equal(cfg.RedseaBlockHeight, uint64(34838201))
83+
require.Equal(cfg.RedseaBlockHeight, uint64(26704441))
8484
}

0 commit comments

Comments
 (0)