From af4db2f499820b2e7046dc52a1f0f62825b66fb3 Mon Sep 17 00:00:00 2001 From: Derek Date: Thu, 7 Nov 2024 14:06:50 -0800 Subject: [PATCH] use maxFeePerBlobGas for blobprice update --- src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 93f14c8..3f16a01 100644 --- a/src/server.ts +++ b/src/server.ts @@ -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; } }