Skip to content

Commit

Permalink
use maxFeePerBlobGas for blobprice update
Browse files Browse the repository at this point in the history
  • Loading branch information
dshiell committed Nov 7, 2024
1 parent 2f4e36f commit af4db2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async function feesTooHigh(transactionArgs: TransactionArgs) {
if (transactionArgs.blobVersionedHashes && transactionArgs.blobVersionedHashes.length > 0) {
if (maxFeePerBlobGas > TX_BLOBPRICE_LIMIT) {
console.error('Blob fees too high: %d > %d', maxFeePerBlobGas, TX_BLOBPRICE_LIMIT );
TX_BLOBPRICE_LIMIT = computeNewGasLimit(gasPrice, TX_BLOBPRICE_LIMIT, TX_ALPHA);
TX_BLOBPRICE_LIMIT = computeNewGasLimit(maxFeePerBlobGas, TX_BLOBPRICE_LIMIT, TX_ALPHA);
return true;
}
}
Expand Down

0 comments on commit af4db2f

Please sign in to comment.