Struct ethcore_rpc::v1::tests::helpers::TestSyncProvider [] [src]

pub struct TestSyncProvider {
    pub status: RwLock<SyncStatus>,
}

Test sync provider.

Fields

Sync status.

Methods

impl TestSyncProvider
[src]

Creates new sync provider.

Simulate importing blocks.

Trait Implementations

impl SyncProvider for TestSyncProvider
[src]

Get sync status

Get peers information

Get the enode if available.

Returns propagation count for pending transactions.