Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions packages/common/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ export const chains: ChainsDict = {
{
name: 'cancun',
block: null,
forkHash: null,
timestamp: '1705473120',
forkHash: '0x70cc14e2',
},
],
bootstrapNodes: [
Expand Down Expand Up @@ -411,7 +412,8 @@ export const chains: ChainsDict = {
{
name: 'cancun',
block: null,
forkHash: null,
timestamp: '1706655072',
forkHash: '0x88cf81d9',
},
],
bootstrapNodes: [
Expand Down Expand Up @@ -543,7 +545,8 @@ export const chains: ChainsDict = {
{
name: 'cancun',
block: null,
forkHash: null,
timestamp: '1707305664',
forkHash: '0x9b192ad0',
},
],
bootstrapNodes: [
Expand Down
7 changes: 5 additions & 2 deletions packages/common/test/hardforks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,13 @@ describe('[Common]: Hardfork logic', () => {
msg = 'should return correct next HF (mainnet: byzantium -> constantinople)'
assert.equal(c.nextHardforkBlockOrTimestamp(Hardfork.Byzantium)!, BigInt(7280000), msg)

msg = 'should return null if next HF is not available (mainnet: shanghai -> cancun)'
assert.equal(c.nextHardforkBlockOrTimestamp(Hardfork.Shanghai), null, msg)

const c2 = new Common({ chain: Chain.Goerli, hardfork: Hardfork.Chainstart })

msg = 'should return null if next HF is not available (mainnet: shanghai -> cancun)'
assert.equal(c2.nextHardforkBlockOrTimestamp(Hardfork.Shanghai), null, msg)
msg = 'should return null if next HF is not available (goerli: cancun -> prague)'
assert.equal(c2.nextHardforkBlockOrTimestamp(Hardfork.Cancun), null, msg)

msg =
'should correctly skip a HF where block is set to null (goerli: homestead -> (dao) -> tangerineWhistle)'
Expand Down