Commit 86b0722
authored
feat(AVM): Implement l2 gas limit maximum and remove clamping (#16500)
- Removes gas limit clamping
- Reworks the gas limit constants
- Improves gas estimation
- Adds a transaction validator to check that l2 gas limit is within AVM
provable bounds
- Adds l2 gas limit check to public base, pending move to private
kernels
- Adds a check in the avm simulator that the actual **consumed** gas is
not more than the provable gas.File tree
42 files changed
+1567
-1537
lines changed- barretenberg/cpp/src/barretenberg/vm2
- common
- testing
- noir-projects/noir-protocol-circuits/crates
- private-kernel-lib/src/tests/tail_output_validator_builder
- rollup-base-private
- rollup-base-public
- rollup-lib/src/base
- components
- tests
- private_tube_data_validator_builder
- public_tube_data_validator_builder
- types/src
- yarn-project
- aztec.js/src/contract
- constants/src
- scripts
- end-to-end/src
- e2e_fees
- noir-protocol-circuits-types/src/utils/client
- p2p/src/msg_validators/tx_validator
- simulator
- artifacts
- src/public
- avm
- fixtures
- fixtures
- public_tx_simulator
- stdlib/src
- avm
- gas
- tests
- tx/validator
- txe/src/oracle
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
42 files changed
+1567
-1537
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
Binary file not shown.
Binary file not shown.
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
27 | | - | |
28 | | - | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
Lines changed: 174 additions & 174 deletions
Large diffs are not rendered by default.
Lines changed: 1089 additions & 1089 deletions
Large diffs are not rendered by default.
Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
20 | 29 | | |
21 | 30 | | |
22 | 31 | | |
| |||
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | | - | |
| 10 | + | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
| |||
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| |||
0 commit comments