-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Description
Describe the bug
I have an OP stack running for several months, and both the batcher and proposer ran out of funds a month ago.
After topping up both accounts, the batcher is running fine again, but the proposer is unable to send txns to Sepolia due to this error:
t=2023-10-27T07:57:41+0000 lvl=info msg="Creating tx" service=proposer to=0x3B3f74F4385F31206E2482d0E7775a826B7c14b3 from=0x74a0a887f46927Aa8F20F947C795Da36984e5115
t=2023-10-27T07:57:41+0000 lvl=eror msg="Failed to send proposal transaction" err="failed to create the tx: failed to estimate gas: execution reverted: L2OutputOracle: block hash does not match the hash at the expected height" l1blocknum=4,417,789 l1blockhash=0xdd48feed5428ae9da110325dd01ec26c0b9ccf9e93af4d2428e40dc5246d477f l1head=4,572,075
t=2023-10-27T07:57:41+0000 lvl=dbug msg="waiting for l1 head > l1blocknum1+1" l1head=4,572,077 l1blocknum=4,572,078
t=2023-10-27T07:57:54+0000 lvl=dbug msg="waiting for l1 head > l1blocknum1+1" l1head=4,572,078 l1blocknum=4,572,078
t=2023-10-27T07:58:06+0000 lvl=info msg="Creating tx" service=proposer to=0x3B3f74F4385F31206E2482d0E7775a826B7c14b3 from=0x74a0a887f46927Aa8F20F947C795Da36984e5115
t=2023-10-27T07:58:06+0000 lvl=eror msg="Failed to send proposal transaction" err="failed to create the tx: failed to estimate gas: execution reverted: L2OutputOracle: block hash does not match the hash at the expected height" l1blocknum=4,417,789 l1blockhash=0xdd48feed5428ae9da110325dd01ec26c0b9ccf9e93af4d2428e40dc5246d477f l1head=4,572,077
t=2023-10-27T07:58:06+0000 lvl=dbug msg="waiting for l1 head > l1blocknum1+1" l1head=4,572,079 l1blocknum=4,572,080
t=2023-10-27T07:58:18+0000 lvl=dbug msg="waiting for l1 head > l1blocknum1+1" l1head=4,572,080 l1blocknum=4,572,080
t=2023-10-27T07:58:30+0000 lvl=info msg="Creating tx" service=proposer to=0x3B3f74F4385F31206E2482d0E7775a826B7c14b3 from=0x74a0a887f46927Aa8F20F947C795Da36984e5115
t=2023-10-27T07:58:30+0000 lvl=eror msg="Failed to send proposal transaction" err="failed to create the tx: failed to estimate gas: execution reverted: L2OutputOracle: block hash does not match the hash at the expected height" l1blocknum=4,417,789 l1blockhash=0xdd48feed5428ae9da110325dd01ec26c0b9ccf9e93af4d2428e40dc5246d477f l1head=4,572,079
t=2023-10-27T07:58:30+0000 lvl=dbug msg="waiting for l1 head > l1blocknum1+1" l1head=4,572,081 l1blocknum=4,572,082
t=2023-10-27T07:58:42+0000 lvl=dbug msg="waiting for l1 head > l1blocknum1+1" l1head=4,572,082 l1blocknum=4,572,082
t=2023-10-27T07:58:55+0000 lvl=info msg="Creating tx" service=proposer to=0x3B3f74F4385F31206E2482d0E7775a826B7c14b3 from=0x74a0a887f46927Aa8F20F947C795Da36984e5115
t=2023-10-27T07:58:55+0000 lvl=eror msg="Failed to send proposal transaction" err="failed to create the tx: failed to estimate gas: execution reverted: L2OutputOracle: block hash does not match the hash at the expected height" l1blocknum=4,417,789 l1blockhash=0xdd48feed5428ae9da110325dd01ec26c0b9ccf9e93af4d2428e40dc5246d477f l1head=4,572,081
t=2023-10-27T07:58:55+0000 lvl=dbug msg="waiting for l1 head > l1blocknum1+1" l1head=4,572,083 l1blocknum=4,572,084
t=2023-10-27T07:59:07+0000 lvl=dbug msg="waiting for l1 head > l1blocknum1+1" l1head=4,572,084 l1blocknum=4,572,084
This error seems to be generated from here:
"L2OutputOracle: block hash does not match the hash at the expected height" |
Based on the source code comments, it seems the way around this is to let the proposer send proposeL2Output
without the _l1BlockHash
value. May I know how that can be done, or whether there's a different way around this problem?
To Reproduce
Steps to reproduce the behavior:
- Launch an OP stack according to the guide (https://stack.optimism.io/docs/build/getting-started/)
- Let batcher and proposer run out of funds for a long interval, then top up both accounts
- Confirm batcher is back to running normally
- Confirm proposer
proposeL2Output
txns are rejected by theL2OutputOracle
due to the error above
Additional context
Proposer: https://sepolia.etherscan.io/address/0x74a0a887f46927aa8f20f947c795da36984e5115
Batcher: https://sepolia.etherscan.io/address/0x2f5146dad1d8d30caa695774b6e233f5405c0823