mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: use reth-ethereum-primitives (#13830)
This commit is contained in:
@ -4,7 +4,9 @@ use crate::{
|
||||
in_memory::ExecutedBlock, CanonStateNotification, CanonStateNotifications,
|
||||
CanonStateSubscriptions,
|
||||
};
|
||||
use alloy_consensus::{Header, Transaction as _, TxEip1559, EMPTY_ROOT_HASH};
|
||||
use alloy_consensus::{
|
||||
Header, SignableTransaction, Transaction as _, TxEip1559, TxReceipt, EMPTY_ROOT_HASH,
|
||||
};
|
||||
use alloy_eips::{
|
||||
eip1559::{ETHEREUM_BLOCK_GAS_LIMIT, INITIAL_BASE_FEE},
|
||||
eip7685::Requests,
|
||||
@ -17,6 +19,7 @@ use reth_chainspec::{ChainSpec, EthereumHardfork, MIN_TRANSACTION_GAS};
|
||||
use reth_execution_types::{Chain, ExecutionOutcome};
|
||||
use reth_primitives::{
|
||||
proofs::{calculate_receipt_root, calculate_transaction_root, calculate_withdrawals_root},
|
||||
transaction::SignedTransactionIntoRecoveredExt,
|
||||
BlockBody, EthPrimitives, NodePrimitives, Receipt, Receipts, RecoveredBlock, RecoveredTx,
|
||||
SealedBlock, SealedHeader, Transaction, TransactionSigned,
|
||||
};
|
||||
@ -131,7 +134,7 @@ impl<N: NodePrimitives> TestBlockBuilder<N> {
|
||||
cumulative_gas_used: (idx as u64 + 1) * MIN_TRANSACTION_GAS,
|
||||
..Default::default()
|
||||
}
|
||||
.with_bloom()
|
||||
.into_with_bloom()
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user