RPC: parity_allTransactionHashes (#9745)

* rpc: add parity_allTransactionHashes

* Add light_all_transactionst to helpers

* Remove extra parentheses

* Move light_all_transactions to light_fetch

* Remove LightDispatcher import in light_fetch
This commit is contained in:
Kirill Fomichev
2018-10-27 10:38:35 +03:00
committed by Niklas Adolfsson
parent 6643b6a306
commit f8f8bf0fea
9 changed files with 53 additions and 12 deletions

View File

@@ -938,6 +938,10 @@ impl miner::MinerService for Miner {
self.transaction_queue.all_transactions()
}
fn queued_transaction_hashes(&self) -> Vec<H256> {
self.transaction_queue.all_transaction_hashes()
}
fn pending_transaction_hashes<C>(&self, chain: &C) -> BTreeSet<H256> where
C: ChainInfo + Sync,
{

View File

@@ -185,6 +185,9 @@ pub trait MinerService : Send + Sync {
/// Get a list of all transactions in the pool (some of them might not be ready for inclusion yet).
fn queued_transactions(&self) -> Vec<Arc<VerifiedTransaction>>;
/// Get a list of all transaction hashes in the pool (some of them might not be ready for inclusion yet).
fn queued_transaction_hashes(&self) -> Vec<H256>;
/// Get a list of local transactions with statuses.
fn local_transactions(&self) -> BTreeMap<H256, local_transactions::Status>;