Latest headers Pub-Sub (#5655)

* Signer subscription.

* Fixing RPC tests.

* Block Headers eth-pubsub.

* PubSub for light client.

* Fixing tests.

* Updating to proper jsonrpc version.

* Update to correct tests.

* Fixing tests.
This commit is contained in:
Tomasz Drwięga
2017-05-23 12:26:39 +02:00
committed by Arkadiy Paronyan
parent 92f5aa7e10
commit f38cc8e182
20 changed files with 551 additions and 96 deletions

View File

@@ -21,7 +21,8 @@ use util::{H256, Bytes};
#[ipc]
pub trait ChainNotify : Send + Sync {
/// fires when chain has new blocks.
fn new_blocks(&self,
fn new_blocks(
&self,
_imported: Vec<H256>,
_invalid: Vec<H256>,
_enacted: Vec<H256>,
@@ -29,7 +30,8 @@ pub trait ChainNotify : Send + Sync {
_sealed: Vec<H256>,
// Block bytes.
_proposed: Vec<Bytes>,
_duration: u64) {
_duration: u64,
) {
// does nothing by default
}