processMocks

package
v1.11.5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: GPL-3.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ForkDetectorStub

type ForkDetectorStub struct {
	AddHeaderCalled                 func(header data.HeaderHandler, hash []byte, state process.BlockHeaderState, selfNotarizedHeaders []data.HeaderHandler, selfNotarizedHeadersHashes [][]byte) error
	RemoveHeaderCalled              func(nonce uint64, hash []byte)
	CheckForkCalled                 func() *process.ForkInfo
	GetHighestFinalBlockNonceCalled func() uint64
	GetHighestFinalBlockHashCalled  func() []byte
	ProbableHighestNonceCalled      func() uint64
	ResetForkCalled                 func()
	GetNotarizedHeaderHashCalled    func(nonce uint64) []byte
	SetRollBackNonceCalled          func(nonce uint64)
	RestoreToGenesisCalled          func()
	ResetProbableHighestNonceCalled func()
	SetFinalToLastCheckpointCalled  func()
	ReceivedProofCalled             func(proof data.HeaderProofHandler)
	AddCheckpointCalled             func(nonce uint64, round uint64, hash []byte)
}

ForkDetectorStub -

func (*ForkDetectorStub) AddCheckpoint added in v1.9.0

func (fdm *ForkDetectorStub) AddCheckpoint(nonce uint64, round uint64, hash []byte)

AddCheckpoint -

func (*ForkDetectorStub) AddHeader

func (fdm *ForkDetectorStub) AddHeader(header data.HeaderHandler, hash []byte, state process.BlockHeaderState, selfNotarizedHeaders []data.HeaderHandler, selfNotarizedHeadersHashes [][]byte) error

AddHeader -

func (*ForkDetectorStub) CheckFork

func (fdm *ForkDetectorStub) CheckFork() *process.ForkInfo

CheckFork -

func (*ForkDetectorStub) GetHighestFinalBlockHash

func (fdm *ForkDetectorStub) GetHighestFinalBlockHash() []byte

GetHighestFinalBlockHash -

func (*ForkDetectorStub) GetHighestFinalBlockNonce

func (fdm *ForkDetectorStub) GetHighestFinalBlockNonce() uint64

GetHighestFinalBlockNonce -

func (*ForkDetectorStub) GetNotarizedHeaderHash

func (fdm *ForkDetectorStub) GetNotarizedHeaderHash(nonce uint64) []byte

GetNotarizedHeaderHash -

func (*ForkDetectorStub) IsInterfaceNil

func (fdm *ForkDetectorStub) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*ForkDetectorStub) ProbableHighestNonce

func (fdm *ForkDetectorStub) ProbableHighestNonce() uint64

ProbableHighestNonce -

func (*ForkDetectorStub) ReceivedProof added in v1.9.0

func (fdm *ForkDetectorStub) ReceivedProof(proof data.HeaderProofHandler)

ReceivedProof -

func (*ForkDetectorStub) RemoveHeader

func (fdm *ForkDetectorStub) RemoveHeader(nonce uint64, hash []byte)

RemoveHeader -

func (*ForkDetectorStub) ResetFork

func (fdm *ForkDetectorStub) ResetFork()

ResetFork -

func (*ForkDetectorStub) ResetProbableHighestNonce

func (fdm *ForkDetectorStub) ResetProbableHighestNonce()

ResetProbableHighestNonce -

func (*ForkDetectorStub) RestoreToGenesis

func (fdm *ForkDetectorStub) RestoreToGenesis()

RestoreToGenesis -

func (*ForkDetectorStub) SetFinalToLastCheckpoint

func (fdm *ForkDetectorStub) SetFinalToLastCheckpoint()

SetFinalToLastCheckpoint -

func (*ForkDetectorStub) SetRollBackNonce

func (fdm *ForkDetectorStub) SetRollBackNonce(nonce uint64)

SetRollBackNonce -

type HeaderProofHandlerStub added in v1.9.1

type HeaderProofHandlerStub struct {
	GetPubKeysBitmapCalled       func() []byte
	GetAggregatedSignatureCalled func() []byte
	GetHeaderHashCalled          func() []byte
	GetHeaderEpochCalled         func() uint32
	GetHeaderNonceCalled         func() uint64
	GetHeaderShardIdCalled       func() uint32
	GetHeaderRoundCalled         func() uint64
	GetIsStartOfEpochCalled      func() bool
}

HeaderProofHandlerStub -

func (*HeaderProofHandlerStub) GetAggregatedSignature added in v1.9.1

func (h *HeaderProofHandlerStub) GetAggregatedSignature() []byte

GetAggregatedSignature -

func (*HeaderProofHandlerStub) GetHeaderEpoch added in v1.9.1

func (h *HeaderProofHandlerStub) GetHeaderEpoch() uint32

GetHeaderEpoch -

func (*HeaderProofHandlerStub) GetHeaderHash added in v1.9.1

func (h *HeaderProofHandlerStub) GetHeaderHash() []byte

GetHeaderHash -

func (*HeaderProofHandlerStub) GetHeaderNonce added in v1.9.1

func (h *HeaderProofHandlerStub) GetHeaderNonce() uint64

GetHeaderNonce -

func (*HeaderProofHandlerStub) GetHeaderRound added in v1.9.1

func (h *HeaderProofHandlerStub) GetHeaderRound() uint64

GetHeaderRound -

func (*HeaderProofHandlerStub) GetHeaderShardId added in v1.9.1

func (h *HeaderProofHandlerStub) GetHeaderShardId() uint32

GetHeaderShardId -

func (*HeaderProofHandlerStub) GetIsStartOfEpoch added in v1.9.1

func (h *HeaderProofHandlerStub) GetIsStartOfEpoch() bool

GetIsStartOfEpoch -

func (*HeaderProofHandlerStub) GetPubKeysBitmap added in v1.9.1

func (h *HeaderProofHandlerStub) GetPubKeysBitmap() []byte

GetPubKeysBitmap -

func (*HeaderProofHandlerStub) IsInterfaceNil added in v1.9.1

func (h *HeaderProofHandlerStub) IsInterfaceNil() bool

IsInterfaceNil -

Jump to

Keyboard shortcuts

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