diff --git a/rust/Cargo.lock b/rust/Cargo.lock index acca24289b5..add8d3e5b1a 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -11971,7 +11971,7 @@ checksum = "1e061d1b48cb8d38042de4ae0a7a6401009d6143dc80d2e2d6f31f0bdd6470c7" [[package]] name = "reth-basic-payload-builder" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -11998,7 +11998,7 @@ dependencies = [ [[package]] name = "reth-chain-state" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -12029,7 +12029,7 @@ dependencies = [ [[package]] name = "reth-chainspec" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-chains", "alloy-consensus 2.4.2", @@ -12049,7 +12049,7 @@ dependencies = [ [[package]] name = "reth-cli" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-genesis", "clap", @@ -12062,7 +12062,7 @@ dependencies = [ [[package]] name = "reth-cli-commands" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-chains", "alloy-consensus 2.4.2", @@ -12152,7 +12152,7 @@ dependencies = [ [[package]] name = "reth-cli-runner" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "reth-tasks", "tokio", @@ -12162,7 +12162,7 @@ dependencies = [ [[package]] name = "reth-cli-util" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-eips 2.5.0", "alloy-primitives", @@ -12215,7 +12215,7 @@ dependencies = [ [[package]] name = "reth-config" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "eyre", "humantime-serde", @@ -12232,7 +12232,7 @@ dependencies = [ [[package]] name = "reth-consensus" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eip7928 0.4.10", @@ -12246,7 +12246,7 @@ dependencies = [ [[package]] name = "reth-consensus-common" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -12259,7 +12259,7 @@ dependencies = [ [[package]] name = "reth-consensus-debug-client" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -12284,7 +12284,7 @@ dependencies = [ [[package]] name = "reth-db" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-primitives", "derive_more 2.1.1", @@ -12313,7 +12313,7 @@ dependencies = [ [[package]] name = "reth-db-api" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -12340,7 +12340,7 @@ dependencies = [ [[package]] name = "reth-db-common" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-genesis", @@ -12370,7 +12370,7 @@ dependencies = [ [[package]] name = "reth-db-models" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-eips 2.5.0", "alloy-primitives", @@ -12385,7 +12385,7 @@ dependencies = [ [[package]] name = "reth-discv4" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-primitives", "alloy-rlp", @@ -12410,7 +12410,7 @@ dependencies = [ [[package]] name = "reth-discv5" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-primitives", "alloy-rlp", @@ -12434,7 +12434,7 @@ dependencies = [ [[package]] name = "reth-dns-discovery" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-primitives", "dashmap", @@ -12458,7 +12458,7 @@ dependencies = [ [[package]] name = "reth-downloaders" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -12495,7 +12495,7 @@ dependencies = [ [[package]] name = "reth-e2e-test-utils" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -12554,7 +12554,7 @@ dependencies = [ [[package]] name = "reth-ecies" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "aes 0.8.4", "alloy-primitives", @@ -12581,7 +12581,7 @@ dependencies = [ [[package]] name = "reth-engine-local" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-primitives", @@ -12604,7 +12604,7 @@ dependencies = [ [[package]] name = "reth-engine-primitives" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -12631,7 +12631,7 @@ dependencies = [ [[package]] name = "reth-engine-tree" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eip7928 0.4.10", @@ -12687,7 +12687,7 @@ dependencies = [ [[package]] name = "reth-engine-util" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-primitives", @@ -12717,7 +12717,7 @@ dependencies = [ [[package]] name = "reth-era" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -12735,7 +12735,7 @@ dependencies = [ [[package]] name = "reth-era-downloader" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-primitives", "bytes", @@ -12751,7 +12751,7 @@ dependencies = [ [[package]] name = "reth-era-utils" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-primitives", @@ -12775,7 +12775,7 @@ dependencies = [ [[package]] name = "reth-errors" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "reth-consensus", "reth-execution-errors", @@ -12786,7 +12786,7 @@ dependencies = [ [[package]] name = "reth-eth-wire" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-chains", "alloy-primitives", @@ -12815,7 +12815,7 @@ dependencies = [ [[package]] name = "reth-eth-wire-types" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-chains", "alloy-consensus 2.4.2", @@ -12841,7 +12841,7 @@ dependencies = [ [[package]] name = "reth-ethereum" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-rpc-types-engine", "alloy-rpc-types-eth 2.4.2", @@ -12882,7 +12882,7 @@ dependencies = [ [[package]] name = "reth-ethereum-cli" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "clap", "eyre", @@ -12905,7 +12905,7 @@ dependencies = [ [[package]] name = "reth-ethereum-consensus" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -12921,7 +12921,7 @@ dependencies = [ [[package]] name = "reth-ethereum-engine-primitives" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-eips 2.5.0", "alloy-primitives", @@ -12937,7 +12937,7 @@ dependencies = [ [[package]] name = "reth-ethereum-forks" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-eip2124", "alloy-hardforks", @@ -12951,7 +12951,7 @@ dependencies = [ [[package]] name = "reth-ethereum-payload-builder" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -12981,7 +12981,7 @@ dependencies = [ [[package]] name = "reth-ethereum-primitives" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -12994,7 +12994,7 @@ dependencies = [ [[package]] name = "reth-etl" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "rayon", "reth-db-api", @@ -13004,7 +13004,7 @@ dependencies = [ [[package]] name = "reth-evm" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eip7928 0.4.10", @@ -13030,7 +13030,7 @@ dependencies = [ [[package]] name = "reth-evm-ethereum" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -13050,7 +13050,7 @@ dependencies = [ [[package]] name = "reth-execution-cache" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-primitives", "fixed-cache", @@ -13068,7 +13068,7 @@ dependencies = [ [[package]] name = "reth-execution-errors" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-evm", "alloy-primitives", @@ -13081,7 +13081,7 @@ dependencies = [ [[package]] name = "reth-execution-types" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -13100,7 +13100,7 @@ dependencies = [ [[package]] name = "reth-exex" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -13138,7 +13138,7 @@ dependencies = [ [[package]] name = "reth-exex-test-utils" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-eips 2.5.0", "eyre", @@ -13170,7 +13170,7 @@ dependencies = [ [[package]] name = "reth-exex-types" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-eips 2.5.0", "alloy-primitives", @@ -13184,7 +13184,7 @@ dependencies = [ [[package]] name = "reth-fs-util" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "serde", "serde_json", @@ -13194,7 +13194,7 @@ dependencies = [ [[package]] name = "reth-invalid-block-hooks" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-primitives", @@ -13220,7 +13220,7 @@ dependencies = [ [[package]] name = "reth-ipc" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "bytes", "futures", @@ -13240,7 +13240,7 @@ dependencies = [ [[package]] name = "reth-libmdbx" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "bitflags 2.11.1", "byteorder", @@ -13257,7 +13257,7 @@ dependencies = [ [[package]] name = "reth-mdbx-sys" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "bindgen", "cc", @@ -13266,7 +13266,7 @@ dependencies = [ [[package]] name = "reth-metrics" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "futures", "libc", @@ -13280,7 +13280,7 @@ dependencies = [ [[package]] name = "reth-net-banlist" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-primitives", "ipnet", @@ -13289,7 +13289,7 @@ dependencies = [ [[package]] name = "reth-net-nat" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "futures-util", "if-addrs 0.14.0", @@ -13303,7 +13303,7 @@ dependencies = [ [[package]] name = "reth-network" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -13362,7 +13362,7 @@ dependencies = [ [[package]] name = "reth-network-api" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-primitives", @@ -13387,7 +13387,7 @@ dependencies = [ [[package]] name = "reth-network-p2p" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eip7928 0.4.10", @@ -13411,7 +13411,7 @@ dependencies = [ [[package]] name = "reth-network-peers" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-primitives", "alloy-rlp", @@ -13426,7 +13426,7 @@ dependencies = [ [[package]] name = "reth-network-types" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-eip2124", "humantime-serde", @@ -13440,7 +13440,7 @@ dependencies = [ [[package]] name = "reth-nippy-jar" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "anyhow", "bincode 1.3.3", @@ -13458,7 +13458,7 @@ dependencies = [ [[package]] name = "reth-node-api" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-rpc-types-engine", "eyre", @@ -13482,7 +13482,7 @@ dependencies = [ [[package]] name = "reth-node-builder" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -13550,7 +13550,7 @@ dependencies = [ [[package]] name = "reth-node-core" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -13605,7 +13605,7 @@ dependencies = [ [[package]] name = "reth-node-ethereum" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -13658,7 +13658,7 @@ dependencies = [ [[package]] name = "reth-node-ethstats" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-primitives", @@ -13682,7 +13682,7 @@ dependencies = [ [[package]] name = "reth-node-events" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -13706,7 +13706,7 @@ dependencies = [ [[package]] name = "reth-node-metrics" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "bytes", "eyre", @@ -13736,7 +13736,7 @@ dependencies = [ [[package]] name = "reth-node-types" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "reth-chainspec", "reth-db-api", @@ -14379,7 +14379,7 @@ dependencies = [ [[package]] name = "reth-payload-builder" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-primitives", @@ -14403,7 +14403,7 @@ dependencies = [ [[package]] name = "reth-payload-builder-primitives" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "pin-project", "reth-payload-primitives", @@ -14415,7 +14415,7 @@ dependencies = [ [[package]] name = "reth-payload-primitives" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -14438,7 +14438,7 @@ dependencies = [ [[package]] name = "reth-payload-util" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-primitives", @@ -14448,7 +14448,7 @@ dependencies = [ [[package]] name = "reth-payload-validator" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-rpc-types-engine", @@ -14492,7 +14492,7 @@ dependencies = [ [[package]] name = "reth-provider" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eip7928 0.4.10", @@ -14542,7 +14542,7 @@ dependencies = [ [[package]] name = "reth-prune" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-primitives", @@ -14569,7 +14569,7 @@ dependencies = [ [[package]] name = "reth-prune-types" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-primitives", "arbitrary", @@ -14585,7 +14585,7 @@ dependencies = [ [[package]] name = "reth-revm" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-primitives", "alloy-rlp", @@ -14600,7 +14600,7 @@ dependencies = [ [[package]] name = "reth-rpc" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-dyn-abi", @@ -14676,7 +14676,7 @@ dependencies = [ [[package]] name = "reth-rpc-api" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-eips 2.5.0", "alloy-genesis", @@ -14706,7 +14706,7 @@ dependencies = [ [[package]] name = "reth-rpc-builder" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-network 2.4.2", "alloy-provider", @@ -14749,7 +14749,7 @@ dependencies = [ [[package]] name = "reth-rpc-convert" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-evm", @@ -14769,7 +14769,7 @@ dependencies = [ [[package]] name = "reth-rpc-engine-api" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-eips 2.5.0", "alloy-primitives", @@ -14800,7 +14800,7 @@ dependencies = [ [[package]] name = "reth-rpc-eth-api" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-dyn-abi", @@ -14847,7 +14847,7 @@ dependencies = [ [[package]] name = "reth-rpc-eth-types" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-chains", "alloy-consensus 2.4.2", @@ -14897,7 +14897,7 @@ dependencies = [ [[package]] name = "reth-rpc-layer" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-rpc-types-engine", "http 1.4.0", @@ -14913,7 +14913,7 @@ dependencies = [ [[package]] name = "reth-rpc-server-types" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-primitives", "alloy-rpc-types-engine", @@ -14943,7 +14943,7 @@ dependencies = [ [[package]] name = "reth-stages" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eip7928 0.4.10", @@ -14995,7 +14995,7 @@ dependencies = [ [[package]] name = "reth-stages-api" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-eips 2.5.0", "alloy-primitives", @@ -15023,7 +15023,7 @@ dependencies = [ [[package]] name = "reth-stages-types" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-primitives", "arbitrary", @@ -15037,7 +15037,7 @@ dependencies = [ [[package]] name = "reth-static-file" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-primitives", "parking_lot", @@ -15057,7 +15057,7 @@ dependencies = [ [[package]] name = "reth-static-file-types" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-primitives", "clap", @@ -15072,7 +15072,7 @@ dependencies = [ [[package]] name = "reth-storage-api" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eip7928 0.4.10", @@ -15098,7 +15098,7 @@ dependencies = [ [[package]] name = "reth-storage-errors" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-eips 2.5.0", "alloy-primitives", @@ -15115,7 +15115,7 @@ dependencies = [ [[package]] name = "reth-storage-overlay" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-eips 2.5.0", "alloy-primitives", @@ -15143,7 +15143,7 @@ dependencies = [ [[package]] name = "reth-tasks" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "crossbeam-utils", "dashmap", @@ -15164,7 +15164,7 @@ dependencies = [ [[package]] name = "reth-testing-utils" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -15180,7 +15180,7 @@ dependencies = [ [[package]] name = "reth-tokio-util" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "tokio", "tokio-stream", @@ -15190,7 +15190,7 @@ dependencies = [ [[package]] name = "reth-tracing" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "clap", "eyre", @@ -15210,7 +15210,7 @@ dependencies = [ [[package]] name = "reth-tracing-otlp" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "base64 0.22.1", "clap", @@ -15229,7 +15229,7 @@ dependencies = [ [[package]] name = "reth-transaction-pool" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -15274,7 +15274,7 @@ dependencies = [ [[package]] name = "reth-trie" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-eips 2.5.0", @@ -15300,7 +15300,7 @@ dependencies = [ [[package]] name = "reth-trie-common" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-consensus 2.4.2", "alloy-primitives", @@ -15328,7 +15328,7 @@ dependencies = [ [[package]] name = "reth-trie-db" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-primitives", "reth-db-api", @@ -15344,7 +15344,7 @@ dependencies = [ [[package]] name = "reth-trie-parallel" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-evm", "alloy-primitives", @@ -15367,7 +15367,7 @@ dependencies = [ [[package]] name = "reth-trie-sparse" version = "2.6.0" -source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-2#3c5f2f11c4e5a5647e6e911cd131ccf1bada4f25" +source = "git+https://github.com/ethereum-optimism/reth?tag=op-v2.6.0-4#58c6608d33acce0460c7f0aba253566b41b2a3eb" dependencies = [ "alloy-primitives", "alloy-trie", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index ca19d03a0dc..f247791024f 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -364,79 +364,79 @@ reth-rpc-traits = { version = "0.7.0", default-features = false } reth-zstd-compressors = { version = "0.7.0", default-features = false } # ==================== RETH CRATES (git) ==================== -reth = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-basic-payload-builder = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-chain-state = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-chainspec = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-cli = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-cli-commands = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-cli-runner = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-cli-util = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-consensus = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-consensus-common = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-db = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-db-api = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-db-common = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-downloaders = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-e2e-test-utils = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-engine-local = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-engine-primitives = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-engine-tree = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-errors = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-eth-wire = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-eth-wire-types = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-ethereum = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-ethereum-cli = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-ethereum-consensus = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-ethereum-forks = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-ethereum-primitives = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-evm = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-evm-ethereum = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-exex = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-exex-test-utils = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-execution-errors = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-execution-types = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-fs-util = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-ipc = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-metrics = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-network = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-network-api = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-network-peers = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-node-api = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-node-builder = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-node-core = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-node-ethereum = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-node-events = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-node-metrics = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-payload-builder = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-payload-builder-primitives = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-payload-primitives = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-payload-util = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-payload-validator = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-provider = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-prune = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-prune-types = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-revm = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-rpc = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-rpc-api = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-rpc-builder = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-rpc-engine-api = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-rpc-eth-api = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-rpc-eth-types = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-rpc-server-types = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-stages = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-stages-types = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-static-file = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-static-file-types = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-storage-api = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-storage-errors = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-storage-overlay = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-tasks = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-tracing = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-transaction-pool = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-trie = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } -reth-trie-common = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2", default-features = false } -reth-trie-db = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-2" } +reth = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-basic-payload-builder = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-chain-state = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-chainspec = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-cli = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-cli-commands = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-cli-runner = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-cli-util = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-consensus = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-consensus-common = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-db = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-db-api = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-db-common = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-downloaders = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-e2e-test-utils = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-engine-local = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-engine-primitives = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-engine-tree = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-errors = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-eth-wire = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-eth-wire-types = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-ethereum = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-ethereum-cli = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-ethereum-consensus = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-ethereum-forks = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-ethereum-primitives = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-evm = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-evm-ethereum = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-exex = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-exex-test-utils = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-execution-errors = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-execution-types = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-fs-util = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-ipc = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-metrics = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-network = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-network-api = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-network-peers = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-node-api = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-node-builder = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-node-core = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-node-ethereum = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-node-events = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-node-metrics = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-payload-builder = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-payload-builder-primitives = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-payload-primitives = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-payload-util = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-payload-validator = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-provider = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-prune = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-prune-types = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-revm = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-rpc = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-rpc-api = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-rpc-builder = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-rpc-engine-api = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-rpc-eth-api = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-rpc-eth-types = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-rpc-server-types = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-stages = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-stages-types = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-static-file = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-static-file-types = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-storage-api = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-storage-errors = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-storage-overlay = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-tasks = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-tracing = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-transaction-pool = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-trie = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } +reth-trie-common = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4", default-features = false } +reth-trie-db = { git = "https://github.com/ethereum-optimism/reth", tag = "op-v2.6.0-4" } # ==================== REVM (latest: op-reth versions) ==================== revm = { version = "43.0.2", default-features = false } diff --git a/rust/UPDATING-RETH.md b/rust/UPDATING-RETH.md index 0224523256b..671f57fa3fe 100644 --- a/rust/UPDATING-RETH.md +++ b/rust/UPDATING-RETH.md @@ -300,12 +300,48 @@ git tag -a op-v- -m "..." git push git@github.com:ethereum-optimism/reth.git op-v- ``` -Tags are immutable, so a tag pin is as reproducible as a rev pin. +Tags are immutable, so a tag pin is as reproducible as a rev pin. The org's +tag ruleset also forbids deleting or re-annotating one, so a tag on the wrong +commit stays forever with its misleading annotation (`op-v2.6.0-3` is one). +Tag only after the PR that carries the change is merged, and take the commit +from the PR, never from the branch tip: + +```bash +gh pr view --repo ethereum-optimism/reth --json state,mergeCommit \ + --jq '"\(.state) \(.mergeCommit.oid)"' +``` + +Before pushing, compare the commit's subject with the annotation you wrote. +Do not chain the tag push after a merge command in one script: a failed merge +must stop the script, not leave the tag pointing at the old tip. + +Always use the full 40-character commit id, in `rev = "..."` pins, in +`git tag -a`, and in `gh` flags such as `--match-head-commit`, which rejects +abbreviated ids. **Maintain** the branch until the next update: later backports to the same base are PRs into it, tagged when the monorepo pins them. Keep old branches as a historical record. +### Carried patches + +Patches the current branch carries beyond upstream, and what to do with each +on the next base: + +- **RPC replay through the block executor** (ethereum-optimism/reth#37, a + backport of paradigmxyz/reth#28266). Op-reth's SDM refund settlement is only + visible to `debug_*`, `trace_*` and `ots_*` replays through it, and + `rust/op-reth/crates/node/tests/it/rpc_replay_settlement.rs` fails without + it. On a base that still uses alloy-evm 0.39 (`v2.7.0`, `v2.8.0`), + cherry-pick the backport and resolve conflicts in `helpers/call.rs`, + `helpers/trace.rs` and `rpc/src/debug.rs`. On an evm2 base (`v2.9.0` and + later), drop the backport and cherry-pick #28266 itself until a release + contains it; there, upstream's `inspect_transaction_without_commit` installs + the tracer through the EVM's inspector slot, which op-reth's + `PostExecCompositeInspector` occupies, so `OpBlockExecutor` needs an override + or composition for it. Upstream's BAL branch skips per-transaction + settlement; op-reth rejects computed BALs, keep that invariant under test. + ### Pinning a fork change This applies to any monorepo PR that needs a fork change, in a reth update or diff --git a/rust/alloy-op-evm/src/block/tests/structural_tests.rs b/rust/alloy-op-evm/src/block/tests/structural_tests.rs index b75c1a22cf7..5a5f09b6acd 100644 --- a/rust/alloy-op-evm/src/block/tests/structural_tests.rs +++ b/rust/alloy-op-evm/src/block/tests/structural_tests.rs @@ -184,6 +184,60 @@ fn canonicalized_result_gas_applies_refund_exactly_once() { assert_eq!(executor.gas_used, canonical_gas_used, "block must accumulate canonical gas"); } +/// A replay of an imported block runs in Verify mode with a tracer attached and reads each +/// transaction's result before committing it, so that result must already carry the recorded +/// refund in both its gas and its state. +#[test] +fn verify_mode_result_is_settled_before_commit_with_inspector() { + let receipt_builder = OpAlloyReceiptBuilder::default(); + let hardforks = OpChainHardforks::op_mainnet(); + let payload = PostExecPayload { + version: 1, + block_number: 0, + gas_refund_entries: vec![SDMGasEntry { index: 0, gas_refund: 1 }], + }; + let priced_tx = legacy_tx_with_price(0, OBSERVER_TEST_CONTRACT, 200_000, 1); + + let mut committed_db = prepare_observer_db(); + let mut committing = build_policy_executor_with::( + &mut committed_db, + &receipt_builder, + &hardforks, + 1, + Address::ZERO, + Inspect::Enabled, + ); + committing.set_post_exec_mode(PostExecMode::Verify(payload.clone())); + committing.execute_transaction(&priced_tx).expect("refunded transaction commits"); + drop(committing); + let committed_balance = revm::Database::basic(&mut committed_db, Address::ZERO) + .expect("sender is readable") + .expect("sender exists") + .balance; + + let mut db = prepare_observer_db(); + let mut executor = build_policy_executor_with::( + &mut db, + &receipt_builder, + &hardforks, + 1, + Address::ZERO, + Inspect::Enabled, + ); + executor.set_post_exec_mode(PostExecMode::Verify(payload)); + let output = executor + .execute_transaction_without_commit(&priced_tx) + .expect("refunded transaction executes"); + + assert_eq!(output.canonical_gas_used, output.evm_gas_used - 1); + assert_eq!(output.inner.result.result.gas().tx_gas_used(), output.canonical_gas_used); + assert_eq!( + output.inner.result.state[&Address::ZERO].info.balance, + committed_balance, + "uncommitted state must already carry the refund" + ); +} + #[test] fn sdm_refund_can_reduce_canonical_gas_across_eip7623_floor() { let tx = calldata_floor_test_tx(); diff --git a/rust/op-reth/crates/node/tests/it/custom_pool/mod.rs b/rust/op-reth/crates/node/tests/it/custom_pool/mod.rs index c8e1aea2d6b..2013fa91648 100644 --- a/rust/op-reth/crates/node/tests/it/custom_pool/mod.rs +++ b/rust/op-reth/crates/node/tests/it/custom_pool/mod.rs @@ -40,13 +40,10 @@ fn node_test_setup() -> (NodeConfig, Arc> ); let chain_id: u64 = chain_spec.chain().into(); - let mut config = - NodeConfig::new(chain_spec).with_unused_ports().with_datadir_args(DatadirArgs { - datadir: reth_db::test_utils::tempdir_path().into(), - ..Default::default() - }); - config.network.discovery.discv5_port = Some(0); - config.network.discovery.discv5_port_ipv6 = Some(0); + let config = NodeConfig::new(chain_spec).with_unused_ports().with_datadir_args(DatadirArgs { + datadir: reth_db::test_utils::tempdir_path().into(), + ..Default::default() + }); let db = create_test_rw_db_with_path( config .datadir diff --git a/rust/op-reth/crates/node/tests/it/debug_trace_post_exec.rs b/rust/op-reth/crates/node/tests/it/debug_trace_post_exec.rs index 0cbcd40ea85..86af9c45867 100644 --- a/rust/op-reth/crates/node/tests/it/debug_trace_post_exec.rs +++ b/rust/op-reth/crates/node/tests/it/debug_trace_post_exec.rs @@ -1,72 +1,126 @@ -//! `debug_trace*` over blocks containing an SDM post-exec (0x7d) transaction. +//! `debug_traceBlock` over raw blocks containing an SDM post-exec (0x7d) transaction. //! -//! The RPC trace path replays each transaction directly through the EVM instead of going through -//! the block executor, so it only works on post-exec transactions because `OpEvm::transact_raw` -//! short-circuits them with the consensus-defined no-op result. Without that, tracing any block -//! that carries a 0x7d tx fails whole-block ([the bug]): the replayed post-exec tx env inherited -//! revm's mainnet default chain id, and no honest env for a zero-gas-limit transaction passes -//! validation either. +//! A raw block replays through the block executor like a canonical one, so its traces carry the +//! payload's refund settled and a block the executor rejects does not trace ([#485]). Tracing must +//! also not fail whole-block on the 0x7d tx itself ([premium#163]): the block executor and +//! `OpEvm::transact_raw` both give it the consensus-defined no-op result. //! -//! [the bug]: https://github.com/ethereum-optimism/optimism-premium/issues/163 +//! [#485]: https://github.com/ethereum-optimism/protocol-team/issues/485 +//! [premium#163]: https://github.com/ethereum-optimism/optimism-premium/issues/163 -use alloy_consensus::{Block, BlockBody, Header, Sealable, SignableTransaction, TxEip1559}; +use crate::lagoon::{TRANSFER_GAS, default_trace_gas, rpc_node_config}; +use alloy_consensus::{ + Block, BlockBody, EMPTY_ROOT_HASH, Header, Sealable, SignableTransaction, TxEip1559, +}; use alloy_primitives::{Address, B256, Bytes, Signature, TxKind, U256}; use alloy_rpc_types_eth::TransactionRequest; use alloy_rpc_types_trace::{common::TraceResult, geth::GethDebugTracingOptions}; +use jsonrpsee::http_client::HttpClient; use op_alloy_consensus::{OpTxEnvelope, SDMGasEntry, TxDeposit, build_post_exec_tx}; use reth_chainspec::EthChainSpec; use reth_node_builder::{NodeBuilder, NodeHandle}; -use reth_node_core::{ - args::{NetworkArgs, RpcServerArgs}, - node_config::NodeConfig, -}; -use reth_optimism_chainspec::OpChainSpecBuilder; +use reth_optimism_chainspec::{OpChainSpec, OpChainSpecBuilder}; use reth_optimism_node::OpNode; use reth_rpc_api::clients::DebugApiClient; -use reth_rpc_server_types::RpcModuleSelection; use reth_tasks::Runtime; +use std::sync::Arc; -/// `debug_traceBlock` over a raw block that ends in a post-exec (0x7d) transaction must return -/// one successful trace per transaction. Before the `transact_raw` short-circuit this failed for -/// the whole block with `-32000: invalid chain ID`. +/// `debug_traceBlock` over a raw block that ends in a post-exec (0x7d) transaction returns one +/// trace per transaction, including the post-exec one, with the payload's refund settled. Before +/// the `transact_raw` short-circuit this failed for the whole block with `-32000: invalid chain +/// ID`. +/// +/// The refund takes the transfer below the EIP-7623 floor: the producer never refunds that far, +/// but a verifier applies whatever refund the payload carries. #[tokio::test] async fn test_debug_trace_block_with_post_exec_tx() -> eyre::Result<()> { reth_tracing::init_test_tracing(); - let chain_spec = OpChainSpecBuilder::optimism_sepolia().lagoon_activated().build(); + let chain_spec = Arc::new(OpChainSpecBuilder::optimism_sepolia().lagoon_activated().build()); + let (_node, client) = launch_rpc_client(&chain_spec).await?; + let block = raw_sdm_block(&chain_spec, 30_000_000)?; - let exec = Runtime::test(); - let mut network_args = NetworkArgs::default().with_unused_ports(); - network_args.discovery.discv5_port = Some(0); - network_args.discovery.discv5_port_ipv6 = Some(0); - let node_config = - NodeConfig::test().map_chain(chain_spec.clone()).with_network(network_args).with_rpc( - RpcServerArgs::default() - .with_unused_ports() - .with_http() - // `debug_*` is not part of the default HTTP module selection. - .with_http_api(RpcModuleSelection::All), + let traces = DebugApiClient::::debug_trace_block( + &client, + alloy_rlp::encode(&block).into(), + Some(GethDebugTracingOptions::default()), + ) + .await?; + + assert_eq!(traces.len(), 3, "one trace per transaction, including the post-exec tx"); + for (index, trace) in traces.iter().enumerate() { + assert!( + matches!(trace, TraceResult::Success { .. }), + "transaction {index} must trace successfully, got {trace:?}", ); + } + assert_eq!(default_trace_gas(&traces[1]), TRANSFER_GAS - 1, "debug_traceBlock gas is settled"); + + Ok(()) +} + +/// A raw block the block executor rejects does not trace: with the block budget exhausted by the +/// deposit, replaying the transfer fails block gas accounting and the error names the shortfall. +#[tokio::test] +async fn test_debug_trace_block_rejects_exhausted_budget() -> eyre::Result<()> { + reth_tracing::init_test_tracing(); + + let chain_spec = Arc::new(OpChainSpecBuilder::optimism_sepolia().lagoon_activated().build()); + let (_node, client) = launch_rpc_client(&chain_spec).await?; + let block = raw_sdm_block(&chain_spec, TRANSFER_GAS)?; + + let error = DebugApiClient::::debug_trace_block( + &client, + alloy_rlp::encode(&block).into(), + Some(GethDebugTracingOptions::default()), + ) + .await + .expect_err("debug_traceBlock must reject the transfer"); - let NodeHandle { node, node_exit_future: _ } = - NodeBuilder::new(node_config).testing_node(exec).node(OpNode::default()).launch().await?; + assert_eq!( + error.to_string(), + "ErrorObject { code: InternalError, message: \"transaction gas limit 21000 is more than \ + blocks available gas 0\", data: None }", + "debug_traceBlock error for an executor-rejected block", + ); + + Ok(()) +} + +/// Launches a node on `chain_spec` and returns it with its HTTP RPC client; the node shuts down +/// when the returned handle drops. +async fn launch_rpc_client( + chain_spec: &Arc, +) -> eyre::Result<(impl Sized, HttpClient)> { + let NodeHandle { node, node_exit_future: _ } = NodeBuilder::new(rpc_node_config(chain_spec)) + .testing_node(Runtime::test()) + .node(OpNode::default()) + .launch() + .await?; let client = node.add_ons_handle.rpc_server_handles().rpc.http_client().unwrap(); + Ok((node, client)) +} - // `debug_traceBlock` replays a caller-supplied raw block on its parent's state, so the block - // only has to decode and recover senders — consensus fields like the state root are never - // validated. Replaying on genesis state keeps the fixture self-contained: no SDM production - // machinery is needed to put a 0x7d tx in a block. +/// Builds block 1 on genesis state: a funding deposit, a refunded transfer and the post-exec +/// transaction carrying that refund, under the given block gas limit. +/// +/// `debug_traceBlock` replays a caller-supplied raw block on its parent's state, so the block only +/// has to decode and recover senders; consensus fields like the state root are never validated. +fn raw_sdm_block( + chain_spec: &OpChainSpec, + block_gas_limit: u64, +) -> eyre::Result> { let genesis = chain_spec.genesis_header(); let header = Header { parent_hash: chain_spec.genesis_hash(), number: 1, timestamp: genesis.timestamp + 2, - gas_limit: genesis.gas_limit, + gas_limit: block_gas_limit, base_fee_per_gas: genesis.base_fee_per_gas, // Post-Ecotone replay runs the EIP-4788 pre-block system call, which requires a parent // beacon block root; the blob-gas and withdrawals fields must be present for the later // optionals to round-trip through RLP. - withdrawals_root: Some(alloy_consensus::EMPTY_ROOT_HASH), + withdrawals_root: Some(EMPTY_ROOT_HASH), blob_gas_used: Some(0), excess_blob_gas: Some(0), parent_beacon_block_root: Some(B256::ZERO), @@ -79,7 +133,7 @@ async fn test_debug_trace_block_with_post_exec_tx() -> eyre::Result<()> { chain_id: chain_spec.chain_id(), // The preceding deposit increments the depositor nonce after Regolith. nonce: 1, - gas_limit: 21_000, + gas_limit: TRANSFER_GAS, max_fee_per_gas: u128::from(header.base_fee_per_gas.unwrap_or_default()), to: TxKind::Call(Address::with_last_byte(1)), ..Default::default() @@ -103,22 +157,5 @@ async fn test_debug_trace_block_with_post_exec_tx() -> eyre::Result<()> { build_post_exec_tx(1, vec![SDMGasEntry { index: 1, gas_refund: 1 }]).seal_slow(), ), ]; - let block = Block::new(header, BlockBody { transactions, ommers: vec![], withdrawals: None }); - - let traces = DebugApiClient::::debug_trace_block( - &client, - alloy_rlp::encode(&block).into(), - Some(GethDebugTracingOptions::default()), - ) - .await?; - - assert_eq!(traces.len(), 3, "one trace per transaction, including the post-exec tx"); - for (index, trace) in traces.iter().enumerate() { - assert!( - matches!(trace, TraceResult::Success { .. }), - "transaction {index} must trace successfully, got {trace:?}", - ); - } - - Ok(()) + Ok(Block::new(header, BlockBody { transactions, ommers: vec![], withdrawals: None })) } diff --git a/rust/op-reth/crates/node/tests/it/derived_attributes.rs b/rust/op-reth/crates/node/tests/it/derived_attributes.rs index 4fa7a8508b0..6076f224452 100644 --- a/rust/op-reth/crates/node/tests/it/derived_attributes.rs +++ b/rust/op-reth/crates/node/tests/it/derived_attributes.rs @@ -4,7 +4,6 @@ //! valid payload's executed block from `engine_getPayload`. use alloy_consensus::{Sealable, SignableTransaction, TxEip1559}; -use alloy_genesis::Genesis; use alloy_network::eip2718::Encodable2718; use alloy_primitives::{Address, B64, B256, Bytes, Signature, TxKind}; use alloy_rpc_types_engine::{ForkchoiceState, ForkchoiceUpdated, PayloadStatus}; @@ -12,11 +11,9 @@ use jsonrpsee::{ core::{ClientError, client::ClientT}, rpc_params, }; -use op_alloy_consensus::{ - OpTxEnvelope, SDMGasEntry, TxDeposit, build_post_exec_tx, encode_jovian_extra_data, -}; +use op_alloy_consensus::{OpTxEnvelope, SDMGasEntry, TxDeposit, build_post_exec_tx}; use op_alloy_rpc_types_engine::{OpExecutionPayloadEnvelopeV3, OpExecutionPayloadEnvelopeV4}; -use reth_chainspec::{BaseFeeParams, EthChainSpec}; +use reth_chainspec::EthChainSpec; use reth_db_common::init::init_genesis; use reth_e2e_test_utils::{Adapter, TmpDB}; use reth_node_api::NodeTypesWithDBAdapter; @@ -119,9 +116,7 @@ type TestNode = FullNode< >; async fn launch(chain_spec: Arc) -> eyre::Result { - let mut config = NodeConfig::test().map_chain(chain_spec).with_unused_ports(); - config.network.discovery.discv5_port = Some(0); - config.network.discovery.discv5_port_ipv6 = Some(0); + let config = NodeConfig::test().map_chain(chain_spec).with_unused_ports(); let op_node = OpNode::default(); Ok(NodeBuilder::new(config) .testing_node(Runtime::test()) @@ -232,13 +227,7 @@ async fn run( #[tokio::test(flavor = "multi_thread")] async fn invalid_derived_transactions_are_rejected_at_fcu() -> eyre::Result<()> { - // A Jovian parent must carry Jovian extra data, or no child of it passes validation. - let mut genesis: Genesis = serde_json::from_str(include_str!("../assets/genesis.json"))?; - genesis.extra_data = encode_jovian_extra_data(B64::ZERO, BaseFeeParams::optimism(), 0)?; - genesis.base_fee_per_gas = Some(1_000_000_000); - let chain_spec = Arc::new( - OpChainSpecBuilder::optimism_sepolia().genesis(genesis).lagoon_activated().build(), - ); + let chain_spec = crate::lagoon::chain_spec()?; let Txs { deposit, next_deposit, transfer, nonce_too_high } = Txs::new(chain_spec.chain_id())?; let invalid = vec![ ("nonce too high", vec![deposit.clone(), nonce_too_high]), diff --git a/rust/op-reth/crates/node/tests/it/estimate_gas_7825.rs b/rust/op-reth/crates/node/tests/it/estimate_gas_7825.rs index ee04eba341e..d6f200c89e5 100644 --- a/rust/op-reth/crates/node/tests/it/estimate_gas_7825.rs +++ b/rust/op-reth/crates/node/tests/it/estimate_gas_7825.rs @@ -42,9 +42,7 @@ async fn test_estimate_gas_under_karst() -> eyre::Result<()> { reth_tracing::init_test_tracing(); let exec = Runtime::test(); - let mut network_args = NetworkArgs::default().with_unused_ports(); - network_args.discovery.discv5_port = Some(0); - network_args.discovery.discv5_port_ipv6 = Some(0); + let network_args = NetworkArgs::default().with_unused_ports(); let node_config = NodeConfig::test() .map_chain(OpChainSpecBuilder::optimism_sepolia().karst_activated().build()) .with_network(network_args) diff --git a/rust/op-reth/crates/node/tests/it/invalid_post_exec.rs b/rust/op-reth/crates/node/tests/it/invalid_post_exec.rs index d0db3438858..9b796859947 100644 --- a/rust/op-reth/crates/node/tests/it/invalid_post_exec.rs +++ b/rust/op-reth/crates/node/tests/it/invalid_post_exec.rs @@ -6,20 +6,14 @@ //! [SDM-M1]: https://github.com/ethereum-optimism/protocol-team/issues/371 use alloy_consensus::{Sealable, proofs::calculate_transaction_root}; -use alloy_genesis::Genesis; -use alloy_primitives::B64; use alloy_rpc_types_engine::{PayloadStatus, PayloadStatusEnum, PayloadValidationError}; -use op_alloy_consensus::{ - PostExecPayloadValidationError, SDMGasEntry, build_post_exec_tx, encode_jovian_extra_data, -}; +use op_alloy_consensus::{PostExecPayloadValidationError, SDMGasEntry, build_post_exec_tx}; use op_alloy_rpc_types_engine::{OpExecutionData, OpExecutionPayload}; -use reth_chainspec::BaseFeeParams; use reth_e2e_test_utils::{NodeHelperType, setup_engine_with_connection, wallet::Wallet}; -use reth_optimism_chainspec::OpChainSpecBuilder; use reth_optimism_node::{ OpBuiltPayload, OpNode, payload::OpExecData, - utils::{advance_chain, optimism_payload_attributes, setup}, + utils::{advance_chain, setup}, }; use reth_optimism_primitives::OpTransactionSigned; use std::sync::Arc; @@ -27,24 +21,12 @@ use tokio::sync::Mutex; /// Creates Lagoon-active nodes without changing the shared Ecotone fixture. async fn setup_lagoon(num_nodes: usize) -> eyre::Result<(Vec>, Wallet)> { - let mut genesis: Genesis = serde_json::from_str(include_str!("../assets/genesis.json"))?; - // Lagoon is active at genesis, so the first child's base fee uses Jovian extra data. - genesis.extra_data = encode_jovian_extra_data(B64::ZERO, BaseFeeParams::optimism(), 0)?; - genesis.base_fee_per_gas = Some(1_000_000_000); - let chain_spec = Arc::new( - OpChainSpecBuilder::optimism_sepolia().genesis(genesis).lagoon_activated().build(), - ); setup_engine_with_connection( num_nodes, - chain_spec, + crate::lagoon::chain_spec()?, false, Default::default(), - |timestamp| { - let mut attributes = optimism_payload_attributes(timestamp); - attributes.0.eip_1559_params = Some(B64::ZERO); - attributes.0.min_base_fee = Some(0); - attributes - }, + crate::lagoon::payload_attributes, // The buffered-child test must learn the parent only through its explicit newPayload. false, ) diff --git a/rust/op-reth/crates/node/tests/it/lagoon.rs b/rust/op-reth/crates/node/tests/it/lagoon.rs new file mode 100644 index 00000000000..edc1bec96bd --- /dev/null +++ b/rust/op-reth/crates/node/tests/it/lagoon.rs @@ -0,0 +1,113 @@ +//! Lagoon-at-genesis fixtures and SDM node helpers shared by the integration tests. + +use alloy_genesis::Genesis; +use alloy_primitives::B64; +use alloy_rpc_types_trace::{ + common::TraceResult, + geth::{ + GethDebugBuiltInTracerType, GethDebugTracerConfig, GethDebugTracerType, + GethDebugTracingOptions, GethTrace, PreStateConfig, + }, +}; +use op_alloy_consensus::encode_jovian_extra_data; +use reth_chainspec::BaseFeeParams; +use reth_e2e_test_utils::{NodeHelperType, node::NodeTestContext}; +use reth_node_builder::{NodeBuilder, NodeHandle}; +use reth_node_core::{ + args::{NetworkArgs, RpcServerArgs}, + node_config::NodeConfig, +}; +use reth_optimism_chainspec::{OpChainSpec, OpChainSpecBuilder}; +use reth_optimism_node::{OpNode, args::RollupArgs, utils::optimism_payload_attributes}; +use reth_optimism_payload_builder::OpPayloadAttrs; +use reth_rpc_server_types::RpcModuleSelection; +use reth_tasks::Runtime; +use std::sync::Arc; + +/// Gas used by a plain transfer before the SDM refund. +pub(crate) const TRANSFER_GAS: u64 = 21_000; + +/// Gas used before the SDM refund by a deployment of the one-byte init code `STOP`: intrinsic +/// 21000, CREATE 32000, one zero calldata byte 4, one init code word 2, and no code deposit. +pub(crate) const DEPLOY_GAS: u64 = 53_006; + +/// Builds a Lagoon-at-genesis spec that funds the e2e test wallet. +pub(crate) fn chain_spec() -> eyre::Result> { + chain_spec_with(|_| {}) +} + +/// Builds a Lagoon-at-genesis spec that funds the e2e test wallet, with `customize` applied to the +/// genesis before the spec is built. +pub(crate) fn chain_spec_with( + customize: impl FnOnce(&mut Genesis), +) -> eyre::Result> { + let mut genesis: Genesis = serde_json::from_str(include_str!("../assets/genesis.json"))?; + // Lagoon is active at genesis, so the first child's base fee uses Jovian extra data. + genesis.extra_data = encode_jovian_extra_data(B64::ZERO, BaseFeeParams::optimism(), 0)?; + genesis.base_fee_per_gas = Some(1_000_000_000); + customize(&mut genesis); + Ok(Arc::new(OpChainSpecBuilder::optimism_sepolia().genesis(genesis).lagoon_activated().build())) +} + +/// Payload attributes carrying the Jovian fields a Lagoon block requires. +pub(crate) const fn payload_attributes(timestamp: u64) -> OpPayloadAttrs { + let mut attributes = optimism_payload_attributes(timestamp); + attributes.0.eip_1559_params = Some(B64::ZERO); + attributes.0.min_base_fee = Some(0); + attributes +} + +/// Returns a test node config serving every RPC module over HTTP and `WebSocket` on unused ports. +pub(crate) fn rpc_node_config(chain_spec: &Arc) -> NodeConfig { + let network_args = NetworkArgs::default().with_unused_ports(); + NodeConfig::test().map_chain(chain_spec.clone()).with_network(network_args).with_rpc( + RpcServerArgs::default() + .with_unused_ports() + .with_http() + // `debug_*` is not part of the default HTTP module selection. + .with_http_api(RpcModuleSelection::All) + // debug_subscribe is WebSocket-only. + .with_ws() + .with_ws_api(RpcModuleSelection::All), + ) +} + +/// Launches a Lagoon node that opts into SDM and sequences one refund per regular transaction. +pub(crate) async fn launch_sdm_node( + chain_spec: &Arc, +) -> eyre::Result> { + launch_sdm_node_with_attributes(chain_spec, payload_attributes).await +} + +/// Like [`launch_sdm_node`], with the payload attributes supplied per block timestamp. +pub(crate) async fn launch_sdm_node_with_attributes( + chain_spec: &Arc, + attributes: impl Fn(u64) -> OpPayloadAttrs + Send + Sync + 'static, +) -> eyre::Result> { + let op_node = OpNode::new(RollupArgs { + operator_sdm_opt_in: true, + testing_sdm_fixed_policy: Some(None), + ..Default::default() + }); + let NodeHandle { node, node_exit_future: _ } = NodeBuilder::new(rpc_node_config(chain_spec)) + .testing_node(Runtime::test()) + .node(op_node) + .launch() + .await?; + NodeTestContext::new(node, attributes).await +} + +/// Returns tracing options selecting the prestate tracer with the given config. +pub(crate) fn prestate_tracer(config: PreStateConfig) -> GethDebugTracingOptions { + GethDebugTracingOptions::default() + .with_tracer(GethDebugTracerType::BuiltInTracer(GethDebugBuiltInTracerType::PreStateTracer)) + .with_config(GethDebugTracerConfig::from(config)) +} + +/// Returns the gas reported by a successful default (struct logger) trace. +pub(crate) fn default_trace_gas(trace: &TraceResult) -> u64 { + match trace { + TraceResult::Success { result: GethTrace::Default(frame), .. } => frame.gas, + other => panic!("unexpected trace shape: {other:?}"), + } +} diff --git a/rust/op-reth/crates/node/tests/it/main.rs b/rust/op-reth/crates/node/tests/it/main.rs index c849c74e424..b34c45dbdca 100644 --- a/rust/op-reth/crates/node/tests/it/main.rs +++ b/rust/op-reth/crates/node/tests/it/main.rs @@ -16,6 +16,10 @@ mod debug_trace_post_exec; mod invalid_post_exec; +mod lagoon; + +mod rpc_replay_settlement; + mod estimate_gas_7825; mod p2p_version; diff --git a/rust/op-reth/crates/node/tests/it/priority.rs b/rust/op-reth/crates/node/tests/it/priority.rs index fd3123b1fea..e65896eb651 100644 --- a/rust/op-reth/crates/node/tests/it/priority.rs +++ b/rust/op-reth/crates/node/tests/it/priority.rs @@ -121,13 +121,10 @@ async fn test_custom_block_priority_config() { let wallet = Arc::new(Mutex::new(Wallet::default().with_chain_id(chain_spec.chain().into()))); // Configure and launch the node. - let mut config = - NodeConfig::new(chain_spec).with_unused_ports().with_datadir_args(DatadirArgs { - datadir: reth_db::test_utils::tempdir_path().into(), - ..Default::default() - }); - config.network.discovery.discv5_port = Some(0); - config.network.discovery.discv5_port_ipv6 = Some(0); + let config = NodeConfig::new(chain_spec).with_unused_ports().with_datadir_args(DatadirArgs { + datadir: reth_db::test_utils::tempdir_path().into(), + ..Default::default() + }); let db = create_test_rw_db_with_path( config .datadir diff --git a/rust/op-reth/crates/node/tests/it/rpc.rs b/rust/op-reth/crates/node/tests/it/rpc.rs index 92aec75775e..74e92f5dd99 100644 --- a/rust/op-reth/crates/node/tests/it/rpc.rs +++ b/rust/op-reth/crates/node/tests/it/rpc.rs @@ -38,11 +38,9 @@ async fn test_admin_external_ip() -> eyre::Result<()> { let external_ip = "10.64.128.71".parse().unwrap(); // Node setup - let mut network_args = NetworkArgs::default() + let network_args = NetworkArgs::default() .with_unused_ports() .with_nat_resolver(NatResolver::ExternalIp(external_ip)); - network_args.discovery.discv5_port = Some(0); - network_args.discovery.discv5_port_ipv6 = Some(0); let node_config = NodeConfig::test() .map_chain(OP_SEPOLIA.clone()) .with_network(network_args) @@ -95,9 +93,7 @@ async fn test_retain_forwarded_txs() -> eyre::Result<()> { let exec = Runtime::test(); for retain_forwarded_txs in [false, true] { - let mut network_args = NetworkArgs::default().with_unused_ports(); - network_args.discovery.discv5_port = Some(0); - network_args.discovery.discv5_port_ipv6 = Some(0); + let network_args = NetworkArgs::default().with_unused_ports(); let node_config = NodeConfig::test() .map_chain(chain_spec.clone()) .with_network(network_args) @@ -130,9 +126,7 @@ async fn test_eth_config_endpoint_exists() -> eyre::Result<()> { // Node setup let network = OP_SEPOLIA.clone(); - let mut network_args = NetworkArgs::default().with_unused_ports(); - network_args.discovery.discv5_port = Some(0); - network_args.discovery.discv5_port_ipv6 = Some(0); + let network_args = NetworkArgs::default().with_unused_ports(); let node_config = NodeConfig::test() .map_chain(network.clone()) .with_network(network_args) @@ -161,9 +155,7 @@ async fn test_eth_capabilities_starts_at_bedrock() -> eyre::Result<()> { ); let exec = Runtime::test(); - let mut network_args = NetworkArgs::default().with_unused_ports(); - network_args.discovery.discv5_port = Some(0); - network_args.discovery.discv5_port_ipv6 = Some(0); + let network_args = NetworkArgs::default().with_unused_ports(); let node_config = NodeConfig::test() .map_chain(chain_spec) .with_network(network_args) @@ -209,9 +201,7 @@ async fn test_block_access_list_methods_unserved() -> eyre::Result<()> { reth_tracing::init_test_tracing(); let exec = Runtime::test(); - let mut network_args = NetworkArgs::default().with_unused_ports(); - network_args.discovery.discv5_port = Some(0); - network_args.discovery.discv5_port_ipv6 = Some(0); + let network_args = NetworkArgs::default().with_unused_ports(); let node_config = NodeConfig::test().map_chain(OP_SEPOLIA.clone()).with_network(network_args).with_rpc( RpcServerArgs::default() @@ -245,9 +235,7 @@ async fn test_computed_bal_cache_options_rejected() -> eyre::Result<()> { RpcStateCacheArgs { cache_computed_bals: true, ..Default::default() }, ), ] { - let mut network_args = NetworkArgs::default().with_unused_ports(); - network_args.discovery.discv5_port = Some(0); - network_args.discovery.discv5_port_ipv6 = Some(0); + let network_args = NetworkArgs::default().with_unused_ports(); let mut rpc = RpcServerArgs::default().with_unused_ports().with_http(); rpc.rpc_state_cache = cache; let node_config = NodeConfig::test() diff --git a/rust/op-reth/crates/node/tests/it/rpc_replay_settlement.rs b/rust/op-reth/crates/node/tests/it/rpc_replay_settlement.rs new file mode 100644 index 00000000000..019e8dd2e10 --- /dev/null +++ b/rust/op-reth/crates/node/tests/it/rpc_replay_settlement.rs @@ -0,0 +1,635 @@ +//! RPC replay over a sequenced Lagoon block whose transactions carry SDM refunds. +//! +//! The settlement of an SDM refund (canonical gas, sender credit, fee-vault debits) only happens +//! inside the block executor, so every RPC path that replays block transactions must go through it. +//! A replay on the bare EVM reports pre-refund gas and unsettled balances ([#485]). +//! +//! [#485]: https://github.com/ethereum-optimism/protocol-team/issues/485 + +use crate::lagoon::{ + self, DEPLOY_GAS, default_trace_gas, launch_sdm_node, launch_sdm_node_with_attributes, + prestate_tracer, +}; +use alloy_consensus::{BlockHeader, TxReceipt}; +use alloy_network::eip2718::Encodable2718; +use alloy_primitives::{Address, B256, Bytes, TxKind, U256, map::HashSet}; +use alloy_rpc_types_eth::{ + BlockNumberOrTag, EthCallResponse, TransactionInput, TransactionRequest, +}; +use alloy_rpc_types_trace::{ + common::TraceResult, + filter::TraceFilter, + geth::{ + ChainBlockTraceResult, GethDebugTracingCallOptions, GethDebugTracingOptions, GethTrace, + PreStateConfig, PreStateFrame, + }, + parity::{Delta, StateDiff, TraceType}, +}; +use jsonrpsee::{ + core::client::{ClientT, Subscription, SubscriptionClientT}, + http_client::HttpClient, + rpc_params, +}; +use reth_chainspec::EthChainSpec; +use reth_e2e_test_utils::{NodeHelperType, transaction::TransactionTestContext, wallet::Wallet}; +use reth_optimism_node::OpNode; +use reth_optimism_payload_builder::OpBuiltPayload; +use reth_optimism_primitives::OpTransactionSigned; +use reth_provider::{ReceiptProvider, StateProviderFactory}; +use reth_rpc_api::clients::{DebugApiClient, TraceApiClient}; +use serde_json::json; +use std::time::Duration; + +/// Index of the post-exec transaction in a [`SettledBlock`]. +const POST_EXEC_INDEX: usize = 4; + +/// Revert data returned by the reverting deployment in a [`SettledBlock`]. +const REVERT_OUTPUT: U256 = U256::from_limbs([42, 0, 0, 0]); + +/// A Lagoon block sequenced by a node running the fixed test policy, which refunds every regular +/// transaction one gas: a real, imported block with a 0x7d transaction and a settled state. +/// +/// The sender submits four transactions: a deployment of the init code `STOP` (refunded), a plain +/// transfer (not refunded, since it already sits on the EIP-7623 floor), a second deployment +/// (refunded) and a deployment whose init code reverts with [`REVERT_OUTPUT`]. +struct SettledBlock { + node: NodeHelperType, + client: HttpClient, + payload: OpBuiltPayload, + sender: Address, +} + +impl SettledBlock { + async fn sequence() -> eyre::Result { + let chain_spec = lagoon::chain_spec()?; + let mut node = launch_sdm_node(&chain_spec).await?; + let client = node.inner.add_ons_handle.rpc_server_handles().rpc.http_client().unwrap(); + let wallet = Wallet::default().with_chain_id(chain_spec.chain_id()); + let sender = wallet.inner.address(); + let deployments = [ + (TxKind::Create, Bytes::from_static(&[0x00])), + (TxKind::Call(Address::repeat_byte(0x99)), Bytes::new()), + (TxKind::Create, Bytes::from_static(&[0x00])), + // PUSH1 42 PUSH1 0 MSTORE PUSH1 32 PUSH1 0 REVERT + ( + TxKind::Create, + Bytes::from_static(&[0x60, 0x2a, 0x60, 0x00, 0x52, 0x60, 0x20, 0x60, 0x00, 0xfd]), + ), + ]; + for (nonce, (to, init_code)) in deployments.into_iter().enumerate() { + let transaction = TransactionRequest { + chain_id: Some(wallet.chain_id), + gas: Some(if matches!(to, TxKind::Call(_)) { 21_000 } else { 100_000 }), + input: TransactionInput::new(init_code), + max_fee_per_gas: Some(20_000_000_000), + max_priority_fee_per_gas: Some(1_000_000_000), + nonce: Some(nonce as u64), + to: Some(to), + ..Default::default() + }; + let signed = TransactionTestContext::sign_tx(wallet.inner.clone(), transaction).await; + node.rpc.inject_tx(signed.encoded_2718().into()).await?; + } + let payload = node.advance_block().await?; + + let fixture = Self { node, client, payload, sender }; + let transactions = fixture.transactions(); + assert_eq!(transactions.len(), 5, "four regular transactions and the post-exec tx"); + let OpTransactionSigned::PostExec(post_exec) = &transactions[POST_EXEC_INDEX] else { + panic!("block must end in a post-exec tx, got {:?}", transactions[POST_EXEC_INDEX]); + }; + let refund_entries = &post_exec.inner().payload.gas_refund_entries; + assert!( + refund_entries.iter().any(|entry| entry.index == 2 && entry.gas_refund > 0), + "the second deployment must be refunded: {refund_entries:?}", + ); + assert!( + !refund_entries.iter().any(|entry| entry.index == 1), + "the transfer must not be refunded: {refund_entries:?}", + ); + Ok(fixture) + } + + fn block_hash(&self) -> B256 { + self.payload.block().hash() + } + + fn block_number(&self) -> u64 { + self.payload.block().number() + } + + fn transactions(&self) -> &[OpTransactionSigned] { + &self.payload.block().body().transactions + } + + /// Gas each regular transaction used according to its receipt. + fn receipt_gas(&self) -> eyre::Result> { + let mut cumulative_gas = 0; + self.transactions() + .iter() + .map(|transaction| { + let receipt = + self.node.inner.provider.receipt_by_hash(transaction.tx_hash())?.unwrap(); + let gas_used = receipt.cumulative_gas_used() - cumulative_gas; + cumulative_gas = receipt.cumulative_gas_used(); + Ok(gas_used) + }) + .collect() + } + + /// Balance of `address` in the state the node committed for the block. + fn committed_balance(&self, address: Address) -> eyre::Result { + let state = self.node.inner.provider.state_by_block_hash(self.block_hash())?; + Ok(state.account_balance(&address)?.unwrap_or_default()) + } + + /// Balance of `address` right after the transaction at `index`, as `debug_accountAt` replays + /// it. + async fn replayed_balance(&self, index: usize, address: Address) -> eyre::Result { + let account = DebugApiClient::::debug_account_info_at( + &self.client, + self.block_hash().into(), + index.into(), + address, + ) + .await? + .unwrap_or_default(); + Ok(account.balance) + } + + async fn block_traces(&self) -> eyre::Result>> { + Ok(DebugApiClient::::debug_trace_block_by_hash( + &self.client, + self.block_hash(), + None, + ) + .await?) + } + + async fn trace_transaction( + &self, + index: usize, + options: Option, + ) -> eyre::Result { + Ok(DebugApiClient::::debug_trace_transaction( + &self.client, + self.transactions()[index].tx_hash(), + options, + ) + .await?) + } + + async fn prestate_diff( + &self, + index: usize, + ) -> eyre::Result { + let options = + prestate_tracer(PreStateConfig { diff_mode: Some(true), ..Default::default() }); + match self.trace_transaction(index, Some(options)).await? { + GethTrace::PreStateTracer(PreStateFrame::Diff(diff)) => Ok(diff), + other => panic!("unexpected prestate trace of transaction {index}: {other:?}"), + } + } +} + +/// Every RPC path that replays the block's own transactions agrees with what the node committed: +/// the receipts' canonical gas, the balances after each transaction, and the header's state root. +#[tokio::test] +async fn replays_match_sdm_settlement() -> eyre::Result<()> { + reth_tracing::init_test_tracing(); + let fixture = SettledBlock::sequence().await?; + let SettledBlock { client, sender, .. } = &fixture; + let client = client.clone(); + let sender = *sender; + let transactions = fixture.transactions().to_vec(); + let block_hash = fixture.block_hash(); + let receipt_gas = fixture.receipt_gas()?; + + // Pins the settlement itself: every check below compares a replay with what the node committed. + assert_eq!(receipt_gas[0], DEPLOY_GAS - 1, "receipt holds canonical gas"); + + let block_traces = fixture.block_traces().await?; + assert_eq!(block_traces.len(), transactions.len(), "debug_traceBlockByHash trace count"); + + for index in 0..POST_EXEC_INDEX { + let hash = transactions[index].tx_hash(); + let gas_used = receipt_gas[index]; + + let GethTrace::Default(frame) = fixture.trace_transaction(index, None).await? else { + panic!("unexpected default trace of transaction {index}"); + }; + assert_eq!(frame.gas, gas_used, "debug_traceTransaction gas of transaction {index}"); + assert_eq!( + default_trace_gas(&block_traces[index]), + gas_used, + "debug_traceBlockByHash gas of transaction {index}", + ); + let call: GethTrace = client + .request("debug_traceTransaction", rpc_params![hash, json!({"tracer": "callTracer"})]) + .await?; + let GethTrace::CallTracer(call_frame) = call else { + panic!("unexpected call trace of transaction {index}: {call:?}"); + }; + assert_eq!( + call_frame.gas_used, + U256::from(gas_used), + "callTracer gas of transaction {index}", + ); + + // Every balance the prestate diff ends on is the balance debug_accountAt replays at that + // index, for the sender as well as the fee vaults. + let diff = fixture.prestate_diff(index).await?; + assert!( + diff.post.contains_key(&sender), + "prestate diff of transaction {index} lacks sender" + ); + for (address, account) in &diff.post { + if let Some(balance) = account.balance { + assert_eq!( + balance, + fixture.replayed_balance(index, *address).await?, + "prestate diff balance of {address} after transaction {index}", + ); + } + } + + let replay = TraceApiClient::::replay_transaction( + &client, + hash, + HashSet::from_iter([TraceType::StateDiff, TraceType::Trace]), + ) + .await?; + assert_eq!( + settled_balance(replay.state_diff.as_ref(), sender), + fixture.replayed_balance(index, sender).await?, + "trace_replayTransaction state diff of transaction {index}", + ); + } + + // The last regular transaction leaves the committed state, since the post-exec transaction + // changes nothing; this anchors the replayed balances above to the provider. + let last_regular = POST_EXEC_INDEX - 1; + let committed = fixture.committed_balance(sender)?; + assert_eq!( + fixture.replayed_balance(last_regular, sender).await?, + committed, + "debug_accountAt after the last regular transaction", + ); + assert_eq!( + fixture.replayed_balance(POST_EXEC_INDEX, sender).await?, + committed, + "debug_accountAt after the post-exec transaction", + ); + for (address, account) in &fixture.prestate_diff(last_regular).await?.post { + if let Some(balance) = account.balance { + assert_eq!( + balance, + fixture.committed_balance(*address)?, + "committed balance of {address} after transaction {last_regular}", + ); + } + } + + let replays = TraceApiClient::::replay_block_transactions( + &client, + block_hash.into(), + HashSet::from_iter([TraceType::StateDiff]), + ) + .await? + .expect("block exists"); + assert_eq!(replays.len(), transactions.len(), "trace_replayBlockTransactions replay count"); + for (index, replay) in replays.iter().take(POST_EXEC_INDEX).enumerate() { + assert_eq!( + settled_balance(replay.full_trace.state_diff.as_ref(), sender), + fixture.replayed_balance(index, sender).await?, + "trace_replayBlockTransactions state diff of transaction {index}", + ); + } + + // debug_traceCall at an index runs on the settled prefix but earns no refund itself. + let prefix_call = DebugApiClient::::debug_trace_call( + &client, + TransactionRequest::default().from(sender).to(Address::with_last_byte(1)), + Some(block_hash.into()), + Some(GethDebugTracingCallOptions { + tracing_options: prestate_tracer(PreStateConfig::default()), + tx_index: Some(1), + ..Default::default() + }), + ) + .await?; + let GethTrace::PreStateTracer(PreStateFrame::Default(prestate)) = prefix_call else { + panic!("unexpected debug_traceCall prestate: {prefix_call:?}"); + }; + assert_eq!( + prestate.0[&sender].balance, + Some(fixture.replayed_balance(0, sender).await?), + "debug_traceCall prestate after the first deployment", + ); + let recipient = Address::repeat_byte(0x55); + let synthetic_transfer = DebugApiClient::::debug_trace_call( + &client, + TransactionRequest::default().from(sender).to(recipient).value(U256::from(1)), + Some(block_hash.into()), + Some(GethDebugTracingCallOptions { + tx_index: Some(POST_EXEC_INDEX as u64), + ..Default::default() + }), + ) + .await?; + let GethTrace::Default(synthetic_frame) = synthetic_transfer else { + panic!("unexpected debug_traceCall trace: {synthetic_transfer:?}"); + }; + assert_eq!(synthetic_frame.gas, 21_000, "debug_traceCall gas of a synthetic transfer"); + + // The post-exec transaction is its own replay target: an empty trace at its receipt gas. + let GethTrace::Default(post_exec_frame) = + fixture.trace_transaction(POST_EXEC_INDEX, None).await? + else { + panic!("unexpected default trace of the post-exec transaction"); + }; + assert!(post_exec_frame.struct_logs.is_empty(), "debug_traceTransaction of the post-exec tx"); + assert_eq!( + post_exec_frame.gas, receipt_gas[POST_EXEC_INDEX], + "debug_traceTransaction gas of the post-exec tx", + ); + let post_exec_call: GethTrace = client + .request( + "debug_traceTransaction", + rpc_params![transactions[POST_EXEC_INDEX].tx_hash(), json!({"tracer": "callTracer"})], + ) + .await?; + let GethTrace::CallTracer(post_exec_call_frame) = post_exec_call else { + panic!("unexpected call trace of the post-exec tx: {post_exec_call:?}"); + }; + assert_eq!(post_exec_call_frame.gas_used, U256::ZERO, "callTracer gas of the post-exec tx"); + let post_exec_diff = fixture.prestate_diff(POST_EXEC_INDEX).await?; + assert!( + post_exec_diff.pre.is_empty() && post_exec_diff.post.is_empty(), + "prestate diff of the post-exec tx must be empty: {post_exec_diff:?}", + ); + let GethTrace::Default(transfer_frame) = fixture.trace_transaction(1, None).await? else { + panic!("unexpected default trace of the transfer"); + }; + assert!(transfer_frame.struct_logs.is_empty(), "debug_traceTransaction of the transfer"); + + // Each regular transaction moves the state root; the post-exec transaction does not, and the + // last root is the header's. + let roots = + DebugApiClient::::debug_intermediate_roots(&client, block_hash, None) + .await?; + assert_eq!(roots.len(), transactions.len(), "debug_intermediateRoots root count"); + for index in 0..last_regular { + assert_ne!( + roots[index], + roots[index + 1], + "debug_intermediateRoots after tx {}", + index + 1 + ); + } + assert_eq!(roots[last_regular], roots[POST_EXEC_INDEX], "debug_intermediateRoots after 0x7d"); + assert_eq!( + roots.last(), + Some(&fixture.payload.block().state_root()), + "debug_intermediateRoots" + ); + + let filtered = TraceApiClient::::trace_filter( + &client, + TraceFilter { + from_block: Some(fixture.block_number()), + to_block: Some(fixture.block_number()), + ..Default::default() + }, + ) + .await?; + let filtered_hashes: HashSet<_> = + filtered.iter().filter_map(|trace| trace.transaction_hash).collect(); + let block_hashes: HashSet<_> = transactions.iter().map(|tx| tx.tx_hash()).collect(); + assert_eq!(filtered_hashes, block_hashes, "trace_filter covers every transaction"); + + // eth_callMany and debug_traceCallMany run on the settled prefix: a contract reading the + // sender's balance after the whole block sees the committed one. + let balance_reader = Address::repeat_byte(0x77); + let mut balance_code = vec![0x73]; + balance_code.extend_from_slice(sender.as_slice()); + // BALANCE PUSH1 0 MSTORE PUSH1 32 PUSH1 0 RETURN + balance_code.extend_from_slice(&[0x31, 0x60, 0x00, 0x52, 0x60, 0x20, 0x60, 0x00, 0xf3]); + let bundles = json!([{ + "transactions": [{"from": Address::ZERO, "gasPrice": "0x4a817c800", "to": balance_reader}] + }]); + let context = json!({"blockNumber": block_hash, "transactionIndex": POST_EXEC_INDEX}); + let overrides = json!({ + balance_reader.to_string(): {"code": Bytes::from(balance_code)}, + Address::ZERO.to_string(): {"balance": "0xffffffffffffffff"}, + }); + let output: Vec> = client + .request("eth_callMany", rpc_params![bundles.clone(), context.clone(), overrides.clone()]) + .await?; + assert_eq!( + U256::from_be_slice(output[0][0].value.as_ref().unwrap()), + committed, + "eth_callMany balance read", + ); + let traces: Vec> = client + .request( + "debug_traceCallMany", + rpc_params![bundles, context, json!({"stateOverrides": overrides})], + ) + .await?; + let GethTrace::Default(frame) = &traces[0][0] else { + panic!("unexpected debug_traceCallMany trace: {:?}", traces[0][0]); + }; + assert_eq!( + U256::from_be_slice(&frame.return_value), + committed, + "debug_traceCallMany balance read", + ); + + Ok(()) +} + +/// `traceChain` streams the same settled traces as `debug_traceBlockByHash`. +#[tokio::test] +async fn trace_chain_matches_block_traces() -> eyre::Result<()> { + reth_tracing::init_test_tracing(); + let fixture = SettledBlock::sequence().await?; + let block_traces = fixture.block_traces().await?; + + let ws = fixture.node.inner.add_ons_handle.rpc_server_handles().rpc.ws_client().await.unwrap(); + let mut subscription: Subscription = ws + .subscribe( + "debug_subscribe", + rpc_params![ + "traceChain", + BlockNumberOrTag::Number(0), + BlockNumberOrTag::Number(fixture.block_number()), + GethDebugTracingOptions::default() + ], + "debug_unsubscribe", + ) + .await?; + let traced = + tokio::time::timeout(Duration::from_secs(10), subscription.next()).await?.unwrap()?; + subscription.unsubscribe().await?; + + assert_eq!( + traced.traces, + block_traces.into_iter().map(Some).collect::>(), + "traceChain traces of the block", + ); + Ok(()) +} + +/// A tracer configuration the tracer rejects fails `traceChain` per block, not per subscription: +/// the first transaction carries the error and the rest of the block is left untraced. +#[tokio::test] +async fn trace_chain_reports_tracer_config_errors_per_block() -> eyre::Result<()> { + reth_tracing::init_test_tracing(); + let fixture = SettledBlock::sequence().await?; + + let ws = fixture.node.inner.add_ons_handle.rpc_server_handles().rpc.ws_client().await.unwrap(); + let mut subscription: Subscription = ws + .subscribe( + "debug_subscribe", + rpc_params![ + "traceChain", + BlockNumberOrTag::Number(0), + BlockNumberOrTag::Number(fixture.block_number()), + json!({"tracer": "callTracer", "tracerConfig": {"onlyTopCall": "invalid"}}) + ], + "debug_unsubscribe", + ) + .await?; + let failed = + tokio::time::timeout(Duration::from_secs(10), subscription.next()).await?.unwrap()?; + subscription.unsubscribe().await?; + + assert_eq!(failed.traces.len(), fixture.transactions().len(), "traceChain trace count"); + assert!( + matches!(failed.traces[0], Some(TraceResult::Error { .. })), + "traceChain must report the tracer error on the first transaction: {:?}", + failed.traces[0], + ); + assert!( + failed.traces[1..].iter().all(Option::is_none), + "traceChain must leave the rest of the block untraced: {:?}", + failed.traces, + ); + Ok(()) +} + +/// Otterscan replays a reverted transaction on an SDM block and returns its revert data. +#[tokio::test] +async fn otterscan_returns_revert_output_on_sdm_block() -> eyre::Result<()> { + reth_tracing::init_test_tracing(); + let fixture = SettledBlock::sequence().await?; + + let revert: Option = fixture + .client + .request("ots_getTransactionError", rpc_params![fixture.transactions()[3].tx_hash()]) + .await?; + + assert_eq!( + revert, + Some(Bytes::copy_from_slice(&REVERT_OUTPUT.to_be_bytes::<32>())), + "ots_getTransactionError revert data", + ); + Ok(()) +} + +/// The sender starts with exactly the settled cost of the first deployment plus the second +/// transaction's upfront `gas_limit * max_fee`, so the second transaction replays only if the +/// first one's refund was credited; a bare-EVM replay fails with insufficient funds. +#[tokio::test] +async fn later_transaction_affordability_depends_on_prior_refund() -> eyre::Result<()> { + reth_tracing::init_test_tracing(); + let wallet = Wallet::default(); + let sender = wallet.inner.address(); + let gas_price = 20_000_000_000u128; + let settled_deploy_gas = DEPLOY_GAS - 1; + let transaction_gas_limit = 100_000u64; + let initial_balance = + U256::from(settled_deploy_gas + transaction_gas_limit) * U256::from(gas_price); + let chain_spec = lagoon::chain_spec_with(|genesis| { + genesis.alloc.entry(sender).or_default().balance = initial_balance; + })?; + let wallet = wallet.with_chain_id(chain_spec.chain_id()); + + let mut forced_transactions = Vec::new(); + for nonce in 0..2 { + let transaction = TransactionRequest { + chain_id: Some(wallet.chain_id), + gas: Some(transaction_gas_limit), + input: TransactionInput::new(Bytes::from_static(&[0x00])), + max_fee_per_gas: Some(gas_price), + max_priority_fee_per_gas: Some(gas_price), + nonce: Some(nonce), + to: Some(TxKind::Create), + ..Default::default() + }; + let signed = TransactionTestContext::sign_tx(wallet.inner.clone(), transaction).await; + forced_transactions.push(signed.encoded_2718().into()); + } + let mut node = launch_sdm_node_with_attributes(&chain_spec, move |timestamp| { + let mut attributes = lagoon::payload_attributes(timestamp); + // Local sequencing produces refunds; derived mode only verifies embedded refunds. The + // transactions are forced through attributes because the pool's balance check does not + // know about refunds and would reject the second one. + attributes.0.no_tx_pool = Some(false); + attributes.0.transactions = Some(forced_transactions.clone()); + attributes + }) + .await?; + let payload = node.advance_block().await?; + let block = payload.block(); + assert_eq!(block.body().transactions.len(), 3, "two deployments and the post-exec tx"); + let client = node.inner.add_ons_handle.rpc_server_handles().rpc.http_client().unwrap(); + + let sender_before_second = DebugApiClient::::debug_account_info_at( + &client, + block.hash().into(), + 0usize.into(), + sender, + ) + .await? + .unwrap(); + assert_eq!( + sender_before_second.balance, + U256::from(transaction_gas_limit) * U256::from(gas_price), + "debug_accountAt balance after the first deployment", + ); + let second = block.body().transactions[1].tx_hash(); + let trace = + DebugApiClient::::debug_trace_transaction(&client, second, None) + .await?; + let GethTrace::Default(frame) = trace else { + panic!("unexpected trace of the second deployment: {trace:?}"); + }; + assert_eq!( + frame.gas, settled_deploy_gas, + "debug_traceTransaction gas of the second deployment" + ); + let traces = DebugApiClient::::debug_trace_block_by_number( + &client, + BlockNumberOrTag::Number(block.number()), + None, + ) + .await?; + assert_eq!( + default_trace_gas(&traces[1]), + settled_deploy_gas, + "debug_traceBlockByNumber gas of the second deployment", + ); + Ok(()) +} + +/// The balance a parity state diff leaves `address` with. +fn settled_balance(state_diff: Option<&StateDiff>, address: Address) -> U256 { + let state_diff = state_diff.expect("state diff requested"); + match &state_diff[&address].balance { + Delta::Changed(changed) => changed.to, + Delta::Added(to) => *to, + other => panic!("balance of {address} must change: {other:?}"), + } +}