Skip to content
This repository was archived by the owner on Aug 20, 2022. It is now read-only.

eth,miner: return STATUS_INVALID when failing to process forced txs#40

Merged
mslipper merged 1 commit intooptimism-historyfrom
fix-bad-payload-response
Aug 5, 2022
Merged

eth,miner: return STATUS_INVALID when failing to process forced txs#40
mslipper merged 1 commit intooptimism-historyfrom
fix-bad-payload-response

Conversation

@protolambda
Copy link
Contributor

When we fail to prepare a block with just the forced transactions from the request then the request must be bad, and we should return STATUS_INVALID. This way we can handle bad L1 data in the rollup node, and not reattempt to process it.

Also update the returned error, so underlying process errors become visible.

@mslipper mslipper merged commit 83ebea8 into optimism-history Aug 5, 2022
@protolambda protolambda deleted the fix-bad-payload-response branch August 10, 2022 22:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants