mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
primitives: use EMPTY_ROOT_HASH when possible (#11822)
This commit is contained in:
@ -300,7 +300,7 @@ pub fn validate_against_parent_4844(
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use alloy_consensus::TxEip4844;
|
||||
use alloy_consensus::{TxEip4844, EMPTY_ROOT_HASH};
|
||||
use alloy_primitives::{
|
||||
hex_literal::hex, Address, BlockHash, BlockNumber, Bytes, Parity, Sealable, U256,
|
||||
};
|
||||
@ -444,8 +444,8 @@ mod tests {
|
||||
ommers_hash: hex!("1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347").into(),
|
||||
beneficiary: hex!("4675c7e5baafbffbca748158becba61ef3b0a263").into(),
|
||||
state_root: hex!("8337403406e368b3e40411138f4868f79f6d835825d55fd0c2f6e17b1a3948e9").into(),
|
||||
transactions_root: hex!("56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421").into(),
|
||||
receipts_root: hex!("56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421").into(),
|
||||
transactions_root: EMPTY_ROOT_HASH,
|
||||
receipts_root: EMPTY_ROOT_HASH,
|
||||
logs_bloom: hex!("002400000000004000220000800002000000000000000000000000000000100000000000000000100000000000000021020000000800000006000000002100040000000c0004000000000008000008200000000000000000000000008000000001040000020000020000002000000800000002000020000000022010000000000000010002001000000000020200000000000001000200880000004000000900020000000000020000000040000000000000000000000000000080000000000001000002000000000000012000200020000000000000001000000000000020000010321400000000100000000000000000000000000000400000000000000000").into(),
|
||||
difficulty: U256::ZERO, // total difficulty: 0xc70d815d562d3cfa955).into(),
|
||||
number: 0xf21d20,
|
||||
|
||||
Reference in New Issue
Block a user