Skip to content

Commit 7d5b622

Browse files
authored
set Osaka fork configurations for mainnet (#3807)
1 parent 91afc05 commit 7d5b622

File tree

4 files changed

+18
-8
lines changed

4 files changed

+18
-8
lines changed

execution_chain/common/chain_config.nim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# This file may not be copied, modified, or distributed except according to
88
# those terms.
99

10-
{.push raises: [].}
10+
{.push raises: [], gcsafe.}
1111

1212
import
1313
std/[tables, strutils, times, macros],
@@ -103,7 +103,7 @@ type
103103
address: Address
104104
account: GenesisAccount
105105

106-
proc read*(rlp: var Rlp, T: type AddressBalance): T {.gcsafe, raises: [RlpError].}=
106+
proc read*(rlp: var Rlp, T: type AddressBalance): T {.raises: [RlpError].}=
107107
let listLen = rlp.listLen
108108
rlp.tryEnterList()
109109
let abytes = rlp.read(UInt256).to(Bytes32)
@@ -544,6 +544,9 @@ func chainConfigForNetwork*(id: NetworkId): ChainConfig =
544544
shanghaiTime: Opt.some(1_681_338_455.EthTime), # 2023-04-12 10:27:35 UTC
545545
cancunTime: Opt.some(1_710_338_135.EthTime), # 2024-03-13 13:55:35 UTC
546546
pragueTime: Opt.some(1_746_612_311.EthTime), # 2025-05-07 10:05:11 UTC
547+
osakaTime: Opt.some(1_764_798_551.EthTime), # 2025-12-03 21:49:11 UTC
548+
bpo1Time: Opt.some(1_765_290_071.EthTime), # 2025-12-09 14:21:11 UTC
549+
bpo2Time: Opt.some(1_767_747_671.EthTime), # 2026-01-07 01:01:11 UTC
547550
depositContractAddress: Opt.some(MAINNET_DEPOSIT_CONTRACT_ADDRESS),
548551
blobSchedule: defaultBlobSchedule(),
549552
)

execution_chain/nimbus.nim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ import
4242
conf as ecconf,
4343
el_sync,
4444
nimbus_desc,
45-
el_sync,
4645
nimbus_execution_client,
4746
version_info,
4847
]
@@ -354,7 +353,7 @@ proc main() {.noinline, raises: [CatchableError].} =
354353
setupLogging(config.logLevel, config.logStdout, none OutFile)
355354
setupFileLimits()
356355

357-
if not (checkAndCreateDataDir(string(config.dataDir))):
356+
if not (checkAndCreateDataDir(config.dataDir)):
358357
# We are unable to access/create data folder or data folder's
359358
# permissions are insecure.
360359
quit QuitFailure

portal/rpc/portal_rpc_client.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
66
# at your option. This file may not be copied, modified, or distributed except according to those terms.
77

8-
{.push raises: [].}
8+
{.push raises: [], gcsafe.}
99

1010
import
1111
json_serialization,
@@ -40,7 +40,7 @@ proc init*(T: type PortalRpcClient, rpcClient: RpcClient): T =
4040
func toPortalRpcError*(error: string): PortalErrorResponse =
4141
try:
4242
Json.decode(error, PortalErrorResponse)
43-
except SerializationError as e:
43+
except SerializationError:
4444
PortalErrorResponse(code: InvalidJsonRpcError, message: error)
4545

4646
template toBytes(content: string): seq[byte] =

tests/test_forkid.nim

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# at your option. This file may not be copied, modified, or distributed except
99
# according to those terms.
1010

11+
{.push raises: [], gcsafe.}
12+
1113
import
1214
std/strutils,
1315
unittest2,
@@ -47,8 +49,14 @@ const
4749
(number: 15050000'u64, time: 1710338134'u64, id: (crc: 0xdce96c2d'u32, next: 1710338135'u64)), # Last Shanghai time
4850
(number: 15050000'u64, time: 1710338135'u64, id: (crc: 0x9f3d2254'u32, next: 1746612311'u64)), # First Cancun time
4951
(number: 15050000'u64, time: 1746612310'u64, id: (crc: 0x9f3d2254'u32, next: 1746612311'u64)), # Last Cancun time
50-
(number: 15050000'u64, time: 1746612311'u64, id: (crc: 0xc376cf8b'u32, next: 0'u64)), # First Prague time
51-
(number: 15050000'u64, time: 2746612311'u64, id: (crc: 0xc376cf8b'u32, next: 0'u64)), # Future Prague time
52+
(number: 15050000'u64, time: 1746612311'u64, id: (crc: 0xc376cf8b'u32, next: 1764798551'u64)), # First Prague time
53+
(number: 15050000'u64, time: 1764798550'u64, id: (crc: 0xc376cf8b'u32, next: 1764798551'u64)), # Last Prague time
54+
(number: 15050000'u64, time: 1764798551'u64, id: (crc: 0x5167e2a6'u32, next: 1765290071'u64)), # First Osaka time
55+
(number: 15050000'u64, time: 1765290070'u64, id: (crc: 0x5167e2a6'u32, next: 1765290071'u64)), # Last Osaka time
56+
(number: 15050000'u64, time: 1765290071'u64, id: (crc: 0xcba2a1c0'u32, next: 1767747671'u64)), # First BPO1 time
57+
(number: 15050000'u64, time: 1767747670'u64, id: (crc: 0xcba2a1c0'u32, next: 1767747671'u64)), # Last BPO1 time
58+
(number: 15050000'u64, time: 1767747671'u64, id: (crc: 0x07c9462e'u32, next: 0'u64)), # First BPO2 time
59+
(number: 15050000'u64, time: 1767747672'u64, id: (crc: 0x07c9462e'u32, next: 0'u64)), # Future BPO2 time
5260
]
5361

5462
SepoliaNetIDs = [

0 commit comments

Comments
 (0)