Skip to content

Commit fc25e4e

Browse files
committed
Fix ForkId equals by exporting base
1 parent 5d77c12 commit fc25e4e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

execution_chain/common/common.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,16 +351,16 @@ func isLondonOrLater*(com: CommonRef, number: BlockNumber): bool =
351351
com.toHardFork(number.forkDeterminationInfo) >= London
352352

353353
func forkId*(com: CommonRef, head, time: uint64): ForkId {.gcsafe.} =
354-
## Get ForkId for given block number / timestamp (EIP 2364/2124)
354+
## Get ForkId for given block number / timestamp (EIP-2124/2364/6122)
355355
com.forkIdCalculator.calculateForkId(head, time)
356356

357357
func forkId*(com: CommonRef, forkActivationTime: EthTime): ForkId {.gcsafe.} =
358-
## Get ForkId for given timestamp (EIP 2364/2124)
358+
## Get ForkId for given timestamp (EIP-2124/2364/6122)
359359
## Only works for timestamp based forks
360360
com.forkIdCalculator.calculateForkId(0'u64, forkActivationTime.uint64)
361361

362362
func forkId*(com: CommonRef, head: BlockNumber, time: EthTime): ForkId {.gcsafe.} =
363-
## Get ForkId for given block number / timestamp (EIP-2124 + EIP-6122)
363+
## Get ForkId for given block number / timestamp (EIP-2124/2364/6122)
364364
com.forkIdCalculator.calculateForkId(head, time.uint64)
365365

366366
func compatibleForkId*(com: CommonRef, forkId: ForkId, blockNumber: BlockNumber, time: EthTime): bool =

execution_chain/networking/peer_pool.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import
1919
./p2p_metrics,
2020
./[eth1_discovery, p2p_peers]
2121

22-
export sets, tables, CompatibleForkIdProc
22+
export sets, tables, CompatibleForkIdProc, base
2323

2424
logScope:
2525
topics = "p2p peer_pool"

vendor/nim-eth

0 commit comments

Comments
 (0)