Commit 942264f
feat: allow custom proof submission target address (#24270)
This pr adds an optional prover-node config,
`PROVER_NODE_PROOF_SUBMISSION_TARGET_ADDRESS`, that lets a prover send
the `submitEpochRootProof` tx to a contract other than the rollup.
Everything else is unchanged: all rollup state is still read from the
real rollup, only the destination of the submit tx is redirected. When
unset, it defaults to the rollup address, so existing provers are
unaffected.
Use case:
A prover that wants to claim prover tips from oxide-styled withdrawal
txs must register itself in the Pool contract as the first prover to
submit a proof of a given length L. To do that, it deploys a wrapper
contract that calls the Pool before (check proven length = L-T) and
after (check proven length = L) calling `submitEpochRootProof` on the
rollup, then points this config at the wrapper.
Closes GK-752
(cherry picked from commit 1039d38)1 parent c3cba2b commit 942264f
1 file changed
Lines changed: 25 additions & 0 deletions
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
207 | 232 | | |
208 | 233 | | |
209 | 234 | | |
| |||
0 commit comments