Skip to content

Commit

Permalink
common: update the holesky genesis for the relaunch (#3049)
Browse files Browse the repository at this point in the history
* common: update the holesky genesis for the relaunch

* blockchain: edit holesky genesis hash

* blockchain: edit url

---------

Co-authored-by: Jochem Brouwer <jochembrouwer96@gmail.com>
Co-authored-by: Holger Drewes <Holger.Drewes@gmail.com>
  • Loading branch information
3 people authored Sep 21, 2023
1 parent d6d4b80 commit c373fdd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions packages/blockchain/test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ describe('blockchain test', () => {
})

it('should initialize holesky correctly', async () => {
// Taken from: https://github.com/eth-clients/holesky/blob/36e4ff2d5138dcb2eb614f0f60fdb060b2adc1e2/README.md#metadata
const holeskyHash = '0xff9006519a8ce843ac9c28549d24211420b546e12ce2d170c77a8cca7964f23d'
// Taken from: https://github.com/eth-clients/holesky/blob/f1d14b9a80085c3f0cb9d729fea9172cde445588/README.md#hole%C5%A1ky-hole%C5%A1ovice-testnet
const holeskyHash = '0xb5f7f912443c940f21fd611f12828d75b534364ed9e95ca4e307729a4661bde4'
const common = new Common({ chain: Chain.Holesky })
const blockchain = await Blockchain.create({
common,
Expand Down
34 changes: 17 additions & 17 deletions packages/common/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,83 +462,83 @@ export const chains: ChainsDict = {
genesis: {
baseFeePerGas: '0x3B9ACA00',
difficulty: '0x01',
extraData: '0x686f77206d7563682069732074686520666973683f',
extraData: '0x',
gasLimit: '0x17D7840',
nonce: '0x0000000000001234',
timestamp: '0x65046234',
timestamp: '0x65156994',
},
hardforks: [
{
name: 'chainstart',
block: 0,
forkHash: '0x01d65a8c',
forkHash: '0xc61a6098',
},
{
name: 'homestead',
block: 0,
forkHash: '0x01d65a8c',
forkHash: '0xc61a6098',
},
{
name: 'tangerineWhistle',
block: 0,
forkHash: '0x01d65a8c',
forkHash: '0xc61a6098',
},
{
name: 'spuriousDragon',
block: 0,
forkHash: '0x01d65a8c',
forkHash: '0xc61a6098',
},
{
name: 'byzantium',
block: 0,
forkHash: '0x01d65a8c',
forkHash: '0xc61a6098',
},
{
name: 'constantinople',
block: 0,
forkHash: '0x01d65a8c',
forkHash: '0xc61a6098',
},
{
name: 'petersburg',
block: 0,
forkHash: '0x01d65a8c',
forkHash: '0xc61a6098',
},
{
name: 'istanbul',
block: 0,
forkHash: '0x01d65a8c',
forkHash: '0xc61a6098',
},
{
name: 'muirGlacier',
block: 0,
forkHash: '0x01d65a8c',
forkHash: '0xc61a6098',
},
{
name: 'berlin',
block: 0,
forkHash: '0x01d65a8c',
forkHash: '0xc61a6098',
},
{
name: 'london',
block: 0,
forkHash: '0x01d65a8c',
forkHash: '0xc61a6098',
},
{
name: 'paris',
ttd: '0',
block: 0,
forkHash: '0x01d65a8c',
forkHash: '0xc61a6098',
},
{
name: 'mergeForkIdTransition',
block: 0,
forkHash: '0x01d65a8c',
forkHash: '0xc61a6098',
},
{
name: 'shanghai',
block: null,
timestamp: '1694884704',
forkHash: '0x2dc62b2a',
timestamp: '1696000704',
forkHash: '0xfd4f016b',
},
{
name: 'cancun',
Expand Down
2 changes: 1 addition & 1 deletion packages/common/test/hardforks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ describe('[Common]: Hardfork logic', () => {
],
[
Chain.Holesky,
hexToBytes('0xff9006519a8ce843ac9c28549d24211420b546e12ce2d170c77a8cca7964f23d'),
hexToBytes('0xb5f7f912443c940f21fd611f12828d75b534364ed9e95ca4e307729a4661bde4'),
],
]

Expand Down

0 comments on commit c373fdd

Please sign in to comment.