Commit f50abe3
committed
fix(pxe): restore fee-payer public data write DA charge in kernelless gas metering
Block #24580's mechanical re-graft (99cbb5d) pulled
contract_function_simulator.ts from the v5 tip, which predates next's
5ca883c (add fixed gas cost for updating fee payer balance to
private-only tx). The Noir private-kernel gas meter (gas_meter.nr) charges
PUBLIC_DATA_WRITE_LENGTH DA fields for the fee-payer balance write on
private-only txs, so kernelless estimates under-counted DA gas by 64 on
every private-only tx (kernelless_simulation 128 vs 192 squashing case,
768 vs 832 account deployments; same drift behind the bot/amm/sponsored
"gas used exceeds the gas limits" failures for private-only txs).
Restore the isPrivateOnlyTx block in meterGasUsed to match next and the
kernels. Complements d526c2d (protocol nullifier injection), which fixed
the other half of the kernelless DA drift.
Verified locally: kernelless_simulation 7/7 (was 4/7),
private_payments.parallel 8/8, txe unit tests 17/17.1 parent d526c2d commit f50abe3
1 file changed
Lines changed: 6 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
924 | 925 | | |
925 | 926 | | |
926 | 927 | | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
927 | 933 | | |
928 | 934 | | |
929 | 935 | | |
| |||
0 commit comments