chore: rm rpc type imports (#645)

This commit is contained in:
Matthias Seitz
2022-12-29 17:08:41 +01:00
committed by GitHub
parent c62574b2fd
commit bec1937f63
5 changed files with 5 additions and 8 deletions

View File

@@ -1,8 +1,5 @@
use jsonrpsee::{core::RpcResult as Result, proc_macros::rpc};
use reth_primitives::{
rpc::{BlockId, Bytes},
H256,
};
use reth_primitives::{rpc::BlockId, Bytes, H256};
use reth_rpc_types::RichBlock;
/// Debug rpc interface.

View File

@@ -1,5 +1,5 @@
use crate::Transaction;
use reth_primitives::{rpc::H64, Address, Bloom, Bytes, H256, U256};
use reth_primitives::{Address, Bloom, Bytes, H256, H64, U256};
use serde::{ser::Error, Deserialize, Serialize, Serializer};
use std::{collections::BTreeMap, ops::Deref};

View File

@@ -1,7 +1,7 @@
//! Listeners for the transaction-pool
use crate::{pool::events::TransactionEvent, traits::PropagateKind};
use reth_primitives::{rpc::TxHash, H256};
use reth_primitives::{TxHash, H256};
use std::{collections::HashMap, sync::Arc};
use tokio::sync::mpsc::UnboundedSender;

View File

@@ -3,7 +3,7 @@ use crate::{
pool::{best::BestTransactions, size::SizeTracker},
TransactionOrdering, ValidPoolTransaction,
};
use reth_primitives::rpc::TxHash;
use reth_primitives::TxHash;
use std::{
cmp::Ordering,
collections::{BTreeMap, BTreeSet},

View File

@@ -5,7 +5,7 @@ use crate::{
identifier::{SenderId, TransactionId},
traits::{PoolTransaction, TransactionOrigin},
};
use reth_primitives::{rpc::Address, TxHash, U256};
use reth_primitives::{Address, TxHash, U256};
use std::{fmt, time::Instant};
/// A Result type returned after checking a transaction's validity.