Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidViewChangeMsg is the error that ViewChangeMsg is invalid ErrInvalidViewChangeMsg = errors.New("ViewChangeMsg is invalid") )
Functions ¶
func NewProposerRotation ¶
func NewProposerRotation(r *RDPoS) *routine.RecurringTask
NewProposerRotation creates a recurring task of proposer rotation.
Types ¶
type DNet ¶
type DNet interface { Tell(node net.Addr, msg proto.Message) error Self() net.Addr Broadcast(msg proto.Message) error }
DNet is the delegate networks interface.
type RDPoS ¶
type RDPoS struct {
// contains filtered or unexported fields
}
RDPoS is the RDPoS consensus scheme
func NewRDPoS ¶
func NewRDPoS(cfg config.RDPoS, prop scheme.CreateBlockCB, vote scheme.TellPeerCB, cons scheme.ConsensusDoneCB, pub scheme.BroadcastCB, bc blockchain.IBlockchain, myaddr net.Addr, dlg delegate.Pool) *RDPoS
NewRDPoS creates a RDPoS struct
Click to show internal directories.
Click to hide internal directories.