Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineMsg ¶
CombineMsg combines a msgType and msgBody into a single proto.Message
Types ¶
type Sim ¶
type Sim interface { lifecycle.StartStopper HandleEndorse(*iproto.EndorsePb, chan bool) error HandleBlockPropose(*iproto.ProposePb, chan bool) error SetStream(*pbsim.Simulator_PingServer) SetDoneStream(chan bool) SendUnsent() }
Sim is the interface for handling IotxConsensus view change used in the simulator
func NewSim ¶
func NewSim( cfg *config.Config, bc blockchain.Blockchain, ap actpool.ActPool, p2p network.Overlay, ) Sim
NewSim creates a consensus_sim struct
func NewSimByzantine ¶
func NewSimByzantine( cfg *config.Config, bc blockchain.Blockchain, ap actpool.ActPool, p2p network.Overlay, ) Sim
NewSimByzantine creates a byzantine consensus_sim struct
Click to show internal directories.
Click to hide internal directories.