Skip to content

Commit c484326

Browse files
authored
Mumbai: fix fork ID for Agra (#8631)
Cherry pick PR #8630 into release
1 parent e59704f commit c484326

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

core/forkid/forkid.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ func GatherForks(config *chain.Config, genesisTime uint64) (heightForks []uint64
244244
heightForks = append(heightForks, *config.Aura.PosdaoTransition)
245245
}
246246

247+
if config.Bor != nil && config.Bor.AgraBlock != nil {
248+
heightForks = append(heightForks, config.Bor.AgraBlock.Uint64())
249+
}
250+
247251
// Sort the fork block numbers & times to permit chronological XOR
248252
slices.Sort(heightForks)
249253
slices.Sort(timeForks)

core/forkid/forkid_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,18 @@ func TestCreation(t *testing.T) {
141141
{4100419, 1684934220, ID{Hash: checksumToBytes(0xa15a4252), Next: 0}}, // First Shanghai block
142142
},
143143
},
144+
// Mumbai test cases
145+
{
146+
params.MumbaiChainConfig,
147+
params.MumbaiGenesisHash,
148+
[]testcase{
149+
{0, 0, ID{Hash: checksumToBytes(0xf6ef3fdf), Next: 2722000}},
150+
{2722000, 0, ID{Hash: checksumToBytes(0x8647df30), Next: 13996000}}, // First Istanbul block
151+
{13996000, 0, ID{Hash: checksumToBytes(0x06cc1179), Next: 22640000}}, // First Berlin block
152+
{22640000, 0, ID{Hash: checksumToBytes(0x9adf950e), Next: 41874000}}, // First London block
153+
{41874000, 0, ID{Hash: checksumToBytes(0x0c015a91), Next: 0}}, // First Agra block
154+
},
155+
},
144156
}
145157
for i, tt := range tests {
146158
for j, ttt := range tt.cases {

params/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var (
3333
const (
3434
VersionMajor = 2 // Major version component of the current release
3535
VersionMinor = 53 // Minor version component of the current release
36-
VersionMicro = 3 // Patch version component of the current release
36+
VersionMicro = 4 // Patch version component of the current release
3737
VersionModifier = "" // Modifier component of the current release
3838
VersionKeyCreated = "ErigonVersionCreated"
3939
VersionKeyFinished = "ErigonVersionFinished"

0 commit comments

Comments
 (0)