Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit f20fd98

Browse files
committed
pooled_transaction -> queued_transaction
1 parent e4c57d4 commit f20fd98

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

ethcore/client-traits/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ pub trait BlockChainClient:
288288
fn block_transaction(&self, id: TransactionId) -> Option<LocalizedTransaction>;
289289

290290
/// Get pool transaction with a given hash.
291-
fn pooled_transaction(&self, hash: H256) -> Option<Arc<VerifiedTransaction>>;
291+
fn queued_transaction(&self, hash: H256) -> Option<Arc<VerifiedTransaction>>;
292292

293293
/// Get uncle with given id.
294294
fn uncle(&self, id: UncleId) -> Option<encoded::Header>;

ethcore/src/client/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,7 @@ impl BlockChainClient for Client {
18891889
self.transaction_address(id).and_then(|address| self.chain.read().transaction(&address))
18901890
}
18911891

1892-
fn pooled_transaction(&self, hash: H256) -> Option<Arc<VerifiedTransaction>> {
1892+
fn queued_transaction(&self, hash: H256) -> Option<Arc<VerifiedTransaction>> {
18931893
self.importer.miner.transaction(&hash)
18941894
}
18951895

ethcore/src/test_helpers/test_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ impl BlockChainClient for TestBlockChainClient {
741741
fn block_transaction(&self, _id: TransactionId) -> Option<LocalizedTransaction> {
742742
None // Simple default.
743743
}
744-
fn pooled_transaction(&self, _hash: H256) -> Option<Arc<VerifiedTransaction>> {
744+
fn queued_transaction(&self, _hash: H256) -> Option<Arc<VerifiedTransaction>> {
745745
None
746746
}
747747

ethcore/sync/src/chain/handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ impl SyncHandler {
706706
for item in tx_rlp {
707707
let hash = item.as_val::<H256>().map_err(|_| DownloaderImportError::Invalid)?;
708708

709-
if io.chain().pooled_transaction(hash).is_none() {
709+
if io.chain().queued_transaction(hash).is_none() {
710710
let unfetched = sync.unfetched_pooled_transactions.entry(hash).or_insert_with(|| super::UnfetchedTransaction {
711711
announcer: peer_id,
712712
next_fetch: Instant::now(),

ethcore/sync/src/chain/supplier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ impl SyncSupplier {
224224
const LIMIT: usize = 256;
225225

226226
let transactions = r.iter().take(LIMIT).filter_map(|v| {
227-
v.as_val::<H256>().ok().and_then(|hash| io.chain().pooled_transaction(hash))
227+
v.as_val::<H256>().ok().and_then(|hash| io.chain().queued_transaction(hash))
228228
}).collect::<Vec<_>>();
229229

230230
let added = transactions.len();

0 commit comments

Comments
 (0)