Struct ethcore::test_helpers::TestNotify
[−]
[src]
pub struct TestNotify { pub messages: RwLock<Vec<Bytes>>, }
Test actor for chain events
Fields
messages: RwLock<Vec<Bytes>>
Messages store
Trait Implementations
impl Default for TestNotify
[src]
impl Default for TestNotify
fn default() -> TestNotify
[src]
fn default() -> TestNotify
Returns the "default value" for a type. Read more
impl ChainNotify for TestNotify
[src]
impl ChainNotify for TestNotify
fn broadcast(&self, message: ChainMessageType)
[src]
fn broadcast(&self, message: ChainMessageType)
fires when chain broadcasts a message
fn new_blocks(
&self,
_imported: Vec<H256>,
_invalid: Vec<H256>,
_route: ChainRoute,
_sealed: Vec<H256>,
_proposed: Vec<Bytes>,
_duration: Duration
)
[src]
fn new_blocks(
&self,
_imported: Vec<H256>,
_invalid: Vec<H256>,
_route: ChainRoute,
_sealed: Vec<H256>,
_proposed: Vec<Bytes>,
_duration: Duration
)
fires when chain has new blocks.
fn start(&self)
[src]
fn start(&self)
fires when chain achieves active mode
fn stop(&self)
[src]
fn stop(&self)
fires when chain achieves passive mode
fn transactions_received(&self, _txs: &[UnverifiedTransaction], _peer_id: usize)
[src]
fn transactions_received(&self, _txs: &[UnverifiedTransaction], _peer_id: usize)
fires when new transactions are received from a peer
Auto Trait Implementations
impl Send for TestNotify
impl Send for TestNotify
impl Sync for TestNotify
impl Sync for TestNotify