Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Op-reth sync failure Base mainnet with Magi and checkpoints #7028

Closed
1 task done
CRossel87a opened this issue Mar 7, 2024 · 5 comments
Closed
1 task done

Op-reth sync failure Base mainnet with Magi and checkpoints #7028

CRossel87a opened this issue Mar 7, 2024 · 5 comments
Labels
A-op-reth Related to Optimism and op-reth A-staged-sync Related to staged sync (pipelines and stages) C-bug An unexpected or incorrect behavior

Comments

@CRossel87a
Copy link

Describe the bug

Bad block during start of stage 4 / 13:

2024-03-07T09:12:44.034299Z INFO Status connected_peers=2 freelist=15 stage=SenderRecovery checkpoint=0 target=11501544 stage_progress=None
2024-03-07T09:12:51.177201Z ERROR Stage encountered a validation error: transaction signer recovery error stage=SenderRecovery bad_block=1

Then unwinding starts:
2024-03-07T09:18:34.033730Z INFO Status connected_peers=2 freelist=15 stage=SenderRecovery checkpoint=0 target=11501544 stage_progress=None
2024-03-07T09:18:48.637900Z INFO Unwinding{stage=Bodies}: Stage unwound stage=Bodies unwind_to=0 progress=0 done=true
2024-03-07T09:18:48.921865Z INFO Unwinding{stage=TotalDifficulty}: Stage unwound stage=TotalDifficulty unwind_to=0 progress=11401543 done=false
2024-03-07T09:18:49.045141Z INFO Unwinding{stage=TotalDifficulty}: Stage unwound stage=TotalDifficulty unwind_to=0 progress=11301542 done=false

Completes:

2024-03-07T09:19:01.981552Z INFO Unwinding{stage=TotalDifficulty}: Stage unwound stage=TotalDifficulty unwind_to=0 progress=1429 done=false
2024-03-07T09:19:01.984493Z INFO Unwinding{stage=TotalDifficulty}: Stage unwound stage=TotalDifficulty unwind_to=0 progress=0 done=true

Then bad block and full stop:

2024-03-07T09:23:44.826990Z INFO Unwinding{stage=Headers}: Stage unwound stage=Headers unwind_to=0 progress=0 done=true
2024-03-07T09:23:44.929791Z WARN Bad block detected in unwind invalid_hash=0x07eee59d552f482e0f350933b8e96f824aa0bfa28267de53dcb0ddbe868a4bf9 invalid_number=1
2024-03-07T09:23:44.929840Z WARN Bad block with hash hash=0x07eee59d552f482e0f350933b8e96f824aa0bfa28267de53dcb0ddbe868a4bf9 header=Header { parent_hash: 0xf712aa9241cc24369b143cf6dce85f0902a9731e70
d66818a3a5845b296c73dd, ommers_hash: 0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347, beneficiary: 0x4200000000000000000000000000000000000011, state_root: 0xe3e10cb3963f6b88b7ba14c
c76c34de65308fc0524dca48410ee53df2a43700b, transactions_root: 0xee45a6283d626ebed087ac705c71740d7ecb276d81b745284a68b88925dc91ae, receipts_root: 0x637d9e6847368bb52b56e90dd608facc34122c153872e8733cb0
b01caa581f85, withdrawals_root: None, logs_bloom: 0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, difficulty: 0x0_U256, number: 1
, gas_limit: 30000000, gas_used: 64013, timestamp: 1686789349, mix_hash: 0xae36673a68b9370a513a06698115fd86cc7faf4d6c248a982fbc3ae29c442da2, nonce: 0, base_fee_per_gas: Some(980000000), blob_gas_used
: None, excess_blob_gas: None, parent_beacon_block_root: None, extra_data: 0x }

Steps to reproduce

Run commands:

op-reth -vvv node --chain base --rollup.sequencer-http https://sequencer.base.org --http --http.port 43433 --ws --ws.port 43434 --port 50303 --full --authrpc.port 8551 --authrpc.jwtsecret /root/base/jwt.hex --datadir /root/.basedata2/ --builder.deadline 999999

