Documentation
¶
Index ¶
- Constants
- func DelayStop(id uint64, ss *PbftServerMgr)
- type PbftServerMgr
- func (ss *PbftServerMgr) Broadcast(height *big.Int)
- func (ss *PbftServerMgr) CheckMsg(msg *consensus.RequestMsg) (*types.PbftSign, error)
- func (ss *PbftServerMgr) Finish() error
- func (ss *PbftServerMgr) GetCommitteeStatus(committeeID *big.Int) map[string]interface{}
- func (ss *PbftServerMgr) GetRequest(id *big.Int) (*consensus.RequestMsg, error)
- func (ss *PbftServerMgr) InsertBlock(msg *consensus.PrePrepareMsg) bool
- func (ss *PbftServerMgr) Notify(id *big.Int, action int) error
- func (ss *PbftServerMgr) PutCommittee(committeeInfo *types.CommitteeInfo) error
- func (ss *PbftServerMgr) PutNodes(id *big.Int, nodes []*types.CommitteeNode) error
- func (ss *PbftServerMgr) RepeatFetch(id *big.Int, height int64)
- func (ss *PbftServerMgr) ReplyResult(msg *consensus.RequestMsg, signs []*types.PbftSign, res uint) bool
- func (ss *PbftServerMgr) SetCommitteeStop(committeeId *big.Int, stop uint64) error
- func (ss *PbftServerMgr) SignMsg(h int64, res uint) *consensus.SignedVoteMsg
Constants ¶
View Source
const ( Start int = iota Stop Switch ServerWait = 5 BlockSleepMax = 5 )
Variables ¶
This section is empty.
Functions ¶
func DelayStop ¶
func DelayStop(id uint64, ss *PbftServerMgr)
Types ¶
type PbftServerMgr ¶
type PbftServerMgr struct {
Agent types.PbftAgentProxy
Close bool
// contains filtered or unexported fields
}
func NewPbftServerMgr ¶
func NewPbftServerMgr(pk *ecdsa.PublicKey, priv *ecdsa.PrivateKey, agent types.PbftAgentProxy) *PbftServerMgr
func (*PbftServerMgr) Broadcast ¶
func (ss *PbftServerMgr) Broadcast(height *big.Int)
func (*PbftServerMgr) CheckMsg ¶
func (ss *PbftServerMgr) CheckMsg(msg *consensus.RequestMsg) (*types.PbftSign, error)
func (*PbftServerMgr) Finish ¶
func (ss *PbftServerMgr) Finish() error
func (*PbftServerMgr) GetCommitteeStatus ¶
func (ss *PbftServerMgr) GetCommitteeStatus(committeeID *big.Int) map[string]interface{}
func (*PbftServerMgr) GetRequest ¶
func (ss *PbftServerMgr) GetRequest(id *big.Int) (*consensus.RequestMsg, error)
func (*PbftServerMgr) InsertBlock ¶
func (ss *PbftServerMgr) InsertBlock(msg *consensus.PrePrepareMsg) bool
func (*PbftServerMgr) PutCommittee ¶
func (ss *PbftServerMgr) PutCommittee(committeeInfo *types.CommitteeInfo) error
func (*PbftServerMgr) PutNodes ¶
func (ss *PbftServerMgr) PutNodes(id *big.Int, nodes []*types.CommitteeNode) error
func (*PbftServerMgr) RepeatFetch ¶
func (ss *PbftServerMgr) RepeatFetch(id *big.Int, height int64)
func (*PbftServerMgr) ReplyResult ¶
func (ss *PbftServerMgr) ReplyResult(msg *consensus.RequestMsg, signs []*types.PbftSign, res uint) bool
func (*PbftServerMgr) SetCommitteeStop ¶
func (ss *PbftServerMgr) SetCommitteeStop(committeeId *big.Int, stop uint64) error
func (*PbftServerMgr) SignMsg ¶
func (ss *PbftServerMgr) SignMsg(h int64, res uint) *consensus.SignedVoteMsg
Click to show internal directories.
Click to hide internal directories.