Skip to content

Commit b81f03e

Browse files
params: enable osaka on dev mode (#32917)
enables the osaka fork on dev mode --------- Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
1 parent b1809d1 commit b81f03e

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

core/genesis.go

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -669,23 +669,24 @@ func DeveloperGenesisBlock(gasLimit uint64, faucet *common.Address) *Genesis {
669669
BaseFee: big.NewInt(params.InitialBaseFee),
670670
Difficulty: big.NewInt(0),
671671
Alloc: map[common.Address]types.Account{
672-
common.BytesToAddress([]byte{0x01}): {Balance: big.NewInt(1)}, // ECRecover
673-
common.BytesToAddress([]byte{0x02}): {Balance: big.NewInt(1)}, // SHA256
674-
common.BytesToAddress([]byte{0x03}): {Balance: big.NewInt(1)}, // RIPEMD
675-
common.BytesToAddress([]byte{0x04}): {Balance: big.NewInt(1)}, // Identity
676-
common.BytesToAddress([]byte{0x05}): {Balance: big.NewInt(1)}, // ModExp
677-
common.BytesToAddress([]byte{0x06}): {Balance: big.NewInt(1)}, // ECAdd
678-
common.BytesToAddress([]byte{0x07}): {Balance: big.NewInt(1)}, // ECScalarMul
679-
common.BytesToAddress([]byte{0x08}): {Balance: big.NewInt(1)}, // ECPairing
680-
common.BytesToAddress([]byte{0x09}): {Balance: big.NewInt(1)}, // BLAKE2b
681-
common.BytesToAddress([]byte{0x0a}): {Balance: big.NewInt(1)}, // KZGPointEval
682-
common.BytesToAddress([]byte{0x0b}): {Balance: big.NewInt(1)}, // BLSG1Add
683-
common.BytesToAddress([]byte{0x0c}): {Balance: big.NewInt(1)}, // BLSG1MultiExp
684-
common.BytesToAddress([]byte{0x0d}): {Balance: big.NewInt(1)}, // BLSG2Add
685-
common.BytesToAddress([]byte{0x0e}): {Balance: big.NewInt(1)}, // BLSG2MultiExp
686-
common.BytesToAddress([]byte{0x0f}): {Balance: big.NewInt(1)}, // BLSG1Pairing
687-
common.BytesToAddress([]byte{0x10}): {Balance: big.NewInt(1)}, // BLSG1MapG1
688-
common.BytesToAddress([]byte{0x11}): {Balance: big.NewInt(1)}, // BLSG2MapG2
672+
common.BytesToAddress([]byte{0x01}): {Balance: big.NewInt(1)}, // ECRecover
673+
common.BytesToAddress([]byte{0x02}): {Balance: big.NewInt(1)}, // SHA256
674+
common.BytesToAddress([]byte{0x03}): {Balance: big.NewInt(1)}, // RIPEMD
675+
common.BytesToAddress([]byte{0x04}): {Balance: big.NewInt(1)}, // Identity
676+
common.BytesToAddress([]byte{0x05}): {Balance: big.NewInt(1)}, // ModExp
677+
common.BytesToAddress([]byte{0x06}): {Balance: big.NewInt(1)}, // ECAdd
678+
common.BytesToAddress([]byte{0x07}): {Balance: big.NewInt(1)}, // ECScalarMul
679+
common.BytesToAddress([]byte{0x08}): {Balance: big.NewInt(1)}, // ECPairing
680+
common.BytesToAddress([]byte{0x09}): {Balance: big.NewInt(1)}, // BLAKE2b
681+
common.BytesToAddress([]byte{0x0a}): {Balance: big.NewInt(1)}, // KZGPointEval
682+
common.BytesToAddress([]byte{0x0b}): {Balance: big.NewInt(1)}, // BLSG1Add
683+
common.BytesToAddress([]byte{0x0c}): {Balance: big.NewInt(1)}, // BLSG1MultiExp
684+
common.BytesToAddress([]byte{0x0d}): {Balance: big.NewInt(1)}, // BLSG2Add
685+
common.BytesToAddress([]byte{0x0e}): {Balance: big.NewInt(1)}, // BLSG2MultiExp
686+
common.BytesToAddress([]byte{0x0f}): {Balance: big.NewInt(1)}, // BLSG1Pairing
687+
common.BytesToAddress([]byte{0x10}): {Balance: big.NewInt(1)}, // BLSG1MapG1
688+
common.BytesToAddress([]byte{0x11}): {Balance: big.NewInt(1)}, // BLSG2MapG2
689+
common.BytesToAddress([]byte{0x1, 00}): {Balance: big.NewInt(1)}, // P256Verify
689690
// Pre-deploy system contracts
690691
params.BeaconRootsAddress: {Nonce: 1, Code: params.BeaconRootsCode, Balance: common.Big0},
691692
params.HistoryStorageAddress: {Nonce: 1, Code: params.HistoryStorageCode, Balance: common.Big0},

params/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,11 @@ var (
225225
CancunTime: newUint64(0),
226226
TerminalTotalDifficulty: big.NewInt(0),
227227
PragueTime: newUint64(0),
228+
OsakaTime: newUint64(0),
228229
BlobScheduleConfig: &BlobScheduleConfig{
229230
Cancun: DefaultCancunBlobConfig,
230231
Prague: DefaultPragueBlobConfig,
232+
Osaka: DefaultOsakaBlobConfig,
231233
},
232234
}
233235

0 commit comments

Comments
 (0)