diff --git a/docs/glamsterdam-client-compatibility.md b/docs/glamsterdam-client-compatibility.md new file mode 100644 index 0000000000..6fdcf83bc4 --- /dev/null +++ b/docs/glamsterdam-client-compatibility.md @@ -0,0 +1,83 @@ +# Glamsterdam client compatibility + +The geth v1.17.10 update corrects the JSON name of the block access list hash +from `balHash` to `blockAccessListHash`. Without that field, decoding a +Glamsterdam header and calling `Header.Hash()` computes a different hash from +the canonical block hash reported by Ethereum. + +`baseChain.GetBlockHashByNumber` returns that decoded header's hash. Wallet +coordination uses it in `SHA256(wallet public-key hash || safe-block hash)`, +where the safe block is 32 blocks before the coordination block. The seed +controls the operator shuffle that selects the leader and the heartbeat +choice. A fleet using one old hash rule can agree internally while using an +incorrect canonical hash; mixing the old and corrected rules can produce +different leaders and action checklists for the same wallet and window. + +## Release coordination + +This dependency update changes a shared coordination rule for post-fork +headers. It must be included in a coordinated client release: + +- Every operator must run the corrected client before mainnet activation of + the header fields that change the coordination hash. +- Sepolia already carries these fields. An ungated rolling release there + mixes the old and corrected hash rules immediately. Its release plan needs + a coordinated fleet transition or a compatible activation gate, with a + rehearsal that verifies the same seed, leader, and heartbeat choice across + the fleet. +- Before release, the coordinated corrected fleet must also complete an + actual heartbeat and deposit-sweep signing and live execution rehearsal. + Agreement on the computed leader alone does not satisfy this gate. This + patch does not claim that this release rehearsal has been completed. +- Before release, compare the corrected client's computed hashes with the + canonical hashes returned by the actual RPC providers operators use, + across shared post-fork block numbers. Include more than the saved fixture + and confirm that every provider serves `blockAccessListHash` and + `slotNumber` consistently. +- A successful client build, a passing unit test, or unchanged contract + interfaces does not establish mixed-version coordination compatibility. + +This patch chooses no cutover block and performs no deployment. It does not +add an application activation gate; release owners must resolve the +transition before deploying it on an already forked network. The header +hash correction itself requires no smart-contract upgrade. + +## Transactions across activation + +Generated contract `ForceMining` replacement callbacks still preserve an +original nonzero `GasLimit`. Raising the replacement fee therefore does not +refresh that gas limit after repricing. The geth update does not fix this +behavior. + +As an interim release gate, release owners must rehearse and document a +bounded, coordinated drain of pending calls and calls estimated before the +fork: + +1. Choose a bounded submission pause and resumption plan for affected + Ethereum calls. Inventory outstanding transactions by sender and nonce, + and drain or reconcile them across the activation boundary. +2. Do not use pre-fork gas estimates for post-fork inclusion. Estimate new + submissions against the active post-fork rules and current business state. +3. Before retrying unresolved work, check its receipt, the account's confirmed + and pending nonces, and current contract/business state. Distinguish mined, + still-pending, replaced, and dropped transactions; a missing receipt alone + does not establish that the original call is safe to repeat. +4. Only after that reconciliation, obtain a fresh estimate and choose a + nonce-appropriate retry for work that is still needed. Do not blindly + rebroadcast work that may remain pending or may already have succeeded. + Resume affected submissions under the bounded plan once these checks and + post-fork estimation are in place. + +This runbook is a release prerequisite, not an implemented transaction-drain +mechanism. This patch performs no live action and chooses no fork date or +activation block. + +## Regression coverage + +`TestGetBlockHashByNumber_Glamsterdam` serves a real public Sepolia header +through an in-process JSON-RPC server and calls the production method. It +compares the result with the canonical hash saved in the original response. +The test fails with geth v1.17.3 and passes with the corrected decoder. + +The fixture and its provenance are in +`pkg/chain/ethereum/testdata/sepolia-glamsterdam-header-12084523.*`. diff --git a/go.mod b/go.mod index 5a788ab1c7..0952f63f7e 100644 --- a/go.mod +++ b/go.mod @@ -46,7 +46,7 @@ require ( github.com/btcsuite/btcd/btcutil v1.1.5 github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 github.com/checksum0/go-electrum v0.0.0-20220912200153-b862ac442cf9 - github.com/ethereum/go-ethereum v1.17.3 + github.com/ethereum/go-ethereum v1.17.10 github.com/ferranbt/fastssz v0.1.4 github.com/go-test/deep v1.0.8 github.com/google/gofuzz v1.2.0 @@ -70,11 +70,11 @@ require ( github.com/spf13/pflag v1.0.6 github.com/spf13/viper v1.12.0 go.uber.org/zap v1.27.0 - golang.org/x/crypto v0.47.0 + golang.org/x/crypto v0.55.0 golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 - golang.org/x/sync v0.19.0 - golang.org/x/term v0.39.0 - google.golang.org/protobuf v1.36.11 + golang.org/x/sync v0.22.0 + golang.org/x/term v0.45.0 + google.golang.org/protobuf v1.36.12 google.golang.org/protobuf/dev v0.0.0-00010101000000-000000000000 ) @@ -86,7 +86,8 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/decred/dcrd/crypto/blake256 v1.0.1 // indirect github.com/emicklei/dot v1.6.2 // indirect - github.com/ethereum/c-kzg-4844/v2 v2.1.6 // indirect + github.com/ethereum/c-kzg-4844/v2 v2.1.8 // indirect + github.com/fjl/jsonw v0.1.0 // indirect github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect github.com/go-task/slim-sprig/v3 v3.0.0 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect @@ -94,7 +95,7 @@ require ( github.com/pion/dtls/v2 v2.2.12 // indirect github.com/pion/ice/v2 v2.3.37 // indirect github.com/pion/interceptor v0.1.37 // indirect - github.com/pion/logging v0.2.2 // indirect + github.com/pion/logging v0.2.4 // indirect github.com/pion/mdns v0.0.12 // indirect github.com/pion/randutil v0.1.0 // indirect github.com/pion/rtcp v1.2.15 // indirect @@ -108,10 +109,11 @@ require ( github.com/pion/turn/v2 v2.1.6 // indirect github.com/pion/webrtc/v3 v3.3.5 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/stretchr/objx v0.5.2 // indirect - github.com/stretchr/testify v1.11.1 // indirect + github.com/stretchr/objx v0.5.3 // indirect + github.com/stretchr/testify v1.12.1 // indirect github.com/wlynxg/anet v0.0.5 // indirect - golang.org/x/telemetry v0.0.0-20251203150158-8fff8a5912fc // indirect + go.yaml.in/yaml/v3 v3.0.5 // indirect + golang.org/x/telemetry v0.0.0-20260811182544-a038080d80e5 // indirect ) require ( @@ -137,7 +139,7 @@ require ( github.com/flynn/noise v1.1.0 // indirect github.com/francoispqt/gojay v1.2.13 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect - github.com/go-logr/logr v1.4.3 // indirect + github.com/go-logr/logr v1.4.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-ole/go-ole v1.3.0 // indirect github.com/godbus/dbus/v5 v5.1.0 // indirect @@ -162,7 +164,7 @@ require ( github.com/jbenet/go-temp-err-catcher v0.1.0 // indirect github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23 // indirect github.com/klauspost/compress v1.17.11 // indirect - github.com/klauspost/cpuid/v2 v2.2.9 // indirect + github.com/klauspost/cpuid/v2 v2.3.0 // indirect github.com/koron/go-ssdp v0.0.4 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect github.com/libp2p/go-cidranger v1.1.0 // indirect @@ -229,19 +231,19 @@ require ( github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/auto/sdk v1.2.1 // indirect - go.opentelemetry.io/otel v1.41.0 // indirect - go.opentelemetry.io/otel/metric v1.41.0 // indirect - go.opentelemetry.io/otel/trace v1.41.0 // indirect + go.opentelemetry.io/otel v1.46.0 // indirect + go.opentelemetry.io/otel/metric v1.46.0 // indirect + go.opentelemetry.io/otel/trace v1.46.0 // indirect go.uber.org/dig v1.18.0 // indirect go.uber.org/fx v1.23.0 // indirect go.uber.org/mock v0.5.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/mod v0.31.0 // indirect - golang.org/x/net v0.49.0 // indirect - golang.org/x/sys v0.40.0 // indirect - golang.org/x/text v0.33.0 // indirect - golang.org/x/time v0.9.0 - golang.org/x/tools v0.40.0 + golang.org/x/mod v0.39.0 // indirect + golang.org/x/net v0.58.0 // indirect + golang.org/x/sys v0.47.0 // indirect + golang.org/x/text v0.41.0 // indirect + golang.org/x/time v0.14.0 + golang.org/x/tools v0.49.0 gonum.org/v1/gonum v0.15.1 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/go.sum b/go.sum index b21c59ce5e..6123b0cf9a 100644 --- a/go.sum +++ b/go.sum @@ -49,10 +49,16 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03 github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/DataDog/zstd v1.4.5 h1:EndNeuB0l9syBZhut0wns3gV1hL8zX8LIu6ZiVHWLIQ= github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= +github.com/DataDog/zstd v1.5.7 h1:ybO8RBeh29qrxIhCA9E8gKY6xfONU9T6G6aP9DTKfLE= +github.com/DataDog/zstd v1.5.7/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= github.com/ProjectZKM/Ziren/crates/go-runtime/zkvm_runtime v0.0.0-20251001021608-1fe7b43fc4d6 h1:1zYrtlhrZ6/b6SAjLSfKzWtdgqK0U+HtH/VcBWh1BaU= github.com/ProjectZKM/Ziren/crates/go-runtime/zkvm_runtime v0.0.0-20251001021608-1fe7b43fc4d6/go.mod h1:ioLG6R+5bUSO1oeGSDxOV3FADARuMoytZCSX6MEMQkI= +github.com/RaduBerinde/axisds v0.1.0 h1:YItk/RmU5nvlsv/awo2Fjx97Mfpt4JfgtEVAGPrLdz8= +github.com/RaduBerinde/axisds v0.1.0/go.mod h1:UHGJonU9z4YYGKJxSaC6/TNcLOBptpmM5m2Cksbnw0Y= +github.com/RaduBerinde/btreemap v0.0.0-20250419174037-3d62b7205d54 h1:bsU8Tzxr/PNz75ayvCnxKZWEYdLMPDkUgticP4a4Bvk= +github.com/RaduBerinde/btreemap v0.0.0-20250419174037-3d62b7205d54/go.mod h1:0tr7FllbE9gJkHq7CVeeDDFAFKQVy5RnCSSNBOvdqbc= github.com/StackExchange/wmi v1.2.1 h1:VIkavFPXSjcnS+O8yTq7NI32k0R5Aj+v39y29VYDOSA= github.com/StackExchange/wmi v1.2.1/go.mod h1:rcmrprowKIVzvc+NUiLncP2uuArMWLCbu9SBzvHz7e8= github.com/VictoriaMetrics/fastcache v1.13.0 h1:AW4mheMR5Vd9FkAPUv+NH6Nhw+fmbTMGMsNAoA/+4G0= @@ -118,6 +124,8 @@ github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDk github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cockroachdb/crlib v0.0.0-20241112164430-1264a2edc35b h1:SHlYZ/bMx7frnmeqCu+xm0TCxXLzX3jQIVuFbnFGtFU= +github.com/cockroachdb/crlib v0.0.0-20241112164430-1264a2edc35b/go.mod h1:Gq51ZeKaFCXk6QwuGM0w1dnaOqc/F5zKT2zA9D6Xeac= github.com/cockroachdb/errors v1.11.3 h1:5bA+k2Y6r+oz/6Z/RFlNeVCesGARKuC6YymtcDrbC/I= github.com/cockroachdb/errors v1.11.3/go.mod h1:m4UIW4CDjx+R5cybPsNrRbreomiFqt8o1h1wUVazSd8= github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce h1:giXvy4KSc/6g/esnpM7Geqxka4WSqI1SZc7sMJFd3y4= @@ -126,8 +134,12 @@ github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZe github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= github.com/cockroachdb/pebble v1.1.5 h1:5AAWCBWbat0uE0blr8qzufZP5tBjkRyy/jWe1QWLnvw= github.com/cockroachdb/pebble v1.1.5/go.mod h1:17wO9el1YEigxkP/YtV8NtCivQDgoCyBg5c4VR/eOWo= +github.com/cockroachdb/pebble/v2 v2.1.4 h1:j9wPgMDbkErFdAKYFGhsoCcvzcjR+6zrJ4jhKtJ6bOk= +github.com/cockroachdb/pebble/v2 v2.1.4/go.mod h1:Reo1RTniv1UjVTAu/Fv74y5i3kJ5gmVrPhO9UtFiKn8= github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= +github.com/cockroachdb/swiss v0.0.0-20260820225851-333444432258 h1:IJ+uNItEm0qx9FE2AgIc1PMsCUtk8nbSIzhQE1t5GWw= +github.com/cockroachdb/swiss v0.0.0-20260820225851-333444432258/go.mod h1:yBRu/cnL4ks9bgy4vAASdjIW+/xMlFwuHKqtmh3GZQg= github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/consensys/gnark-crypto v0.18.1 h1:RyLV6UhPRoYYzaFnPQA4qK3DyuDgkTgskDdoGqFt3fI= @@ -187,13 +199,18 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.m github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/ethereum/c-kzg-4844/v2 v2.1.6 h1:xQymkKCT5E2Jiaoqf3v4wsNgjZLY0lRSkZn27fRjSls= github.com/ethereum/c-kzg-4844/v2 v2.1.6/go.mod h1:8HMkUZ5JRv4hpw/XUrYWSQNAUzhHMg2UDb/U+5m+XNw= +github.com/ethereum/c-kzg-4844/v2 v2.1.8/go.mod h1:8HMkUZ5JRv4hpw/XUrYWSQNAUzhHMg2UDb/U+5m+XNw= github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab h1:rvv6MJhy07IMfEKuARQ9TKojGqLVNxQajaXEp/BoqSk= github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab/go.mod h1:IuLm4IsPipXKF7CW5Lzf68PIbZ5yl7FFd74l/E0o9A8= github.com/ethereum/go-ethereum v1.17.3 h1:Ev/sQHH+UdKZHWjuVzhu2pxhi/sXaPZl23Q+Q5LDd4Q= github.com/ethereum/go-ethereum v1.17.3/go.mod h1:f2EhRwqewIZkGoQekywI2Y2RZAMTSavLNkD9qItFy1A= +github.com/ethereum/go-ethereum v1.17.10 h1:b3WO+xux3pItpm13kqT5Xddv01zOxBFZxQgk/Ate4/M= +github.com/ethereum/go-ethereum v1.17.10/go.mod h1:7ruvgGPsxGXtaSFJQKkSGwbKghz8V/G1xuDVY8NqQQM= github.com/facebookgo/atomicfile v0.0.0-20151019160806-2de1f203e7d5/go.mod h1:JpoxHjuQauoxiFMl1ie8Xc/7TfLuMZ5eOCONd1sUBHg= github.com/ferranbt/fastssz v0.1.4 h1:OCDB+dYDEQDvAgtAGnTSidK1Pe2tW3nFV40XyMkTeDY= github.com/ferranbt/fastssz v0.1.4/go.mod h1:Ea3+oeoRGGLGm5shYAeDgu6PGUlcvQhE2fILyD9+tGg= +github.com/fjl/jsonw v0.1.0 h1:V3MyR79fjLpn/+bMgvegdGUIhoJOzjmqWcKDgcOmY1I= +github.com/fjl/jsonw v0.1.0/go.mod h1:2KMLevM6FXEJnfhtk7naXu9vZdVfOma1GlnGdPRlumU= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/flynn/noise v1.1.0 h1:KjPQoQCEFdZDiP03phOvGi11+SVVhBG2wOWAorLsstg= github.com/flynn/noise v1.1.0/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwUTag= @@ -221,6 +238,8 @@ github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2 github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/logr v1.4.4 h1:tG4xh9yMsRCAiodLVTxyrkzSZ9+o0L1Kg/+cPVcbP/8= +github.com/go-logr/logr v1.4.4/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-ole/go-ole v1.2.5/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= @@ -278,6 +297,8 @@ github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaS github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v1.0.0 h1:Oy607GVXHs7RtbggtPBnr2RmDArIsAefDwvrdWvRhGs= github.com/golang/snappy v1.0.0/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v1.0.1-0.20260716114414-9ae09f520e93 h1:GpQQr4L8jsBtJSURCDqQboOdgpVMU6vR9REjc8nR4Qc= +github.com/golang/snappy v1.0.1-0.20260716114414-9ae09f520e93/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golangci/lint-1 v0.0.0-20181222135242-d2cdd8c08219/go.mod h1:/X8TswGSh1pIozq4ZwCfxS0WA5JGXguxk94ar/4c87Y= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= @@ -434,6 +455,8 @@ github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IX github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= github.com/klauspost/cpuid/v2 v2.2.9 h1:66ze0taIn2H33fBvCkXuv9BmCwDfafmiIVpKV9kKGuY= github.com/klauspost/cpuid/v2 v2.2.9/go.mod h1:rqkxqrZ1EhYM9G+hXH7YdowN5R5RGN6NK4QwQ3WMXF8= +github.com/klauspost/cpuid/v2 v2.3.0 h1:S4CRMLnYUhGeDFDqkGriYKdfoFlDnMtqTiI/sFzhA9Y= +github.com/klauspost/cpuid/v2 v2.3.0/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0= github.com/koron/go-ssdp v0.0.4 h1:1IDwrghSKYM7yLf7XCzbByg2sJ/JcNOZRXS2jczTwz0= github.com/koron/go-ssdp v0.0.4/go.mod h1:oDXq+E5IL5q0U8uSBcoAXzTzInwy5lEgC91HoKtbmZk= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= @@ -508,6 +531,8 @@ github.com/mattn/go-colorable v0.1.7/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= +github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= +github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= @@ -529,6 +554,8 @@ github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b/go.mod h1:lxPUiZwKo github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc h1:PTfri+PuQmWDqERdnNMiD9ZejrlswWrCpBEZgWOiTrc= github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc/go.mod h1:cGKTAVKx4SxOuR/czcZ/E2RSJ3sfHs8FpHhQ5CWMf9s= github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1/go.mod h1:pD8RvIylQ358TN4wwqatJ8rNavkEINozVn9DtGI3dfQ= +github.com/minio/minlz v1.0.1-0.20250507153514-87eb42fe8882 h1:0lgqHvJWHLGW5TuObJrfyEi6+ASTKDBWikGvPqy9Yiw= +github.com/minio/minlz v1.0.1-0.20250507153514-87eb42fe8882/go.mod h1:qT0aEB35q79LLornSzeDH75LBf3aH1MV+jB5w9Wasec= github.com/minio/sha256-simd v0.0.0-20190131020904-2d45a736cd16/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= github.com/minio/sha256-simd v0.0.0-20190328051042-05b4dd3047e5/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= github.com/minio/sha256-simd v0.1.1-0.20190913151208-6de447530771/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= @@ -625,12 +652,16 @@ github.com/pion/datachannel v1.5.10/go.mod h1:p/jJfC9arb29W7WrxyKbepTU20CFgyx5oL github.com/pion/dtls/v2 v2.2.7/go.mod h1:8WiMkebSHFD0T+dIU+UeBaoV7kDhOW5oDCzZ7WZ/F9s= github.com/pion/dtls/v2 v2.2.12 h1:KP7H5/c1EiVAAKUmXyCzPiQe5+bCJrpOeKg/L05dunk= github.com/pion/dtls/v2 v2.2.12/go.mod h1:d9SYc9fch0CqK90mRk1dC7AkzzpwJj6u2GU3u+9pqFE= +github.com/pion/dtls/v3 v3.1.5 h1:9xJtVsHwMYeSjPp5Hh1FTis4DchnQWtnOa5o+6ygqfc= +github.com/pion/dtls/v3 v3.1.5/go.mod h1:gz1K4jg6c+fq86oQMH4pilpCEOEPwmEr2jY+VcF/mkU= github.com/pion/ice/v2 v2.3.37 h1:ObIdaNDu1rCo7hObhs34YSBcO7fjslJMZV0ux+uZWh0= github.com/pion/ice/v2 v2.3.37/go.mod h1:mBF7lnigdqgtB+YHkaY/Y6s6tsyRyo4u4rPGRuOjUBQ= github.com/pion/interceptor v0.1.37 h1:aRA8Zpab/wE7/c0O3fh1PqY0AJI3fCSEM5lRWJVorwI= github.com/pion/interceptor v0.1.37/go.mod h1:JzxbJ4umVTlZAf+/utHzNesY8tmRkM2lVmkS82TTj8Y= github.com/pion/logging v0.2.2 h1:M9+AIj/+pxNsDfAT64+MAVgJO0rsyLnoJKCqf//DoeY= github.com/pion/logging v0.2.2/go.mod h1:k0/tDVsRCX2Mb2ZEmTqNa7CWsQPc+YYCB7Q+5pahoms= +github.com/pion/logging v0.2.4 h1:tTew+7cmQ+Mc1pTBLKH2puKsOvhm32dROumOZ655zB8= +github.com/pion/logging v0.2.4/go.mod h1:DffhXTKYdNZU+KtJ5pyQDjvOAh/GsNSyv1lbkFbe3so= github.com/pion/mdns v0.0.12 h1:CiMYlY+O0azojWDmxdNr7ADGrnZ+V6Ilfner+6mSVK8= github.com/pion/mdns v0.0.12/go.mod h1:VExJjv8to/6Wqm1FXK+Ii/Z9tsVk/F5sD/N70cnYFbk= github.com/pion/randutil v0.1.0 h1:CFG1UdESneORglEsnimhUjf33Rwjubwj6xfiOXBa3mA= @@ -651,6 +682,8 @@ github.com/pion/stun v0.6.1 h1:8lp6YejULeHBF8NmV8e2787BogQhduZugh5PdhDyyN4= github.com/pion/stun v0.6.1/go.mod h1:/hO7APkX4hZKu/D0f2lHzNyvdkTGtIy3NDmLR7kSz/8= github.com/pion/stun/v2 v2.0.0 h1:A5+wXKLAypxQri59+tmQKVs7+l6mMM+3d+eER9ifRU0= github.com/pion/stun/v2 v2.0.0/go.mod h1:22qRSh08fSEttYUmJZGlriq9+03jtVmXNODgLccj8GQ= +github.com/pion/stun/v3 v3.1.7 h1:uRXMTlGLf89WgItGNyZ6aR5jMTX0NBbybXADpQCzn+E= +github.com/pion/stun/v3 v3.1.7/go.mod h1:Nq77RW4aRrSNrltf2ksUJLjxWeipj4lnlgdsYIxC8g8= github.com/pion/transport/v2 v2.2.1/go.mod h1:cXXWavvCnFF6McHTft3DWS9iic2Mftcz1Aq29pGcU5g= github.com/pion/transport/v2 v2.2.3/go.mod h1:q2U/tf9FEfnSBGSW6w5Qp5PFWRLRj3NjLhCCgpRK4p0= github.com/pion/transport/v2 v2.2.4/go.mod h1:q2U/tf9FEfnSBGSW6w5Qp5PFWRLRj3NjLhCCgpRK4p0= @@ -659,6 +692,8 @@ github.com/pion/transport/v2 v2.2.10/go.mod h1:sq1kSLWs+cHW9E+2fJP95QudkzbK7wscs github.com/pion/transport/v3 v3.0.1/go.mod h1:UY7kiITrlMv7/IKgd5eTUcaahZx5oUN3l9SzK5f5xE0= github.com/pion/transport/v3 v3.0.7 h1:iRbMH05BzSNwhILHoBoAPxoB9xQgOaJk+591KC9P1o0= github.com/pion/transport/v3 v3.0.7/go.mod h1:YleKiTZ4vqNxVwh77Z0zytYi7rXHl7j6uPLGhhz9rwo= +github.com/pion/transport/v4 v4.1.0 h1:8S+nF2reM2cJuqC6g78OVy2BBgmbdns+acx3jA97BvQ= +github.com/pion/transport/v4 v4.1.0/go.mod h1:06hFI+jCFcok2X2MekVufNZ/uzNZXivGBPfviSVcjgM= github.com/pion/turn/v2 v2.1.3/go.mod h1:huEpByKKHix2/b9kmTAM3YoX6MKP+/D//0ClgUYR2fY= github.com/pion/turn/v2 v2.1.6 h1:Xr2niVsiPTB0FPtt+yAWKFUkU1eotQbGgpTIld4x1Gc= github.com/pion/turn/v2 v2.1.6/go.mod h1:huEpByKKHix2/b9kmTAM3YoX6MKP+/D//0ClgUYR2fY= @@ -764,6 +799,8 @@ github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSS github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= +github.com/stretchr/objx v0.5.3 h1:jmXUvGomnU1o3W/V5h2VEradbpJDwGrzugQQvL0POH4= +github.com/stretchr/objx v0.5.3/go.mod h1:rDQraq+vQZU7Fde9LOZLr8Tax6zZvy4kuNKF+QYS+U0= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -777,6 +814,8 @@ github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXl github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= +github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= +github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= github.com/subosito/gotenv v1.3.0 h1:mjC+YW8QpAdXibNi+vNWgzmgBH4+5l5dCXv8cNysBLI= github.com/subosito/gotenv v1.3.0/go.mod h1:YzJjq/33h7nrwdY+iHMhEOEEbW0ovIz0tB6t6PwAXzs= github.com/supranational/blst v0.3.16 h1:bTDadT+3fK497EvLdWRQEjiGnUtzJ7jjIUMF0jqwYhE= @@ -829,12 +868,18 @@ go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= go.opentelemetry.io/otel v1.41.0 h1:YlEwVsGAlCvczDILpUXpIpPSL/VPugt7zHThEMLce1c= go.opentelemetry.io/otel v1.41.0/go.mod h1:Yt4UwgEKeT05QbLwbyHXEwhnjxNO6D8L5PQP51/46dE= +go.opentelemetry.io/otel v1.46.0 h1:FHt5/CDyVxi/8IM1CH7VE/rRgq3kLHa2mSTVMO8AWyc= +go.opentelemetry.io/otel v1.46.0/go.mod h1:Gj3SEScelsNC45tp4nSxRYlS+f5iez7W8XPMCt905kE= go.opentelemetry.io/otel/metric v1.41.0 h1:rFnDcs4gRzBcsO9tS8LCpgR0dxg4aaxWlJxCno7JlTQ= go.opentelemetry.io/otel/metric v1.41.0/go.mod h1:xPvCwd9pU0VN8tPZYzDZV/BMj9CM9vs00GuBjeKhJps= +go.opentelemetry.io/otel/metric v1.46.0 h1:yBnkXvgV7AXFILZc5K6IZe/CBFF3OS7BJ8ov6/lj0K8= +go.opentelemetry.io/otel/metric v1.46.0/go.mod h1:iPmdWqifKUdzziPkvvzIJXITl56fQx2mGM/DHLB3/2o= go.opentelemetry.io/otel/sdk v1.40.0 h1:KHW/jUzgo6wsPh9At46+h4upjtccTmuZCFAc9OJ71f8= go.opentelemetry.io/otel/sdk v1.40.0/go.mod h1:Ph7EFdYvxq72Y8Li9q8KebuYUr2KoeyHx0DRMKrYBUE= go.opentelemetry.io/otel/trace v1.41.0 h1:Vbk2co6bhj8L59ZJ6/xFTskY+tGAbOnCtQGVVa9TIN0= go.opentelemetry.io/otel/trace v1.41.0/go.mod h1:U1NU4ULCoxeDKc09yCWdWe+3QoyweJcISEVa1RBzOis= +go.opentelemetry.io/otel/trace v1.46.0 h1:OULy7ccdJnZtJ0UDYFOIGaCmiWzJ8Vi2G/Rsu60qs1c= +go.opentelemetry.io/otel/trace v1.46.0/go.mod h1:J7GAXweO77XSFkB/rmAqk9D6ihszhFjLU+d9WuUxDLI= go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/dig v1.18.0 h1:imUL1UiY0Mg4bqbFfsRQO5G4CGRBec/ZujWTvSVp3pw= @@ -855,6 +900,8 @@ go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI= go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= +go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= +go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= go4.org v0.0.0-20180809161055-417644f6feb5/go.mod h1:MkTOUMDaeVYJUOUsaDXIhWPZYa1yOyC1qaOBpL57BhE= golang.org/x/build v0.0.0-20190111050920-041ab4dc3f9d/go.mod h1:OWs+y06UdEOHN4y+MfF/py+xQ/tYqIWW03b70/CG9Rw= golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -882,6 +929,8 @@ golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98y golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/crypto v0.47.0 h1:V6e3FRj+n4dbpw86FJ8Fv7XVOql7TEwpHapKoMJ/GO8= golang.org/x/crypto v0.47.0/go.mod h1:ff3Y9VzzKbwSSEzWqJsJVBnWmRwRSHt/6Op5n9bQc4A= +golang.org/x/crypto v0.55.0 h1:+KWHjbgOaAQ66dh/YlkZKHlz9ZUlq61AFirAR9ntP8M= +golang.org/x/crypto v0.55.0/go.mod h1:uq0V9dE/fzQuJtbnL+2EhWOE63vo164FY8xqEnV9xis= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -923,6 +972,8 @@ golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91 golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.31.0 h1:HaW9xtz0+kOcWKwli0ZXy79Ix+UW/vOfmWI5QVd2tgI= golang.org/x/mod v0.31.0/go.mod h1:43JraMp9cGx1Rx3AqioxrbrhNsLl2l/iNAvuBkrezpg= +golang.org/x/mod v0.39.0 h1:UF5zwQdCRRUpHfyPwr7d4UrGiVeldIsogtzWVnczL74= +golang.org/x/mod v0.39.0/go.mod h1:bvIbwjQ0HUFFf5AKukeeYQG4ZBUG9yxQbR9aEweIwYY= golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -973,6 +1024,8 @@ golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= golang.org/x/net v0.49.0 h1:eeHFmOGUTtaaPSGNmjBKpbng9MulQsJURQUAfUwY++o= golang.org/x/net v0.49.0/go.mod h1:/ysNB2EvaqvesRkuLAyjI1ycPZlQHM3q01F02UY/MV8= +golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To= +golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= @@ -1000,6 +1053,8 @@ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4= golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek= +golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= golang.org/x/sys v0.0.0-20180810173357-98c5dad5d1a0/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1070,8 +1125,12 @@ golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.40.0 h1:DBZZqJ2Rkml6QMQsZywtnjnnGvHza6BTfYFWY9kjEWQ= golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs= +golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= golang.org/x/telemetry v0.0.0-20251203150158-8fff8a5912fc h1:bH6xUXay0AIFMElXG2rQ4uiE+7ncwtiOdPfYK1NK2XA= golang.org/x/telemetry v0.0.0-20251203150158-8fff8a5912fc/go.mod h1:hKdjCMrbv9skySur+Nek8Hd0uJ0GuxJIoIX2payrIdQ= +golang.org/x/telemetry v0.0.0-20260811182544-a038080d80e5 h1:ZUSxONxc981v7AW7QUg+I9WwZzSTTJ019ENBYr5pV/Q= +golang.org/x/telemetry v0.0.0-20260811182544-a038080d80e5/go.mod h1:LVehoXe41cL5SCVQilsV7Gg6BNG+Js6P9PhSbYTIUkQ= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -1082,6 +1141,8 @@ golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/term v0.39.0 h1:RclSuaJf32jOqZz74CkPA9qFuVTX7vhLlpfj/IGWlqY= golang.org/x/term v0.39.0/go.mod h1:yxzUCTP/U+FzoxfdKmLaA0RV1WgE0VY7hXBwKtY/4ww= +golang.org/x/term v0.45.0 h1:NwWyBmoJCbfTHpxrWoZ9C6/VxOf7ic219I8xZZFdrf0= +golang.org/x/term v0.45.0/go.mod h1:9aqxs0blBcrm/n0L9QW0aRVD+ktan8ssZromtqJC43w= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1096,6 +1157,8 @@ golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.33.0 h1:B3njUFyqtHDUI5jMn1YIr5B0IE2U0qck04r6d4KPAxE= golang.org/x/text v0.33.0/go.mod h1:LuMebE6+rBincTi9+xWTY8TztLzKHc/9C1uBCG27+q8= +golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8= +golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1104,6 +1167,8 @@ golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxb golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.9.0 h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY= golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/time v0.14.0 h1:MRx4UaLrDotUKUdCIqzPC48t1Y9hANFKIRpNx+Te8PI= +golang.org/x/time v0.14.0/go.mod h1:eL/Oa2bBBK0TkX57Fyni+NgnyQQN4LitPmob2Hjnqw4= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -1165,6 +1230,8 @@ golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.40.0 h1:yLkxfA+Qnul4cs9QA3KnlFu0lVmd8JJfoq+E41uSutA= golang.org/x/tools v0.40.0/go.mod h1:Ik/tzLRlbscWpqqMRjyWYDisX8bG13FrdXp3o4Sr9lc= +golang.org/x/tools v0.49.0 h1:3NI7VXzL9+1WZD52Dx2ttoPwD5DWrFGpl9mFZDlmisI= +golang.org/x/tools v0.49.0/go.mod h1:SJNXV9DBKT0UbdttsQjbfJlAE/q+y36++zo3uL3N0Oo= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -1277,6 +1344,8 @@ google.golang.org/protobuf v1.28.2-0.20220831092852-f930b1dc76e8 h1:KR8+MyP7/qOl google.golang.org/protobuf v1.28.2-0.20220831092852-f930b1dc76e8/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= +google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc= +google.golang.org/protobuf v1.36.12/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/pkg/chain/ethereum/ethereum_block_hash_test.go b/pkg/chain/ethereum/ethereum_block_hash_test.go new file mode 100644 index 0000000000..13272c29ea --- /dev/null +++ b/pkg/chain/ethereum/ethereum_block_hash_test.go @@ -0,0 +1,66 @@ +package ethereum + +import ( + "context" + "encoding/json" + "fmt" + "os" + "testing" + + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/ethclient" + "github.com/ethereum/go-ethereum/rpc" +) + +// headerHashFixtureRPC serves the original JSON response rather than marshaling +// types.Header, which would hide fields an older geth decoder does not know. +type headerHashFixtureRPC struct { + header json.RawMessage +} + +func (s *headerHashFixtureRPC) GetBlockByNumber( + _ context.Context, + number string, + fullTransactions bool, +) (json.RawMessage, error) { + if number != "0xb8652b" || fullTransactions { + return nil, fmt.Errorf("unexpected block request: %s, %t", number, fullTransactions) + } + return s.header, nil +} + +// TestGetBlockHashByNumber_Glamsterdam guards the hash used by wallet +// coordination against dropping post-fork header fields during JSON decoding. +func TestGetBlockHashByNumber_Glamsterdam(t *testing.T) { + fixture, err := os.ReadFile("testdata/sepolia-glamsterdam-header-12084523.json") + if err != nil { + t.Fatal(err) + } + var response struct { + Result json.RawMessage `json:"result"` + } + if err := json.Unmarshal(fixture, &response); err != nil { + t.Fatal(err) + } + + server := rpc.NewServer() + if err := server.RegisterName("eth", &headerHashFixtureRPC{response.Result}); err != nil { + t.Fatal(err) + } + t.Cleanup(server.Stop) + client := ethclient.NewClient(rpc.DialInProc(server)) + t.Cleanup(client.Close) + + chain := &baseChain{client: client} + hash, err := chain.GetBlockHashByNumber(12_084_523) + if err != nil { + t.Fatal(err) + } + + // This is the canonical hash reported by the real RPC response, not one + // derived from the locally decoded header under test. + expected := common.HexToHash("0x1f1aade90c33979d5d0689c08d6ae81d2b075ea6e7834de1fa1f353872abd465") + if common.Hash(hash) != expected { + t.Fatalf("unexpected coordination block hash: got %x, want %x", hash, expected) + } +} diff --git a/pkg/chain/ethereum/testdata/sepolia-glamsterdam-header-12084523.json b/pkg/chain/ethereum/testdata/sepolia-glamsterdam-header-12084523.json new file mode 100644 index 0000000000..5a24815b97 --- /dev/null +++ b/pkg/chain/ethereum/testdata/sepolia-glamsterdam-header-12084523.json @@ -0,0 +1 @@ +{"jsonrpc":"2.0","result":{"baseFeePerGas":"0x11","blobGasUsed":"0x180000","blockAccessListHash":"0x285823c83994b5a78d0a9bc31ec4f618cc3963ca0ac5bd35a725fd036cab582c","difficulty":"0x0","excessBlobGas":"0x7caaa3","extraData":"0x726275696c6465722e6d6967616c6162732e657468","gasLimit":"0xbebc200","gasUsed":"0x3d77273","hash":"0x1f1aade90c33979d5d0689c08d6ae81d2b075ea6e7834de1fa1f353872abd465","logsBloom":"0xacb04748f09041d2924a2812958070b0f1f0964545034066509d4002f18380c24c0948a8e521720bb02057df46a42128988b8a24e6b3200032e20beb6828660e11c4db418802e208632044bfcb3a0231046cd64821d2011809b02739d4c60181e411041633690420b3109a5b148d1f5c3622e1e2e83604211e00b2d90408236c21e63a203a5659a060d84998c80b34f4294d0fe33006f4ef410ca346012664881611f900f42c80ce49580900a510a3a08aa523416ec49678f44ec2810c024401204d9523840010630c5f2240e9104219c0b04a8a1c8c025a4110802281e1226c62908d4b069f711a8ca4d1086c118720a982039449a01220a3c048001809caeb","miner":"0x421df94fe5cb177c666df6402e7de7d368319ec3","mixHash":"0xb1cc66d37be01cc6a09b2ed4ce873e5f76cccf36efe6f104e24c2e4bc36dae41","nonce":"0x0000000000000000","number":"0xb8652b","parentBeaconBlockRoot":"0xe6e1096a2958627144655a39aeaa82df6ab9407833d6dac93a4fc1a9f7edf7c3","parentHash":"0xae39debc3887bfde27baf43973165da28cf75f622bfdffa183d19836610cc07e","receiptsRoot":"0x66c9082614bb990166568eebff80c77a757d05e7c1f5696e640055463b96ecab","requestsHash":"0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","size":"0xd2d5","slotNumber":"0xafe5bd","stateRoot":"0xcfac180854e4d78cba3a424063808ed27a05f1aab7621dfc4802a9048c259c65","timestamp":"0x6aef423c","transactions":["0xed13b5c1bf182b20d2d082fffddc8a03226029a6baeb8fcfe7c90f57a2094a9a","0xdd8abcb634a1835a7ac58df447976a4ceb48494bcf21e3081cf576d3abeca74e","0xb2408e01fb64d051a0e4f36f1b23effaffe19272c2933de93271d6a14dd82289","0x9f6def65fc5e8828bdfaa14c902d4ac768707b27dac69a0cf78725c9cb160c26","0x80a0ab4b560924cd0c9bdbcacde3b54b86f6b1afbbe20a4a2c67a77367459891","0x7e35136cb88272fb11ac7e099292925090eaff40f2bbb2f1c0648cffc64bd213","0x7c7b5e53b06b5329713acb45555faa6434c980170b3edaf8519b0bfc5e24ddb3","0x71a6e52db6049bcdaa44dc3e681a8b8d8de693b0ef92907cf58a266ab11f7513","0x6823848e26d27a74287e8c7518577eb5bc5bc052a8a8cec020bf68389ab5ea4e","0x6128ba7952dbe96a42cdda73b4646e2049853600a2a7d87f4160fee0776b2aef","0x49612ad7239c525cfbaf64f905ec20528da5adc3ce02152cad906bd00ae5058c","0x44165904fb11dcf1bc9a0f68bb5b3582ba7f57fde9cc7cb34c64a6f8e247ceaf","0x37d0a1749791274fc8f731dc7f234b03a68a80e62982f5f3d1fac83c2dbf123e","0x319a5ec02b5daaf6c24e84922b3a29b1dd2721762e10afcd81d8b4a621fc15ce","0x2a64bc2b8b441d9dc5f90dae7086ee999a8df91d67eb23bb4e70355f214807b3","0x2a3df40218c37f2002b0f83bc3106736bb7d984d9bcc19a46970c56c24d07031","0x1c1d700232d6a6ec7dbe0de824a444e1568f5ce52b2203d758a276e5a0d18210","0x076d8e96f0a1e13208d09eee9a70b3d1b052e62dbc5daf1b7d809e75e58b9e55","0x03054d38445af6050f662761bfcaf3d8db3544c6291bfbaefeb81d0975f90710","0x5e7ac1817f5b150e886dd51430de77eb90454d360e7ff83b2f34f2aafca6369d","0xd200235b09a7b0be085ca2125f78793b2441eac26f60830d57e840c40bf24c99","0xd1e85cadc9bbe1b6d5cf9557b27c78fd10af35d94982fd2dd0a9accbb4e8dab0","0xc0444e649b7603e8ccc500baff682f79e17bb5aebfe876db71c92e862c120589","0x002ab8c3676b78d2c438dd7f9f41739bfa6c7e61e0f453062e45d772bed10df5","0x3bd76f822af8057b14760a825e9667de7d114547835721c77f159c1568162438","0x856d3c30ec79e06c3cfb4db88341a0137e9deeb92e4a5860f587a510e87544e5","0xc994f743fd57780f5d95c92e539d6001491edfb373a6cbda0605b142aa42078e","0x5d805ec918c57a94a13a737a3041ebee7d9454b4d9c40fe846b4b22f8d501ce4","0x9b802494de8351d3b2af430966b87545efce4bf3d5bb0d2d4148e8cf671dc73b","0xf52a23ed97fba41460b45d65ce2b766b73ed23be09ea256dd1f4a2dd861ef0f4","0x8160befeca43999a4c51470023767f7d2f6f6b59a1435f08be57ffc8578d703d","0xd2ee7d0bf05a32d468a0b9cf0da4a385dee8e7465c1388aa5bd656ed58b69dcd","0xe3d7e20529a07b8161409eb34e45f9eb7962e1e7ca86cde74d8c53be665f09bc","0xd573bb925b9372aab59e01e73f71d607e596518386836968a1ddb81767ef823b","0x74a4ff7604de076b8beb47f7c0d080f72696faa536bbe87fe66629ca04046a80","0x240369ffa602cd1a30dde18c44831eed858c42bd0def77befa10235dd74a52b9","0x6f8d7741dfd6aa120c4f873fa96e2c7b70bd34f80e539ee8589722dd2c4d62de","0x760d9ed91e35dbc90899af00262bb16dbc2ee710b750157a5e9e3d5303d748a3","0x6e0e30f282b08d330eb21fe8486999279c015e6cf696cc62fe9a637b9681906a","0x5a3f33291f1b9549428b265cba9f56f40a0ebfc3918a86e9d527827a43d8f895","0x232714e4ec0b36ac5409013ac051dcf66593dc74a55137aa96a2672c2306f320","0xd2cda65dbc7f7facfe40ebc9a90a2054177ad1e820626846610afc5a7dc4267a","0x7b86bc2a078b44a475205a4a74764a76195f8ae945c130da31d23b6ac489d71c","0x565839d3ab5e21369f483eaa43a8b6cc53c563e2401e78bafe2df2f41e85fb21","0x2cac910d3832d4e6c59a6dc85bbae7cb5a637a5f8e88519798505a0baa690f25","0xd288a4e301b667aebbe921eae2180313f6cd40000d1183ed1ec639416680f1cc","0xdcbc8819a425432fb7417bcf9c2cd93598df72c4f70da8a8958053066742f950","0xf034e53b3d247a591ee5787a35fe3c68f5ff758e7cc50473be39d0719317e3fa","0xc6d7d0a4815222c28c118301cf664a55303266a11522ce4e91b05f9910ab2651","0x48593ad8959402217f8291ddf1e2526f8f633b5b391d4bc392b54262b971ed2b","0xb869178858b12d3dccda6bc245aa0efbc70bbb1268e89ee7cec27e1b1cfee04a","0x42b054f3d61d13bcb9e358c45f1b05092fc276483a5b14f60a016f9ce6909daf","0x22e53f0c7eef22090f44bb093be9c820a27bcefc027e55e5947ce5a21e338e23","0xe733402bb0f38c165f21866b316a0cb817fde5092e9bb0d18cd75fcb683a3135","0x57dafc5fc3a90eda1a65b20d74ae5ccc900b341250ed3094b016f1409052ccf2","0xf952764ca567db9fa8d7d99631453214837ad2c3500534bb7a16dff778a2d917","0x59b60f7c4d38a81e2233159802e738b7e79671d54fc269b834ae50476ab6de2e","0x508e02e210ad218ec724d6d077a0a8b2b33fa71d73a803d7b20b87399715c318","0xfcdbb2931f5dd9e68e91c10b5c4a02bb337fbb401448f434fe8101447b610673","0xfa4ea2822963d1f6c246debac657ec9200c53d05781aae898ff725e23d60d05f","0xca695f676273556144642b409cfbc2b4a2458c56eb5ad81c7b1b0ef14da4e8d5","0xbc501d68a6ca6c8a26de2eb4241c4810b27f8c3d585fdf99ed8c6d302b78e398","0x4eb3b0aa41529bbba75c6783e0d1ae1e410240d26a045244005b0a92e2481ba7","0x2de080f22f3c6ba0fea539d2b037e70e3b975ca4dd3d58afa3f6856d0b7c9c36","0xbc7a0d4815fd21ea9e5f249e4039e9ef268d98abc8f9b3eb5131f80dbbfa0b88","0x8b1653fe013e5ed5de4b98946810ed7e4685938d81fe97b4ba884bc77ec2fe5c","0xc76d837c9a01bd3a5ee84bc32d77a9a81eb6dc3dc5b9269fbf02c4f71f4edc79","0xb3df13d5bd085211f7149664617beafbe0f9fc8920c65483b8bd56f2c569a53a","0xba91026c3b37ceb1600971e6d26c85dc2e87b17eafdf5f46585449bf600873c9","0x13df51ae9ec9def52927b899006c4f4bb28a893778d3f004312f2449634472a0","0x4dca8fb9be5f07a62b0a9b5fba0ba1608b0072c4d0a2e9df7ec0493e08e0c2c0","0xfe3db3ee75599aaf28b7b28fe73af96ba969379951c4ebdfa2a44a74a48cfbfd","0xed60084459d935770de30afa7256f506d6a14870131cb123eec1f5730e5ade5d","0xc01c2c3735b58fbc6ee2b7409576d79b6811a7ceb64458380ea056a15e7714fb","0x60321e831dabe2c12f509f907e123617b896e7c8c9b0a1d64cf66fc4e6862535","0x398bb318d8fee258a7e0587f7d43b3cc8cf50d738022fa3558ec7db18ddc32f2","0x5c4aee7aa905b3569b51e1d63c32df8fda2181b1193562961f83e6f5a74875f9","0x939be7bc93ac7fc618f5d3b825b8b36a22427c5169ad31143a25c797785e4023","0xdcd58c4b87d94157144538c3c42acdb523a50b9c310aee9b1f77ac28ebe2df17","0xee3606897f8f5a3670b5b16a4857d48b6c9c5a79f1db151e0950f337b002b60f","0xe1f769d78446c0b8dfd34f23fd28f481a626b653ccba291fa1369f99e841560c","0x8f043f00b1d3bc31afc4a5e846174ce8e482771f70414eb6fb8192ed7e18eb4e","0x499deb76ad49caffb14f9fdd4aa9986d180ffc04e87644cb11ae7ee22678796e","0x3bbdc0e9f75fefa03e84146d0ae3496c3ef5a5748993230fa3bb2ec6cf173d1c","0x75071dee5492442f4de67504f360483b2bb031050ef98d737a4514b429249a9f","0x1354b38abdce177209e898558c3e19e57d1b5ac2252c201472f081a9f6f1cce5","0xbb49c6249400aa9171007cc7aeff541a4ad99ab1ba0a1fb0324cee1f0df0090f","0x996e512632c07231cc16399cfa21ab3bc2462597f4174b3e3d4ba48f504989d7","0x0ab3c77ec815cfd38b13bf06c707814b690016c01ba01c02fb9c1589abb676af","0x98a62f6b14f85f7809e0465bb5195afed126c9af4be99bdc85620253672359e2","0x97cb8301c11e9f37ebc712a66d7d8ae61e1f71228259819070a7085a94898607","0xe041a25cfdd4ee24a696dfcf7d10b527ab466e23ad95d3c0ed4d016be3cf3165","0x9c2035fec49bebdf4fcdac6a797c1fa6e52a96a45e2cd9655afb2c8b39ec2452","0xba26ba8c3138266e127e3e8cf6554c63ecd6f72cd36f119f7941d2ce9de5004b","0x8801d55f5686ddec1e1316391a9757bc50af48374496e1a2b3a305dd5807e256","0x7f24e6ec5858f397629351bf48663ebcdb28da76baa8e609e114346ef1ca0912","0x62c8b90d296de96e9a69d5a63ee27ee7219ac22cb7d1067a526368a1cf553f4b","0xf40f15121ac2333fec60a2e3803efd57cf9e0fc5651741d4e965a3e998e1bf70","0x714fc0a42b4168bf9200ee5fea7ef2ba9815bab1a0ac6db45803f73dc7c3b7b1","0x792d76804f3ac3d15c889f1e6256277c7b3a7d685dccd6fff3a3dcfe2b9a34a3","0x9fb71997b4f283cf86ef66f0af61a38f42c0ab96397d1c93dd607fc15f97c87f","0x9b1fd8c2cb9d19b14f99bcaa7fa0c70fa696cd7fa66fa494b09fac77d7c22532","0x2a254fdf16cb92f3c7b7bad777abef8076faea7a87a041572712a8068cd64208","0x1139c809d73734634bfc9ce126f973daee3116e6321e42ebfab409c6b22106c3","0x408c9e7127fc895117dae2d5a80994ca63eae3bb3322fdfea8cc6231e716d965","0x1cb08dd2f2586fe3a748136fb6d8e216c338ecf0f7babe9b8def832d1d3c1f21","0x7193057fa7319ecce1c7cbe86b8938b102648b339aa7ad4d3cf420ad14d2d820","0xc5ef79b92f46c1517a3c220ef61e29df1dd9871668b35ab35f59f2aae3fce7c4","0x15d2c9437ab78400dec22753378b482e095658bf5fecaf33afac7c05083be4cc","0x26cabf358214a8b5599002c442311c0e4667d03367821a4f424912c7b7febf1d","0x86b0d77d4c38bf946e904c5a33006122e86b07d86b4ac8edc30b54160bd03a26","0xd4f12e2e259451a6bfe77c3fac8c10a749bcae110480b724cd8bfe825147d4c4","0x5a21e466ae879774eb2e8c1f5237d1aca992f5f2c800bd5d9d0709450231eccd","0xeb7f51f2c9b3091f89d29b8b2ba11462c6464cacc26d08e949a109c2e9b086ef","0xc8afd032fbb286fae792e7d72aca44c50f132f5f54e2933615599b66c2112f63","0xeb8130723a648a51a04ee718e4a7fb08829ff6d0453c36dfa8984bc9d2ad7fbb","0x486ae6b1f980b600973ce813381fa6346427dd90e07d237edc114b618b3226f6","0x52ce5be78cb3a86cbdcd27f991e6c65c98756923dba9ebf81edef67ce3b682a0","0x7dd78e1b1c0376b282576b63586164f8809d99153da14223fdb5b533533c913e","0x982712df6aab7c84b469a5239d9ab54f8f0a94d233215cdfdaf82f5a88c3eab5","0xeaf8edc0f8028c7ffb0481ba2287d31b437ae72afb9a850188526afa273fc711","0xa37d969a402f82f4224f493216877c0f5013c1fd0af54b5b86e1ad35e32963c7","0x095a42589f6318a86b269017ac5ea71c433cc8653ee30a5526d3af8e9e9dcb2f","0x4674ae08f6bbb5cca335e3de8283db516fc5fa6325e0d8a05df8b4776a25f738","0x63ecc0848ad2159d89e51574539c851fd9f7461f788c4c780ec63ed6d6795879","0x3295321a28b4802a55697478de3c71b8dbb0f1d52d716ed2b9c11476cbd78aef","0xe7fbd9ffbc14d02f5bba2a8768ead7a3011453d0249ddbf57946b0115079e418","0xcd5ca1c9f3f0862dd801916b9b652892839745cc5a0edb433c4d958b678c5d97","0x2bbacdee4567ddd15075a2d6e666fc222d4911a6e61be083010bc479a9e88cfb","0xdc6e822e52fd163fd3a974e67bd7dad3aa5d259e6ab6c7630bf92ad8b9d7cc60","0xd4faf206250f75a6c1e02dc2e5acfa5abdb3ba100da629685829ee3c4cd1cd9e","0x91787bcd9d5df7b4878efef334e0da4dafd5e5d3c682f1bf4e87db85128a3128"],"transactionsRoot":"0x919f9839142f2f224aeaa02b9c1c0fc5a3bee214d84cdca4774cdf590c945d0f","uncles":[],"withdrawals":[{"address":"0x1268ad189526ac0b386faf06effc46779c340ee6","amount":"0x377cbb7","index":"0x8abd249","validatorIndex":"0x10000000009"},{"address":"0x25c4a76e7d118705e7ea2e9b7d8c59930d8acd3b","amount":"0x1293","index":"0x8abd24a","validatorIndex":"0x1cf"},{"address":"0x25c4a76e7d118705e7ea2e9b7d8c59930d8acd3b","amount":"0x1293","index":"0x8abd24b","validatorIndex":"0x1d2"},{"address":"0x25c4a76e7d118705e7ea2e9b7d8c59930d8acd3b","amount":"0x1293","index":"0x8abd24c","validatorIndex":"0x1d4"},{"address":"0x25c4a76e7d118705e7ea2e9b7d8c59930d8acd3b","amount":"0x1293","index":"0x8abd24d","validatorIndex":"0x1d6"},{"address":"0x25c4a76e7d118705e7ea2e9b7d8c59930d8acd3b","amount":"0x1293","index":"0x8abd24e","validatorIndex":"0x1dd"},{"address":"0x25c4a76e7d118705e7ea2e9b7d8c59930d8acd3b","amount":"0x1293","index":"0x8abd24f","validatorIndex":"0x1df"},{"address":"0x25c4a76e7d118705e7ea2e9b7d8c59930d8acd3b","amount":"0x1293","index":"0x8abd250","validatorIndex":"0x1e3"},{"address":"0x25c4a76e7d118705e7ea2e9b7d8c59930d8acd3b","amount":"0x2526","index":"0x8abd251","validatorIndex":"0x1e5"},{"address":"0x25c4a76e7d118705e7ea2e9b7d8c59930d8acd3b","amount":"0xedc","index":"0x8abd252","validatorIndex":"0x1e6"},{"address":"0x25c4a76e7d118705e7ea2e9b7d8c59930d8acd3b","amount":"0x1db8","index":"0x8abd253","validatorIndex":"0x1e9"},{"address":"0x25c4a76e7d118705e7ea2e9b7d8c59930d8acd3b","amount":"0xedc","index":"0x8abd254","validatorIndex":"0x1f1"},{"address":"0x25c4a76e7d118705e7ea2e9b7d8c59930d8acd3b","amount":"0xedc","index":"0x8abd255","validatorIndex":"0x1f3"},{"address":"0xe276bc378a527a8792b353cdca5b5e53263dfb9e","amount":"0xedc","index":"0x8abd256","validatorIndex":"0x388"},{"address":"0xe276bc378a527a8792b353cdca5b5e53263dfb9e","amount":"0xedc","index":"0x8abd257","validatorIndex":"0x38c"},{"address":"0xe276bc378a527a8792b353cdca5b5e53263dfb9e","amount":"0xedc","index":"0x8abd258","validatorIndex":"0x394"}],"withdrawalsRoot":"0x1c5a5f39bb0abb410f47b2e5e65ae803cd1b6c7988febe7f0509cc528f630c6c"},"id":1} diff --git a/pkg/chain/ethereum/testdata/sepolia-glamsterdam-header-12084523.md b/pkg/chain/ethereum/testdata/sepolia-glamsterdam-header-12084523.md new file mode 100644 index 0000000000..c798bfbcad --- /dev/null +++ b/pkg/chain/ethereum/testdata/sepolia-glamsterdam-header-12084523.md @@ -0,0 +1,28 @@ +# Sepolia Glamsterdam header fixture + +`sepolia-glamsterdam-header-12084523.json` is the complete public JSON-RPC +response for Sepolia block 12,084,523, fetched on 2026-11-07 from +`https://ethereum-sepolia-rpc.publicnode.com` using `eth_getBlockByNumber` with +parameters `["latest", false]`. The returned block's timestamp is +2026-11-07 15:22:36 UTC. Querying `["0xb8652b", false]` selects this same block +explicitly for reproduction. + +The canonical hash reported in the response is +`0x1f1aade90c33979d5d0689c08d6ae81d2b075ea6e7834de1fa1f353872abd465`. +The header includes `requestsHash`, `blockAccessListHash`, and `slotNumber`. + +The regression test serves the saved JSON directly, then exercises +`baseChain.GetBlockHashByNumber` through geth's actual JSON decoder. Serving +a constructed `types.Header` would omit fields missing from that same type +and could hide this compatibility regression. The fixture needs no live RPC. + +With geth v1.17.3, the BAL field is decoded under the old name `balHash` and +the locally computed hash is instead +`0xb0c2d2961f1c17c6ca0ee1249d088b391a6f175548585076ec2344a6a74ae63e`. +The corrected v1.17.10 decoder recognizes `blockAccessListHash` and computes +the canonical hash. + +Primary sources: + +- [geth v1.17.3 header schema](https://github.com/ethereum/go-ethereum/blob/v1.17.3/core/types/block.go#L103) +- [geth v1.17.10 header schema](https://github.com/ethereum/go-ethereum/blob/v1.17.10/core/types/block.go#L103)