Struct exonum::blockchain::ServiceContext [] [src]

pub struct ServiceContext<'a, 'b> { /* fields omitted */ }

The current node state on which the blockchain is running, or in other words execution context.

Methods

impl<'a, 'b> ServiceContext<'a, 'b>
[src]

If the current node is validator returns its state. For other nodes return None.

Returns the current database snapshot.

Returns the current blockchain height. This height is 'height of last committed block` + 1.

Returns the current node round.

Returns the current list of validators.

Returns current node's public key.

Returns current node's secret key.

Returns the actual blockchain global configuration.

Returns service specific global variables as json value.

Adds transaction to the queue. After the services handle commit event these transactions will be broadcast by node.

Trait Implementations

impl<'a, 'b> Debug for ServiceContext<'a, 'b>
[src]

Formats the value using the given formatter.