proposer

package
v1.8.14 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package proposer is a generated GoMock package.

Index

Constants

View Source
const (
	MaxWindows     = 6
	WindowDuration = 5 * time.Second
	MaxDelay       = MaxWindows * WindowDuration
)

Proposer list constants

Variables

This section is empty.

Functions

This section is empty.

Types

type MockWindower added in v1.8.7

type MockWindower struct {
	// contains filtered or unexported fields
}

MockWindower is a mock of Windower interface.

func NewMockWindower added in v1.8.7

func NewMockWindower(ctrl *gomock.Controller) *MockWindower

NewMockWindower creates a new mock instance.

func (*MockWindower) Delay added in v1.8.7

func (m *MockWindower) Delay(arg0 context.Context, arg1, arg2 uint64, arg3 ids.NodeID) (time.Duration, error)

Delay mocks base method.

func (*MockWindower) EXPECT added in v1.8.7

EXPECT returns an object that allows the caller to indicate expected use.

type MockWindowerMockRecorder added in v1.8.7

type MockWindowerMockRecorder struct {
	// contains filtered or unexported fields
}

MockWindowerMockRecorder is the mock recorder for MockWindower.

func (*MockWindowerMockRecorder) Delay added in v1.8.7

func (mr *MockWindowerMockRecorder) Delay(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Delay indicates an expected call of Delay.

type Windower

type Windower interface {
	Delay(
		ctx context.Context,
		chainHeight,
		pChainHeight uint64,
		validatorID ids.NodeID,
	) (time.Duration, error)
}

func New

func New(state validators.State, subnetID, chainID ids.ID) Windower

Jump to

Keyboard shortcuts

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