From 9d5a6dfe54f3222a8cc152ca39e9567fefb08ddc Mon Sep 17 00:00:00 2001 From: holgerd77 Date: Tue, 5 Feb 2019 12:02:34 +0100 Subject: [PATCH] Updated goerli configuration and genesis state file to final, launched Goerli network setup --- src/chains/goerli.json | 86 ++++++++++------------------------- src/genesisStates/goerli.json | 6 ++- tests/chains.ts | 2 +- 3 files changed, 30 insertions(+), 64 deletions(-) diff --git a/src/chains/goerli.json b/src/chains/goerli.json index a6af8dc..0c963da 100644 --- a/src/chains/goerli.json +++ b/src/chains/goerli.json @@ -1,17 +1,17 @@ { "name": "goerli", - "chainId": 6284, - "networkId": 6284, + "chainId": 5, + "networkId": 5, "comment": "Cross-client PoA test network", "url": "https://github.com/goerli/testnet", "genesis": { - "hash": "0xfa57319d09fd8a32faaf18d338c8a925a5a7975285bf29ecd024e083cba8abb1", - "timestamp": "0x5bdda800", + "hash": "0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a", + "timestamp": "0x5c51a607", "gasLimit": 10485760, "difficulty": 1, "nonce": "0x0000000000000000", - "extraData": "0x2249276d20646f6e652077616974696e672e2e2e20666f7220626c6f636b2066696e616c69747922202d2049676779270000000001fa1804c408085d9c57eeb167ce953c99b6cb1e20794Fd02933F303FbA550bd1fe2f0649E3576eB0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "stateRoot": "0x0f410b6a6eae3d3156eccd966ac842a4c545c47921b9fe36386de18152cfddcf" + "extraData": "0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "stateRoot": "0x5d6cded585e73c4e322c30c2f782a336316f17dd85a4863b9d838d2d4b8b3008" }, "hardforks": [ { @@ -28,7 +28,7 @@ }, { "name": "dao", - "block": null, + "block": 0, "consensus": "poa", "finality": null }, @@ -55,85 +55,49 @@ "block": 0, "consensus": "poa", "finality": null + }, + { + "name": "petersburg", + "block": 0, + "consensus": "poa", + "finality": null } ], "bootstrapNodes": [ { - "ip": "40.70.214.166", - "port": 40303, - "id": "04fb7acb86f47b64298374b5ccb3c2959f1e5e9362158e50e0793c261518ffe83759d8295ca4a88091d4726d5f85e6276d53ae9ef4f35b8c4c0cc6b99c8c0537", - "location": "", - "comment": "" - }, - { - "ip": "213.186.16.82", - "port": 1345, - "id": "17de5580bbc1620081a21f82954731c7854305463630a0d677ed991487609829a6bf1ffcb8fb8ef269eff4829690625db176b498c629b9b13cb39b73b6e7b08b", - "location": "", - "comment": "" - }, - { - "ip": "85.7.110.224", + "ip": "51.141.78.53", "port": 30303, - "id": "22da3ef3707626a92a32b0527d0846f88228daa0536c62d83c9ac7e96660bc8e4ac70a9aa8f8cedf71b580cd41449ad46c6e5a06ecf138b142f38a9d1b2b856a", + "id": "011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a", "location": "", - "comment": "" + "comment": "Source: https://github.com/goerli/testnet/blob/master/bootnodes.txt" }, { - "ip": "54.88.169.219", + "ip": "13.93.54.137", "port": 30303, - "id": "3897b1a5786948f643d9755df92dc56d0b2284f36730dc198ef371aebf191b24b5cbe8162c2032b09b2f14ba73460bfc3f7d4ef1e26bcc59297d4f235dc5cdc5", + "id": "176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b", "location": "", - "comment": "" - }, - { - "ip": "40.70.214.166", - "port": 30405, - "id": "3d197d65ed92af6d0adf280ce486714fb641ef9f9f38f0bdd5ddd552666fc1132f033eb249a87f7f30086902c131f30f054f872ae80ac83eea6bd3760a7bbce2", - "location": "", - "comment": "" - }, - { - "ip": "188.166.20.30", - "port": 30303, - "id": "3d8d6698d2d4d730d896c7c1e3602ff845343f71bacbf8cb614b0e94fcb3b10e1a49ac2a5063c76617182a1c5928a4a63d4be897e54ae1cb858a1b94d0d275b8", - "location": "", - "comment": "" + "comment": "Source: https://github.com/goerli/testnet/blob/master/bootnodes.txt" }, { "ip": "94.237.54.114", "port": 30313, "id": "46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291", "location": "", - "comment": "" + "comment": "Source: https://github.com/goerli/testnet/blob/master/bootnodes.txt" }, { - "ip": "13.113.211.0", + "ip": "52.64.155.147", "port": 30303, - "id": "5065d5221b507764771a8b74abc69df0351217eae09b96ec0df4275576a8b2bbba9986ce3037e6fb3c933b5b301364e18030c1ada8cec4ae00f1fa4dfff32eb8", + "id": "c1f8b7c2ac4453271fa07d8e9ecf9a2e8285aa0bd0c07df0131f47153306b0736fd3db8924e7a9bf0bed6b1d8d4f87362a71b033dc7c64547728d953e43e59b2", "location": "", - "comment": "" - }, - { - "ip": "52.56.136.200", - "port": 30303, - "id": "573b6607cd59f241e30e4c4943fd50e99e2b6f42f9bd5ca111659d309c06741247f4f1e93843ad3e8c8c18b6e2d94c161b7ef67479b3938780a97134b618b5ce", - "location": "", - "comment": "" + "comment": "Source: https://github.com/goerli/testnet/blob/master/bootnodes.txt" }, { "ip": "213.186.16.82", "port": 30303, - "id": "57f58f16fccdd9fb6f587565ac09af4b3b4b33d0fbd14252cc61d29a65b0d83c08419e67ac5292b9342090053526b847f2487278e609f4b4cd1dbf0f48105b2b", - "location": "", - "comment": "" - }, - { - "ip": "13.78.10.94", - "port": 30405, - "id": "5d9b1cba03738dfd23e12e4efb99b72623474fece2cc582c95e3ba7d481d519dea0029901f1f844116bab806044e8552f0431b21cf8d96010fc351b483330faa", + "id": "f4a9c6ee28586009fb5a96c8af13a58ed6d8315a9eee4772212c1d4d9cebe5a8b8a78ea4434f318726317d04a3f531a1ef0420cf9752605a562cfe858c46e263", "location": "", - "comment": "" + "comment": "Source: https://github.com/goerli/testnet/blob/master/bootnodes.txt" } ] } diff --git a/src/genesisStates/goerli.json b/src/genesisStates/goerli.json index db60e46..8125fd9 100644 --- a/src/genesisStates/goerli.json +++ b/src/genesisStates/goerli.json @@ -255,6 +255,8 @@ "0x00000000000000000000000000000000000000fd": "0x1", "0x00000000000000000000000000000000000000fe": "0x1", "0x00000000000000000000000000000000000000ff": "0x1", - "0x009fcc115ad9ef38288a82a014dea30f63a84383": "0x100000000000000000000000000000000000000000000000000", - "0x0015c90d0e12186bc51c9d51aff4d3fb6e984291": "0x100000000000000000000000000000000000000000000000000" + "0x4c2ae482593505f0163cdefc073e81c63cda4107": "0x152d02c7e14af6800000", + "0xa8e8f14732658e4b51e8711931053a8a69baf2b1": "0x152d02c7e14af6800000", + "0xd9a5179f091d85051d3c982785efd1455cec8699": "0x84595161401484a000000", + "0xe0a2bd4258d2768837baa26a28fe71dc079f84c7": "0x4a47e3c12448f4ad000000" } diff --git a/tests/chains.ts b/tests/chains.ts index 820134a..8492f2d 100644 --- a/tests/chains.ts +++ b/tests/chains.ts @@ -78,7 +78,7 @@ tape('[Common]: Initialization / Chain params', function(t: tape.Test) { hash = '0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9' st.equal(c.genesis().hash, hash, 'kovan') c.setChain('goerli') - hash = '0xfa57319d09fd8a32faaf18d338c8a925a5a7975285bf29ecd024e083cba8abb1' + hash = '0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a' st.equal(c.genesis().hash, hash, 'goerli') st.end()