implement snapshot watcher
This commit is contained in:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user