Struct ethcore_rpc::v1::tests::helpers::TestSyncProvider
[−]
[src]
pub struct TestSyncProvider { pub status: RwLock<SyncStatus>, }
Test sync provider.
Fields
status: RwLock<SyncStatus>
Sync status.
Methods
impl TestSyncProvider
[src]
fn new(config: Config) -> Self
Creates new sync provider.
fn increase_imported_block_number(&self, count: u64)
Simulate importing blocks.
Trait Implementations
impl SyncProvider for TestSyncProvider
[src]
fn status(&self) -> SyncStatus
Get sync status
fn peers(&self) -> Vec<PeerInfo>
Get peers information
fn enode(&self) -> Option<String>
Get the enode if available.
fn transactions_stats(&self) -> BTreeMap<H256, TransactionStats>
Returns propagation count for pending transactions.