Skip to content

Commit

Permalink
add warning about suboptimal sequencer incentives
Browse files Browse the repository at this point in the history
  • Loading branch information
just-mitch committed Apr 23, 2024
1 parent c4528be commit 72f957f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docs/protocol-specs/gas-and-fees/kernel-tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,10 @@ It sets the `revert_code` in `PublicKernelCircuitPublicInputs` to `1`.
Recall in the [Private Kernel Tail to Public](#private-kernel-tail-to-public) circuit, the gas allocated for the public teardown function was included in the `end` gas used. This ensures that we have gas available for teardown even though app logic consumed all gas.
:::

:::warning
Consuming all gas left in the event of revert creates incentives for the sequencer to arrange transactions such that they revert, which is suboptimal. Future improvements will likely address this by only consuming the gas that was actually used, even in the event of revert.
:::

## Public Kernel Teardown

The PublicKernelTeardown circuit takes in a `PublicKernelData` and a `PublicCallData` and outputs a `PublicKernelCircuitPublicInputs`.
Expand Down

0 comments on commit 72f957f

Please sign in to comment.