From 1ab2f704ada69250cd36535dacf32130636cfeda Mon Sep 17 00:00:00 2001 From: kayan Date: Tue, 16 Apr 2024 16:07:09 +0800 Subject: [PATCH] add base_fee_per_gas in prepare header --- eosevm/block_mapping.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eosevm/block_mapping.hpp b/eosevm/block_mapping.hpp index d401d09b..743f317a 100644 --- a/eosevm/block_mapping.hpp +++ b/eosevm/block_mapping.hpp @@ -64,7 +64,8 @@ inline void prepare_block_header(silkworm::BlockHeader& header, const block_mapping& bm, uint64_t evm_contract_name, uint32_t evm_block_num, - uint64_t version) + uint64_t version, + std::optional base_fee_per_gas) { header.beneficiary = silkworm::make_reserved_address(evm_contract_name); header.difficulty = 1; @@ -72,6 +73,7 @@ inline void prepare_block_header(silkworm::BlockHeader& header, header.gas_limit = 0x7ffffffffff; header.timestamp = bm.evm_block_num_to_evm_timestamp(header.number); header.nonce = eosevm::version_to_nonce(version); + header.base_fee_per_gas = base_fee_per_gas; }