fix(e2e): make EVM transaction sending reliable under concurrent load #1550
<!-- dependency-review:govulncheck -->
Vulnerable dependencies
11 advisories across 1 library need attention, 2 accepted.
:rotating_light: Needs attention
Go standard library
In use: go1.26.6, go0.58.0 — reached from cli, e2e, gen/go/solidity-abi
| Advisory | CVE | Fixed in | Summary |
|---|---|---|---|
| GO-2026-6599 | CVE-2026-94448 | go1.26.9 | Reset context tracking on consecutive template expressions in html/template |
| GO-2026-6600 | CVE-2026-97030 | go1.26.9 | Recognize yield as regexp preceder keyword in html/template |
| GO-2026-6603 | CVE-2026-78659 | go1.26.9 | HTTP/2 server memory exhaustion due to Trailer headers in net/http |
| GO-2026-6605 | CVE-2026-56866 | go1.26.9 | HTTP/1 client connection desynchronization after CONNECT rejection in net/http |
| GO-2026-6607 | CVE-2026-97031 | go1.26.9 | Reject malformed ECH outer extension references in crypto/tls |
| GO-2026-6608 | CVE-2026-94440 | go1.26.9 | Memory limit bypass when parsing MIME headers in net/textproto, mime/multipart |
| GO-2026-6610 | CVE-2026-78660 | go1.26.9 | HTTP/2 transport accepts malformed framing-related headers in net/http |
| GO-2026-6611 | CVE-2026-78669 | go1.26.9 | Excessive CPU consumption from repeated initial window changes in net/http |
| GO-2026-6612 | CVE-2026-78663 | go1.26.9 | Double flow control refund on HTTP/2 server streams in net/http |
| GO-2026-6613 | CVE-2026-94439 | go1.26.9 | HTTP/1 server connection desynchronization after 2xx CONNECT response in net/http |
| GO-2026-6617 | CVE-2026-97032 | go1.26.9 | HTTP/2 server crash due to HPACK encoder race in net/http |
Run make vulncheck for the call paths. Either upgrade the library, or add the
advisory to .govulncheck-ignore with a reason if no fix exists yet.
Accepted
Listed in .govulncheck-ignore with a reason.
github.com/pion/dtls/v2
In use: v2.2.12 — reached from cli, e2e
| Advisory | CVE | Fixed in | Summary |
|---|---|---|---|
| GO-2026-4479 | CVE-2026-26014 | no fix yet | Usage of random nonce generation with AES GCM ciphers risks leaking the authentication key in github.com/pion/dtls |
golang.org/x/crypto
In use: v0.56.0 — reached from cli, e2e
| Advisory | CVE | Fixed in | Summary |
|---|---|---|---|
| GO-2026-5932 | — | no fix yet | The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues |
<sub>From make vulncheck-json on this run: logs.</sub>
<!-- greptile_summary -->
<h2><a href="https://app.greptile.com/api/retrigger?id=79385260"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a>Confidence Score: 4/5</h2>
[Medium impact] Refactors EVM transaction sending for concurrent load handling\.
The PR appears safe to merge, with a non-blocking gap in tests for concurrent transaction sends.
<h2>Findings</h2>
1. <img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"> Concurrent sends lack test coverage <a href="https://github.com/cosmos/ibc/pull/1550#discussion_r4252051279">▶</a>
<h3>Summary</h3>
This PR makes harness transaction sends more resilient under concurrent load.
<details><summary><h3>Diagram</h3></summary>
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[BroadcastTx] --> B[Acquire account gate]
B --> C[Read nonce and build transaction]
C --> D[Retry submission within budget]
D --> E{Refused after unanswered attempt?}
E -->|Yes| F[Look up transaction hash]
F -->|Known| G[Release account gate]
F -->|Missing| H[Return error]
E -->|No, submitted| G
G --> I[Poll receipt with separate budget]
I --> J[Raise account nonce floor]
J --> K{Receipt succeeded?}
K -->|Yes| L[Return receipt]
K -->|No| H
</details>
<!-- greptile_confidence_score:4 -->
<sub>Reviews (1) · Last reviewed commit: "fix(harness): send EVM transactions safe..." · Reviewed by Greptile</sub>
<a href="#"><img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"></a> Concurrent sends lack test coverage
TestTransactionSerializationIsPerSender checks the gates directly, while the new BroadcastTx tests send transactions one at a time. These tests can pass if unrelated accounts block each other or overlapping same-account sends use the wrong nonce.
Add fake-node tests that stall one account's submission while another completes, and overlap sends from one account while checking the submitted nonces. This is a non-blocking test gap.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Approved these changes.
dhfang
gjermundgaraba
Summary
First of the load-test stack: #1550 → #1551 → #1552 → #1553. It's useful on its own: these are harness bugs on main that only show up with many concurrent senders, which the load test (#1553) produces and the e2e suite doesn't.
With many concurrent senders, harness transactions hung on requests the node never answered, were refused with "Nonce too low", reverted during gas estimation, or failed to connect. This makes sending reliable under that load:
Retryis exported so other readers share these rules.RateLimiterthen underflows.Dialshares one HTTP transport that reuses connections and caps them at 128 per node, so extra callers queue instead of piling onto the container runtime's port forwarding. (The CLI's pool in #1547 only keeps idle connections, up to 256, without a cap.) Besu accepts up to 1024 active RPC connections instead of 80.Timing.TransactionWaitis the one mapping from a Chain's timing to a transaction budget.Test plan
go test ./internal/harness/chain/... ./internal/harness/environment/ine2e/, including new send tests against a fake node (stalled requests, refused resends, the nonce floor, estimate fallback)golangci-lint run ./...ine2e/E2E_MODE=complete) passed on #1551 and #1553, which include this change🤖 Generated with Claude Code