Interface IConsensusMessageCommunicator
Interface for communicating ConsensusMsgs with peers.
Namespace: Libplanet.Net.Consensus
Assembly: Libplanet.Net.dll
Syntax
public interface IConsensusMessageCommunicator
Methods
| Improve this Doc View SourceOnStartHeight(Int64)
Method that will be called on the Start(BlockCommit) call.
Declaration
void OnStartHeight(long height)
Parameters
Type | Name | Description |
---|---|---|
Int64 | height | Height to trigger this method. |
OnStartRound(Int32)
Method that will be called on the Libplanet.Net.Consensus.Context.StartRound(System.Int32) call.
Declaration
void OnStartRound(int round)
Parameters
Type | Name | Description |
---|---|---|
Int32 | round | Round to trigger this method. |
PublishMessage(ConsensusMsg)
Publish given message
to peers.
Declaration
void PublishMessage(ConsensusMsg message)
Parameters
Type | Name | Description |
---|---|---|
ConsensusMsg | message | ConsensusMsg to publish. |