mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: use deref directly (#12256)
This commit is contained in:
@ -399,9 +399,7 @@ pub trait LoadPendingBlock:
|
||||
execution_outcome.block_logs_bloom(block_number).expect("Block is present");
|
||||
|
||||
// calculate the state root
|
||||
let state_provider = &db.database;
|
||||
let state_root =
|
||||
state_provider.state_root(hashed_state).map_err(Self::Error::from_eth_err)?;
|
||||
let state_root = db.database.state_root(hashed_state).map_err(Self::Error::from_eth_err)?;
|
||||
|
||||
// create the block header
|
||||
let transactions_root = calculate_transaction_root(&executed_txs);
|
||||
|
||||
@ -274,7 +274,7 @@ pub fn build_block<T: TransactionCompat>(
|
||||
}
|
||||
}
|
||||
|
||||
let state_root = db.db.0.state_root(hashed_state)?;
|
||||
let state_root = db.db.state_root(hashed_state)?;
|
||||
|
||||
let header = reth_primitives::Header {
|
||||
beneficiary: block_env.coinbase,
|
||||
|
||||
Reference in New Issue
Block a user