fix: reth-trie no_std case hashmap (#13497)

Co-authored-by: lightsing <light.tsing@gmail.com>
This commit is contained in:
Matthias Seitz
2024-12-22 18:47:53 +01:00
committed by GitHub
parent 2dd0ec340d
commit f791f39348
2 changed files with 6 additions and 9 deletions

View File

@ -1,4 +1,8 @@
use alloy_primitives::{BlockNumber, B256}; use alloy_primitives::{
map::{HashMap, HashSet},
BlockNumber, B256,
};
use core::{marker::PhantomData, ops::RangeInclusive};
use derive_more::Deref; use derive_more::Deref;
use reth_db::tables; use reth_db::tables;
use reth_db_api::{ use reth_db_api::{
@ -12,11 +16,6 @@ use reth_trie::{
prefix_set::{PrefixSetMut, TriePrefixSets}, prefix_set::{PrefixSetMut, TriePrefixSets},
KeyHasher, Nibbles, KeyHasher, Nibbles,
}; };
use std::{
collections::{HashMap, HashSet},
marker::PhantomData,
ops::RangeInclusive,
};
/// A wrapper around a database transaction that loads prefix sets within a given block range. /// A wrapper around a database transaction that loads prefix sets within a given block range.
#[derive(Debug)] #[derive(Debug)]

View File

@ -1,7 +1,5 @@
use std::collections::hash_map;
use crate::{DatabaseHashedCursorFactory, DatabaseTrieCursorFactory}; use crate::{DatabaseHashedCursorFactory, DatabaseTrieCursorFactory};
use alloy_primitives::{keccak256, Address, BlockNumber, B256}; use alloy_primitives::{keccak256, map::hash_map, Address, BlockNumber, B256};
use reth_db::{cursor::DbCursorRO, models::BlockNumberAddress, tables, DatabaseError}; use reth_db::{cursor::DbCursorRO, models::BlockNumberAddress, tables, DatabaseError};
use reth_db_api::transaction::DbTx; use reth_db_api::transaction::DbTx;
use reth_execution_errors::StorageRootError; use reth_execution_errors::StorageRootError;