hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::consensus::yac::HashGate Class Referenceabstract

#include "yac_gate.hpp"

Inheritance diagram for iroha::consensus::yac::HashGate:
Inheritance graph
Collaboration diagram for iroha::consensus::yac::HashGate:
Collaboration graph

Public Member Functions

virtual void vote (YacHash hash, ClusterOrdering order, boost::optional< ClusterOrdering > alternative_order=boost::none)=0
 
virtual rxcpp::observable< AnsweronOutcome ()=0
 
virtual void stop ()=0
 Prevent any new outgoing network activity. Be passive. More...
 
virtual ~HashGate ()=default
 

Detailed Description

Provide gate for ya consensus

Constructor & Destructor Documentation

◆ ~HashGate()

virtual iroha::consensus::yac::HashGate::~HashGate ( )
virtualdefault

Member Function Documentation

◆ onOutcome()

virtual rxcpp::observable<Answer> iroha::consensus::yac::HashGate::onOutcome ( )
pure virtual

Observable with consensus outcomes - commits and rejects - in network

Returns
observable for subscription

Implemented in iroha::consensus::yac::Yac.

◆ stop()

virtual void iroha::consensus::yac::HashGate::stop ( )
pure virtual

Prevent any new outgoing network activity. Be passive.

Implemented in iroha::consensus::yac::Yac.

◆ vote()

virtual void iroha::consensus::yac::HashGate::vote ( YacHash  hash,
ClusterOrdering  order,
boost::optional< ClusterOrdering alternative_order = boost::none 
)
pure virtual

Proposal new hash in network

Parameters
hash- hash for voting
order- peer ordering for round in hash
alternative_order- peer order

Implemented in iroha::consensus::yac::Yac.


The documentation for this class was generated from the following file: