compensator_service

package
v3.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

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 处理拉取投票请求

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL