Skip to content

Conversation

@magicxyyz
Copy link
Contributor

@magicxyyz magicxyyz commented Sep 24, 2025

Resolves NIT-3912

This PR adds tooling for benchmarking purposes. All the experimental features added are guarded by debugblock build tag.

When debugblock tag is used following configs options are exposed:

  • node.dangerous.debug-block.overwrite-chain-config - when set triggers chain config overwrite in database on startup, setting ArbitrumChainParams.AllowDebugPrecompiles to true and configuring ArbitrumChainParams.DebugBlock and ArbitrumChainParams.DebugAddress to values specified by configs described below
  • node.dangerous.debug-block.debug-blocknum - specifies the block number of the debug block we want to inject
  • node.dangerous.debug-block.debug-address - specifies the address of account that will be funded in the debug block

Pulls: OffchainLabs/go-ethereum#548

@github-actions
Copy link

github-actions bot commented Oct 3, 2025

❌ 2 Tests Failed:

Tests completed Failed Passed Skipped
2212 2 2210 0
View the top 2 failed tests by shortest run time
TestPrimaryToSecondaryFailover
Stack Traces | 5.430s run time
=== RUN   TestPrimaryToSecondaryFailover
=== PAUSE TestPrimaryToSecondaryFailover
=== CONT  TestPrimaryToSecondaryFailover
INFO [11-05|21:21:51.881] arbitrum websocket broadcast server is listening address=[::]:44295
    broadcastclients_test.go:194: Primary broadcaster listening on: [::]:44295
INFO [11-05|21:21:51.882] arbitrum websocket broadcast server is listening address=[::]:44155
    broadcastclients_test.go:195: Secondary broadcaster listening on: [::]:44155
    broadcastclients_test.go:218: Primary URL: ws://127.0.0.1:44295
    broadcastclients_test.go:219: Secondary URL: ws://127.0.0.1:44155
INFO [11-05|21:21:51.882] connecting to arbitrum inbox message broadcaster url=ws://127.0.0.1:44295
    broadcastclients_test.go:266: Phase 1: Sending messages from primary broadcaster
INFO [11-05|21:21:51.888] Feed connected                           feedServerVersion=2 chainId=1234 requestedSeqNum=0
INFO [11-05|21:21:57.095] secondary feed started                   url=ws://127.0.0.1:44155 startingFromSeq=4
INFO [11-05|21:21:57.095] connecting to arbitrum inbox message broadcaster url=ws://127.0.0.1:44155
INFO [11-05|21:21:57.096] Feed connected                           feedServerVersion=2 chainId=1234 requestedSeqNum=4
    broadcastclients_test.go:298: Timed out waiting for message 5/5 from primary
--- FAIL: TestPrimaryToSecondaryFailover (5.43s)
TestSequencerInboxReader
Stack Traces | 22.180s run time
... [CONTENT TRUNCATED: Keeping last 20 lines]
DEBUG[11-05|21:27:05.532] Journaled pathdb diff layer              root=ba67dd..fd8549 parent=8dfe27..b66bbb id=32                 block=31
DEBUG[11-05|21:27:05.532] Journaled pathdb diff layer              root=de55ab..0443d2 parent=ba67dd..fd8549 id=33                 block=32
DEBUG[11-05|21:27:05.532] Journaled pathdb diff layer              root=4743c6..9182db parent=de55ab..0443d2 id=34                 block=33
DEBUG[11-05|21:27:05.532] Journaled pathdb diff layer              root=6f68c9..e6a4de parent=4743c6..9182db id=35                 block=34
DEBUG[11-05|21:27:05.532] Journaled pathdb diff layer              root=284658..f23922 parent=6f68c9..e6a4de id=36                 block=35
DEBUG[11-05|21:27:05.532] Journaled pathdb diff layer              root=93c739..fcf22b parent=284658..f23922 id=37                 block=36
DEBUG[11-05|21:27:05.532] Journaled pathdb diff layer              root=75848b..8ee321 parent=93c739..fcf22b id=38                 block=37
DEBUG[11-05|21:27:05.532] Journaled pathdb diff layer              root=af3d9a..f81d2c parent=75848b..8ee321 id=39                 block=38
DEBUG[11-05|21:27:05.532] Journaled pathdb diff layer              root=4f3d29..5d4c1d parent=af3d9a..f81d2c id=40                 block=39
DEBUG[11-05|21:27:05.532] Journaled pathdb diff layer              root=f17618..3a6c30 parent=4f3d29..5d4c1d id=41                 block=40
DEBUG[11-05|21:27:05.533] Journaled pathdb diff layer              root=2c3e51..9bcc24 parent=f17618..3a6c30 id=42                 block=41
DEBUG[11-05|21:27:05.533] Journaled pathdb diff layer              root=9c2fc7..9e7197 parent=2c3e51..9bcc24 id=43                 block=42
DEBUG[11-05|21:27:05.533] Journaled pathdb diff layer              root=79f56a..c5cfc4 parent=9c2fc7..9e7197 id=44                 block=43
DEBUG[11-05|21:27:05.533] Journaled pathdb diff layer              root=1c7cc7..f723ea parent=79f56a..c5cfc4 id=45                 block=44
DEBUG[11-05|21:27:05.533] Journaled pathdb diff layer              root=aebd19..a17650 parent=1c7cc7..f723ea id=46                 block=45
DEBUG[11-05|21:27:05.533] Journaled pathdb diff layer              root=8ec484..5fb157 parent=aebd19..a17650 id=47                 block=46
INFO [11-05|21:27:05.533] Persisted dirty state to disk            size=216.14KiB elapsed=3.563ms
INFO [11-05|21:27:05.533] Blockchain stopped
TRACE[11-05|21:27:05.533] P2P networking is spinning down
--- FAIL: TestSequencerInboxReader (22.18s)

📣 Thoughts on this report? Let Codecov know! | Powered by Codecov

Copy link
Contributor

@gligneul gligneul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@magicxyyz magicxyyz requested a review from gligneul November 5, 2025 21:44
gligneul
gligneul previously approved these changes Nov 6, 2025
@gligneul gligneul assigned tsahee and unassigned gligneul Nov 6, 2025
gligneul
gligneul previously approved these changes Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants