-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simulators/ethereum/sync: use engine API to trigger sync (#922)
This updates the ethereum/sync simulator to use a newer post-merge chain. Sync is now triggered via the engine API.
- Loading branch information
Showing
13 changed files
with
680 additions
and
323 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"HIVE_CHAIN_ID": "3503995874084926", | ||
"HIVE_FORK_ARROW_GLACIER": "0", | ||
"HIVE_FORK_BERLIN": "0", | ||
"HIVE_FORK_BYZANTIUM": "0", | ||
"HIVE_FORK_CONSTANTINOPLE": "0", | ||
"HIVE_FORK_GRAY_GLACIER": "0", | ||
"HIVE_FORK_HOMESTEAD": "0", | ||
"HIVE_FORK_ISTANBUL": "0", | ||
"HIVE_FORK_LONDON": "0", | ||
"HIVE_FORK_MUIR_GLACIER": "0", | ||
"HIVE_FORK_PETERSBURG": "0", | ||
"HIVE_FORK_SPURIOUS": "0", | ||
"HIVE_FORK_TANGERINE": "0", | ||
"HIVE_MERGE_BLOCK_ID": "0", | ||
"HIVE_NETWORK_ID": "3503995874084926", | ||
"HIVE_SHANGHAI_TIMESTAMP": "0", | ||
"HIVE_SKIP_POW": "1", | ||
"HIVE_TERMINAL_TOTAL_DIFFICULTY": "131072" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"config": { | ||
"chainId": 3503995874084926, | ||
"homesteadBlock": 0, | ||
"eip150Block": 0, | ||
"eip155Block": 0, | ||
"eip158Block": 0, | ||
"byzantiumBlock": 0, | ||
"constantinopleBlock": 0, | ||
"petersburgBlock": 0, | ||
"istanbulBlock": 0, | ||
"muirGlacierBlock": 0, | ||
"berlinBlock": 0, | ||
"londonBlock": 0, | ||
"arrowGlacierBlock": 0, | ||
"grayGlacierBlock": 0, | ||
"mergeNetsplitBlock": 0, | ||
"shanghaiTime": 0, | ||
"terminalTotalDifficulty": 131072, | ||
"terminalTotalDifficultyPassed": true, | ||
"ethash": {} | ||
}, | ||
"nonce": "0x0", | ||
"timestamp": "0x0", | ||
"extraData": "0x68697665636861696e", | ||
"gasLimit": "0x23f3e20", | ||
"difficulty": "0x20000", | ||
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"coinbase": "0x0000000000000000000000000000000000000000", | ||
"alloc": { | ||
"0c2c51a0990aee1d73c1228de158688341557508": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"14e46043e63d0e3cdcf2530519f4cfaf35058cb2": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"16c57edf7fa9d9525378b0b81bf8a3ced0620c1c": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"1f4924b14f34e24159387c0a4cdbaa32f3ddb0cf": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"1f5bde34b4afc686f136c7a3cb6ec376f7357759": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"2d389075be5be9f2246ad654ce152cf05990b209": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"3ae75c08b4c907eb63a8960c45b86e1e9ab6123c": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"4340ee1b812acb40a1eb561c019c327b243b92df": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"4a0f1452281bcec5bd90c3dce6162a5995bfe9df": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"4dde844b71bcdf95512fb4dc94e84fb67b512ed8": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"5f552da00dfb4d3749d9e62dcee3c918855a86a0": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"654aa64f5fbefb84c270ec74211b81ca8c44a72e": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"717f8aa2b982bee0e29f573d31df288663e1ce16": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"7435ed30a8b4aeb0877cef0c6e8cffe834eb865f": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"83c7e323d189f18725ac510004fdc2941f8c4a78": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"84e75c28348fb86acea1a93a39426d7d60f4cc46": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"c7b99a164efd027a93f147376cc7da7c67c6bbe0": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"d803681e487e6ac18053afc5a6cd813c86ec3e4d": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"e7d13f7aa2a838d24c59b40186a0aca1e21cffcc": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
}, | ||
"eda8645ba6948855e3b3cd596bbb07596d59c603": { | ||
"balance": "0xc097ce7bc90715b34b9f1000000000" | ||
} | ||
}, | ||
"number": "0x0", | ||
"gasUsed": "0x0", | ||
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"baseFeePerGas": "0x3b9aca00", | ||
"excessBlobGas": null, | ||
"blobGasUsed": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"parentHash": "0x3303c6e3577579843c427f795d7485abdddc55694b5a37af0b32b48259ebe103", | ||
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", | ||
"miner": "0x0000000000000000000000000000000000000000", | ||
"stateRoot": "0xfcb007db24cf6a31105b3382273fcf9ee3168acb2a3356d32a598302a4fc448d", | ||
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", | ||
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", | ||
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | ||
"difficulty": "0x0", | ||
"number": "0x7d0", | ||
"gasLimit": "0x23f3e20", | ||
"gasUsed": "0x0", | ||
"timestamp": "0x4e20", | ||
"extraData": "0x", | ||
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"nonce": "0x0000000000000000", | ||
"baseFeePerGas": "0x7", | ||
"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", | ||
"blobGasUsed": null, | ||
"excessBlobGas": null, | ||
"parentBeaconBlockRoot": null, | ||
"hash": "0x07f7d3c5744ffddc5441cf31074c91a934afbf6ddb7e8234a081ee1f21140455" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": "fcu2000", | ||
"method": "engine_forkchoiceUpdatedV2", | ||
"params": [ | ||
{ | ||
"headBlockHash": "0x07f7d3c5744ffddc5441cf31074c91a934afbf6ddb7e8234a081ee1f21140455", | ||
"safeBlockHash": "0x07f7d3c5744ffddc5441cf31074c91a934afbf6ddb7e8234a081ee1f21140455", | ||
"finalizedBlockHash": "0x07f7d3c5744ffddc5441cf31074c91a934afbf6ddb7e8234a081ee1f21140455" | ||
}, | ||
null | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": "np2000", | ||
"method": "engine_newPayloadV2", | ||
"params": [ | ||
{ | ||
"parentHash": "0x3303c6e3577579843c427f795d7485abdddc55694b5a37af0b32b48259ebe103", | ||
"feeRecipient": "0x0000000000000000000000000000000000000000", | ||
"stateRoot": "0xfcb007db24cf6a31105b3382273fcf9ee3168acb2a3356d32a598302a4fc448d", | ||
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", | ||
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | ||
"prevRandao": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"blockNumber": "0x7d0", | ||
"gasLimit": "0x23f3e20", | ||
"gasUsed": "0x0", | ||
"timestamp": "0x4e20", | ||
"extraData": "0x", | ||
"baseFeePerGas": "0x7", | ||
"blockHash": "0x07f7d3c5744ffddc5441cf31074c91a934afbf6ddb7e8234a081ee1f21140455", | ||
"transactions": [], | ||
"withdrawals": [], | ||
"blobGasUsed": null, | ||
"excessBlobGas": null | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,81 @@ | ||
module github.com/ethereum/hive/simulators/ethereum/sync | ||
|
||
go 1.18 | ||
go 1.20 | ||
|
||
require ( | ||
github.com/ethereum/go-ethereum v1.13.1 | ||
github.com/ethereum/hive v0.0.0-20230919110229-d58aec4a3eb5 | ||
) | ||
|
||
require ( | ||
github.com/DataDog/zstd v1.5.2 // indirect | ||
github.com/Microsoft/go-winio v0.6.1 // indirect | ||
github.com/VictoriaMetrics/fastcache v1.12.0 // indirect | ||
github.com/beorn7/perks v1.0.1 // indirect | ||
github.com/bits-and-blooms/bitset v1.5.0 // indirect | ||
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect | ||
github.com/cespare/xxhash/v2 v2.2.0 // indirect | ||
github.com/cockroachdb/errors v1.9.1 // indirect | ||
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect | ||
github.com/cockroachdb/pebble v0.0.0-20230906160148-46873a6a7a06 // indirect | ||
github.com/cockroachdb/redact v1.1.3 // indirect | ||
github.com/consensys/bavard v0.1.13 // indirect | ||
github.com/consensys/gnark-crypto v0.10.0 // indirect | ||
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect | ||
github.com/crate-crypto/go-kzg-4844 v0.3.0 // indirect | ||
github.com/deckarep/golang-set/v2 v2.1.0 // indirect | ||
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect | ||
github.com/ethereum/c-kzg-4844 v0.3.1 // indirect | ||
github.com/fjl/memsize v0.0.1 // indirect | ||
github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect | ||
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 // indirect | ||
github.com/getsentry/sentry-go v0.18.0 // indirect | ||
github.com/go-ole/go-ole v1.2.6 // indirect | ||
github.com/go-stack/stack v1.8.1 // indirect | ||
github.com/golang-jwt/jwt/v4 v4.4.3 // indirect | ||
github.com/gofrs/flock v0.8.1 // indirect | ||
github.com/gogo/protobuf v1.3.2 // indirect | ||
github.com/golang-jwt/jwt/v4 v4.3.0 // indirect | ||
github.com/golang/protobuf v1.5.2 // indirect | ||
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect | ||
github.com/gorilla/websocket v1.5.0 // indirect | ||
github.com/hashicorp/go-bexpr v0.1.11 // indirect | ||
github.com/hashicorp/go-bexpr v0.1.10 // indirect | ||
github.com/holiman/uint256 v1.2.3 // indirect | ||
github.com/mitchellh/mapstructure v1.5.0 // indirect | ||
github.com/huin/goupnp v1.3.0 // indirect | ||
github.com/jackpal/go-nat-pmp v1.0.2 // indirect | ||
github.com/klauspost/compress v1.15.15 // indirect | ||
github.com/kr/pretty v0.3.1 // indirect | ||
github.com/kr/text v0.2.0 // indirect | ||
github.com/mattn/go-colorable v0.1.13 // indirect | ||
github.com/mattn/go-isatty v0.0.16 // indirect | ||
github.com/mattn/go-runewidth v0.0.14 // indirect | ||
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect | ||
github.com/mitchellh/mapstructure v1.4.1 // indirect | ||
github.com/mitchellh/pointerstructure v1.2.0 // indirect | ||
github.com/mmcloughlin/addchain v0.4.0 // indirect | ||
github.com/rs/cors v1.8.2 // indirect | ||
github.com/olekukonko/tablewriter v0.0.5 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/prometheus/client_golang v1.14.0 // indirect | ||
github.com/prometheus/client_model v0.3.0 // indirect | ||
github.com/prometheus/common v0.39.0 // indirect | ||
github.com/prometheus/procfs v0.9.0 // indirect | ||
github.com/rivo/uniseg v0.4.3 // indirect | ||
github.com/rogpeppe/go-internal v1.9.0 // indirect | ||
github.com/rs/cors v1.7.0 // indirect | ||
github.com/russross/blackfriday/v2 v2.1.0 // indirect | ||
github.com/shirou/gopsutil v3.21.11+incompatible // indirect | ||
github.com/supranational/blst v0.3.11 // indirect | ||
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a // indirect | ||
github.com/tklauser/go-sysconf v0.3.12 // indirect | ||
github.com/tklauser/numcpus v0.6.1 // indirect | ||
github.com/urfave/cli/v2 v2.25.7 // indirect | ||
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect | ||
github.com/yusufpapurcu/wmi v1.2.2 // indirect | ||
golang.org/x/crypto v0.12.0 // indirect | ||
golang.org/x/exp v0.0.0-20230810033253-352e893a4cad // indirect | ||
golang.org/x/mod v0.11.0 // indirect | ||
golang.org/x/sync v0.3.0 // indirect | ||
golang.org/x/sys v0.11.0 // indirect | ||
golang.org/x/text v0.12.0 // indirect | ||
golang.org/x/tools v0.9.1 // indirect | ||
google.golang.org/protobuf v1.28.1 // indirect | ||
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect | ||
rsc.io/tmplfunc v0.0.3 // indirect | ||
) |
Oops, something went wrong.