Uh oh!
There was an error while loading. Please reload this page.
Commit 3a6aa08
refactor(op-revm): move SGT config from L1BlockInfo to CfgEnv
Move sgt_enabled and sgt_is_native_backed from L1BlockInfo to CfgEnv,
accessed via Cfg trait methods (is_sgt_enabled, is_sgt_native_backed).
This eliminates the need to:
- Mutate the EVM after creation (no configure_sgt on Evm trait)
- Preserve/restore SGT flags around L1BlockInfo::try_fetch
- Fork alloy-evm
SGT config now flows through CfgEnv at EVM creation time, matching
how OpSpecId and other hardfork config is passed.
Runtime deduction tracking (sgt_native_deducted, sgt_amount_deducted)
remains on L1BlockInfo as it is per-transaction mutable state.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 79e76f2 commit 3a6aa08
4 files changed
Lines changed: 33 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
78 | 90 | | |
79 | 91 | | |
80 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
149 | 154 | | |
150 | 155 | | |
151 | 156 | | |
| 157 | + | |
| 158 | + | |
152 | 159 | | |
153 | 160 | | |
154 | 161 | | |
| |||
251 | 258 | | |
252 | 259 | | |
253 | 260 | | |
| 261 | + | |
| 262 | + | |
254 | 263 | | |
255 | 264 | | |
256 | 265 | | |
| |||
502 | 511 | | |
503 | 512 | | |
504 | 513 | | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
505 | 522 | | |
506 | 523 | | |
507 | 524 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 196 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | 197 | | |
206 | 198 | | |
207 | 199 | | |
| |||
220 | 212 | | |
221 | 213 | | |
222 | 214 | | |
223 | | - | |
| 215 | + | |
224 | 216 | | |
225 | 217 | | |
226 | 218 | | |
| |||
396 | 388 | | |
397 | 389 | | |
398 | 390 | | |
399 | | - | |
400 | | - | |
| 391 | + | |
401 | 392 | | |
402 | 393 | | |
403 | 394 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 56 | + | |
61 | 57 | | |
62 | | - | |
| 58 | + | |
63 | 59 | | |
64 | 60 | | |
65 | 61 | | |
| |||
0 commit comments