compensator

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestCompensator

type RequestCompensator interface {
	// SendRequest 发送请求
	SendRequest(nodeId string, missProposal *maxbft.ProposalFetchMsg)
}

RequestCompensator defines a compensator to get missing proposals from other consensus nodes

type ResponseCompensator

type ResponseCompensator interface {
	// HandleRequest 处理请求
	HandleRequest(msg *maxbft.ProposalFetchMsg)

	//HandleVoteRequest 处理拉取投票请求
	HandleVoteRequest(msg *maxbft.VoteFetchMsg)
}

ResponseCompensator 应答补偿器 用于处理需要补偿的maxbft请求

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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