implement snapshot watcher

This commit is contained in:
Robert Habermeier
2016-09-02 18:28:47 +02:00
parent 04dee54cb3
commit e3749b3bc4
3 changed files with 181 additions and 1 deletions

View File

@@ -20,7 +20,8 @@ use util::H256;
/// Represents what has to be handled by actor listening to chain events
#[derive(Ipc)]
pub trait ChainNotify : Send + Sync {
/// fires when chain has new blocks
/// fires when chain has new blocks, not including those encountered during
/// a major sync.
fn new_blocks(&self,
_imported: Vec<H256>,
_invalid: Vec<H256>,