aztec-packages icon indicating copy to clipboard operation
aztec-packages copied to clipboard

fix: Do not query L1 on every request to `getCurrentBaseFees`

Open spalladino opened this issue 8 months ago • 0 comments

As per title. Every time getCurrentBaseFees is hit, which is exposed in the RPC API and also called every time we need to validate a sent tx, we do multiple eth_calls to have the rollup contract compute the base fees.

We should update this value in the archiver on every new L1 (or L2?) block instead. If not possible, at least cache it based on L1 block to avoid constantly bombarding L1.

spalladino avatar May 13 '25 15:05 spalladino