Protip: Merkle has a free eth RPC
magi --network base --jwt-file /root/base/jwt.hex --l1-rpc-url https://eth.merkle.io --l2-engine-url http://0.0.0.0:8551 --l2-rpc-url https://mainnet.base.org --rpc-port 19545 --rpc-addr 127.0.0.1 --sync-mode checkpoint --checkpoint-sync-url https://mainnet.base.org

Node logs

No response

Platform(s)

Linux (x86)

What version/commit are you on?

reth Version: 0.1.0-alpha.20

What database version are you on?

Current database version: 1
Local database version: 1

What type of node are you running?

Full via --full flag

What prune config do you use, if any?

No response

If you've built Reth from source, provide the full command you used

No response

Code of Conduct

  • I agree to follow the Code of Conduct
@CRossel87a CRossel87a added C-bug An unexpected or incorrect behavior S-needs-triage This issue needs to be labelled labels Mar 7, 2024
@CRossel87a
Copy link
Author

Same error with latest commit

@CRossel87a
Copy link
Author

The hashes seem to match up perfectly with mainnet, so the block is correct

conn.eth.get_block(1)
Out[211]:
AttributeDict({'baseFeePerGas': 980000000,
'difficulty': 0,
'extraData': HexBytes('0x'),
'gasLimit': 30000000,
'gasUsed': 64013,
'hash': HexBytes('0x07eee59d552f482e0f350933b8e96f824aa0bfa28267de53dcb0ddbe868a4bf9'),
'logsBloom': HexBytes('0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'),
'miner': '0x4200000000000000000000000000000000000011',
'mixHash': HexBytes('0xae36673a68b9370a513a06698115fd86cc7faf4d6c248a982fbc3ae29c442da2'),
'nonce': HexBytes('0x0000000000000000'),
'number': 1,
'parentHash': HexBytes('0xf712aa9241cc24369b143cf6dce85f0902a9731e70d66818a3a5845b296c73dd'),
'receiptsRoot': HexBytes('0x637d9e6847368bb52b56e90dd608facc34122c153872e8733cb0b01caa581f85'),
'sha3Uncles': HexBytes('0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347'),
'size': 870,
'stateRoot': HexBytes('0xe3e10cb3963f6b88b7ba14cc76c34de65308fc0524dca48410ee53df2a43700b'),
'timestamp': 1686789349,
'totalDifficulty': 0,
'transactions': [HexBytes('0x68736fb400dc3b69ab1c4c2cbe75a600aa7ba7cd8d025797ebd8a0108955c91f')],
'transactionsRoot': HexBytes('0xee45a6283d626ebed087ac705c71740d7ecb276d81b745284a68b88925dc91ae'),
'uncles': []})

@emhane emhane added A-staged-sync Related to staged sync (pipelines and stages) A-op-reth Related to Optimism and op-reth and removed S-needs-triage This issue needs to be labelled labels Mar 12, 2024
Copy link
Contributor

github-actions bot commented Apr 3, 2024

This issue is stale because it has been open for 21 days with no activity.

@github-actions github-actions bot added the S-stale This issue/PR is stale and will close with no further activity label Apr 3, 2024
@onbjerg onbjerg added M-prevent-stale Prevents old inactive issues/PRs from being closed due to inactivity and removed S-stale This issue/PR is stale and will close with no further activity labels Apr 3, 2024
@emhane emhane removed the M-prevent-stale Prevents old inactive issues/PRs from being closed due to inactivity label May 17, 2024
@gakonst
Copy link
Member

gakonst commented May 29, 2024

Hi what's the state of this @CRossel87a? Are you on latest commit / beta?

@CRossel87a
Copy link
Author

Hi what's the state of this @CRossel87a? Are you on latest commit / beta?

Hi,

I am not tracking this issue anymore - could not get it working back then. Will close the issue

@github-project-automation github-project-automation bot moved this from Todo to Done in Reth Tracker May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-op-reth Related to Optimism and op-reth A-staged-sync Related to staged sync (pipelines and stages) C-bug An unexpected or incorrect behavior
Projects
Archived in project
Development

No branches or pull requests

4 participants