Versions in this module Expand all Collapse all v1 v1.0.2 Aug 16, 2022 v1.0.1 Aug 8, 2022 Changes in this version + func NewGetConsensusStateMessage() (*pb.UnsignedMessage, error) + func NewGetConsensusStateReply(ledgerBlockHash common.Uint256, ...) (*pb.UnsignedMessage, error) + func NewIHaveBlockProposalMessage(height uint32, blockHash common.Uint256) (*pb.UnsignedMessage, error) + func NewRequestBlockProposalMessage(blockHash common.Uint256, requestType pb.RequestTransactionType, ...) (*pb.UnsignedMessage, error) + func NewRequestBlockProposalReply(b *block.Block, txnsHash [][]byte) (*pb.UnsignedMessage, error) + func NewRequestProposalTransactionsMessage(blockHash common.Uint256, requestType pb.RequestTransactionType, ...) (*pb.UnsignedMessage, error) + func NewRequestProposalTransactionsReply(transactions []*transaction.Transaction) (*pb.UnsignedMessage, error) + func NewVoteMessage(height uint32, blockHash common.Uint256) (*pb.UnsignedMessage, error) + type Consensus struct + func NewConsensus(account *vault.Account, localNode *node.LocalNode) (*Consensus, error) + func (consensus *Consensus) GetAcceptedHeight() uint32 + func (consensus *Consensus) GetExpectedHeight() uint32 + func (consensus *Consensus) Start()