chore: move trie functions to alloy (#12438)

This commit is contained in:
c0np4nn4
2024-11-12 17:15:52 +07:00
committed by GitHub
parent f38503c2bc
commit c261532a27
8 changed files with 17 additions and 39 deletions

View File

@ -26,6 +26,7 @@ reth-optimism-chainspec.workspace = true
# ethereum
alloy-primitives.workspace = true
alloy-consensus.workspace = true
alloy-trie.workspace = true
tracing.workspace = true

View File

@ -1,10 +1,10 @@
//! Helper function for Receipt root calculation for Optimism hardforks.
use alloy_primitives::B256;
use alloy_trie::root::ordered_trie_root_with_encoder;
use reth_chainspec::ChainSpec;
use reth_optimism_forks::OpHardfork;
use reth_primitives::{Receipt, ReceiptWithBloom, ReceiptWithBloomRef};
use reth_trie_common::root::ordered_trie_root_with_encoder;
/// Calculates the receipt root for a header.
pub(crate) fn calculate_receipt_root_optimism(