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:
committed by
Niklas Adolfsson
parent
6643b6a306
commit
f8f8bf0fea
@@ -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,
|
||||
{
|
||||
|
||||
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user