op-node: Adjust L1 Info Transaction Gas Parameters#2582
op-node: Adjust L1 Info Transaction Gas Parameters#2582trianglesphere merged 1 commit intodevelopfrom
Conversation
|
|
This PR changes implementation code, but doesn't include a changeset. Did you forget to add one? |
|
Note: may want to hold off on merging until confident in the value we're using. |
b11b9b8 to
8e1500f
Compare
|
This may have to change once #2583 lands depending on how much gas usage is added by keeping track of the average |
8e1500f to
7ee2e41
Compare
Let's do a follow up once the new L1 Info PR is ready. I think the biggest gas cost to this is the very first transaction (setting slots from 0). |
This reduces the gas on the L1 Info Transaction from 99,999,999 down to 75,000. This is required as the gas from deposits is now being counted against the total gas used in the L2 block. Typically the transaction only uses around 30k gas and 35k would be fine; however, for the first transaction, it uses more gas to set the storage slots from zero (around 70k gas). As such, we set it to a single gas limit for the time being. We also give it a buffer of 5k gas to ensure that this transaction will not fail.
7ee2e41 to
adad9e2
Compare
|
This PR has been added to the merge queue, and will be merged soon. |
Description
This reduces the gas on the L1 Info Transaction from 99,999,999
down to 75,000. This is required as the gas from deposits is now
being counted against the total gas used in the L2 block.
Typically the transaction only uses around 30k gas and 35k would
be fine; however, for the first transaction, it uses more gas to
set the storage slots from zero (around 70k gas). As such, we
set it to a single gas limit for the time being. We also give
it a buffer of 5k gas to ensure that this transaction will not
fail.