Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReqService ¶
type ReqService struct {
// contains filtered or unexported fields
}
ReqService implements s service to send requests to other consensus nodes to get missing proposals
func NewReqService ¶
func NewReqService(nodeId string, log protocol.Logger, msgBus msgbus.MessageBus) *ReqService
NewReqService initials and returns a ReqService
func (*ReqService) SendRequest ¶
func (service *ReqService) SendRequest(nodeId string, missProposal *maxbft.ProposalFetchMsg)
SendRequest send a request to the specified node to get the block with the specified height, view and block hash
type RespService ¶
type RespService struct {
// contains filtered or unexported fields
}
RespService implements a service for processing requests from other consensus nodes
func NewRespService ¶
func NewRespService(forest forest.Forester, nodeId string, msgBus msgbus.MessageBus, store protocol.BlockchainStore, log protocol.Logger, net protocol.NetService, ac protocol.AccessControlProvider, voter vote.Voter) *RespService
NewRespService initials and returns a RespService object
func (*RespService) HandleRequest ¶
func (s *RespService) HandleRequest(msg *maxbft.ProposalFetchMsg)
HandleRequest handle requests from other consensus nodes
func (*RespService) HandleVoteRequest ¶
func (s *RespService) HandleVoteRequest(msg *maxbft.VoteFetchMsg)
HandleVoteRequest 处理拉取投票请求
Click to show internal directories.
Click to hide internal directories.