Calculate fee per blob gas
Calculate fee per blob gas. Add helpers and actual calculation methods:
-
fake_exponential()
cryptographic helper; -
calc_excess_blob_gas()
: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-4844.md#header-extension; - add blob gas accounting function
get_base_fee_per_blob_gas()
; - calculate
max_fee_per_blob_gas
asbase_fee_per_blob_gas * 1.1
, reference to 1.1 explanation; - update
Net::Ethereum::get_fee_data()
method to returnmaxFeePerBlobGas
.
Credits
Branch details
Implement the feature at calculate-fee-per-blob-gas
branch
Edited by Konstantin Narkhov