Struct exonum_testkit::TestNetwork [] [src]

pub struct TestNetwork { /* fields omitted */ }

Emulated test network.

Methods

impl TestNetwork
[src]

[src]

Creates a new emulated network.

[src]

Returns the node in the emulated network, from whose perspective the testkit operates.

[src]

Returns a slice of all validators in the network.

[src]

Returns config encoding the network structure usable for creating the genesis block of a blockchain.

[src]

Updates the test network by the new set of nodes.

[src]

Returns service public key of the validator with given id.

[src]

Returns consensus public key of the validator with given id.

Trait Implementations

impl Debug for TestNetwork
[src]

[src]

Formats the value using the given formatter.