Skip to content

Commit

Permalink
add base_fee_per_gas in prepare header
Browse files Browse the repository at this point in the history
  • Loading branch information
taokayan committed Apr 16, 2024
1 parent b9554f8 commit 1ab2f70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eosevm/block_mapping.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,16 @@ 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<uint64_t> base_fee_per_gas)
{
header.beneficiary = silkworm::make_reserved_address(evm_contract_name);
header.difficulty = 1;
header.number = evm_block_num;
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;
}


Expand Down

0 comments on commit 1ab2f70

Please sign in to comment.