Watch existing extrinsics RPC (#3873)

* Transaction pool watch intristics.

* Track extrinsic rpc methods.

* Test for pool watcher.

* Track extrinsic rpc test.

* Fix rpc naming.

* review fixes

* Update jsonrpc and use une subcription.

* Naming and dependencies.
This commit is contained in:
Nikolay Volf
2019-10-27 14:55:44 +03:00
committed by Gavin Wood
parent f7ee9ab235
commit d149c2f719
15 changed files with 194 additions and 73 deletions
@@ -130,7 +130,6 @@ impl<H: Clone, H2: Clone> Sender<H, H2> {
self.send(Status::Broadcast(peers))
}
/// Returns true if the are no more listeners for this extrinsic or it was finalized.
pub fn is_done(&self) -> bool {
self.finalized || self.receivers.is_empty()