mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
fix: reth-trie no_std case hashmap (#13497)
Co-authored-by: lightsing <light.tsing@gmail.com>
This commit is contained in:
@ -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 reth_db::tables;
|
||||
use reth_db_api::{
|
||||
@ -12,11 +16,6 @@ use reth_trie::{
|
||||
prefix_set::{PrefixSetMut, TriePrefixSets},
|
||||
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.
|
||||
#[derive(Debug)]
|
||||
|
||||
@ -1,7 +1,5 @@
|
||||
use std::collections::hash_map;
|
||||
|
||||
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_api::transaction::DbTx;
|
||||
use reth_execution_errors::StorageRootError;
|
||||
|
||||
Reference in New Issue
Block a user