This repository was archived by the owner on Nov 6, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 > ;
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ( ) ,
Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments