Struct exonum_testkit::TestNetwork [] [src]

pub struct TestNetwork { /* fields omitted */ }

Emulated test network.

Methods

impl TestNetwork
[src]

[src]

Creates a new emulated network.

[src]

Creates a new emulated network with a specific role of the node the network will be viewed from.

[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]

Updates the test network with a new configuration.

[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. Read more

Auto Trait Implementations

impl Send for TestNetwork

impl Sync for TestNetwork