mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(reth_primitives): Use trait for size methods in primitive types (#12201)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -18,6 +18,7 @@ reth-consensus.workspace = true
|
||||
reth-network-p2p.workspace = true
|
||||
reth-network-peers.workspace = true
|
||||
reth-primitives.workspace = true
|
||||
reth-primitives-traits.workspace = true
|
||||
reth-storage-api.workspace = true
|
||||
reth-tasks.workspace = true
|
||||
|
||||
@ -80,5 +81,6 @@ test-utils = [
|
||||
"reth-chainspec/test-utils",
|
||||
"reth-primitives/test-utils",
|
||||
"reth-db-api?/test-utils",
|
||||
"reth-provider/test-utils"
|
||||
"reth-provider/test-utils",
|
||||
"reth-primitives-traits/test-utils"
|
||||
]
|
||||
|
||||
@ -14,6 +14,7 @@ use reth_network_p2p::{
|
||||
error::{DownloadError, DownloadResult},
|
||||
};
|
||||
use reth_primitives::SealedHeader;
|
||||
use reth_primitives_traits::size::InMemorySize;
|
||||
use reth_storage_api::HeaderProvider;
|
||||
use reth_tasks::{TaskSpawner, TokioTaskExecutor};
|
||||
use std::{
|
||||
|
||||
@ -9,6 +9,7 @@ use reth_network_p2p::{
|
||||
};
|
||||
use reth_network_peers::{PeerId, WithPeerId};
|
||||
use reth_primitives::{BlockBody, GotExpected, SealedBlock, SealedHeader};
|
||||
use reth_primitives_traits::InMemorySize;
|
||||
use std::{
|
||||
collections::VecDeque,
|
||||
mem,
|
||||
|
||||
Reference in New Issue
Block a user