outport

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutportDataProviderStub

type OutportDataProviderStub struct {
	PrepareOutportSaveBlockDataCalled func(
		arg process.ArgPrepareOutportSaveBlockData,
	) (*outportcore.ArgsSaveBlockData, error)
}

OutportDataProviderStub -

func (*OutportDataProviderStub) IsInterfaceNil

func (a *OutportDataProviderStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*OutportDataProviderStub) PrepareOutportSaveBlockData

PrepareOutportSaveBlockData -

type OutportStub

type OutportStub struct {
	SaveBlockCalled             func(args *outportcore.ArgsSaveBlockData)
	SaveValidatorsRatingCalled  func(index string, validatorsInfo []*outportcore.ValidatorRatingInfo)
	SaveValidatorsPubKeysCalled func(shardPubKeys map[uint32][][]byte, epoch uint32)
	HasDriversCalled            func() bool
}

OutportStub is a mock implementation fot the OutportHandler interface

func (*OutportStub) Close

func (as *OutportStub) Close() error

Close -

func (*OutportStub) FinalizedBlock

func (as *OutportStub) FinalizedBlock(_ []byte)

FinalizedBlock -

func (*OutportStub) HasDrivers

func (as *OutportStub) HasDrivers() bool

HasDrivers -

func (*OutportStub) IsInterfaceNil

func (as *OutportStub) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*OutportStub) RevertIndexedBlock

func (as *OutportStub) RevertIndexedBlock(_ data.HeaderHandler, _ data.BodyHandler)

RevertIndexedBlock -

func (*OutportStub) SaveAccounts

func (as *OutportStub) SaveAccounts(_ uint64, _ map[string]*outportcore.AlteredAccount, _ uint32)

SaveAccounts -

func (*OutportStub) SaveBlock

func (as *OutportStub) SaveBlock(args *outportcore.ArgsSaveBlockData)

SaveBlock -

func (*OutportStub) SaveRoundsInfo

func (as *OutportStub) SaveRoundsInfo(_ []*outportcore.RoundInfo)

SaveRoundsInfo -

func (*OutportStub) SaveValidatorsPubKeys

func (as *OutportStub) SaveValidatorsPubKeys(shardPubKeys map[uint32][][]byte, epoch uint32)

SaveValidatorsPubKeys -

func (*OutportStub) SaveValidatorsRating

func (as *OutportStub) SaveValidatorsRating(index string, validatorsInfo []*outportcore.ValidatorRatingInfo)

SaveValidatorsRating -

func (*OutportStub) SubscribeDriver

func (as *OutportStub) SubscribeDriver(_ outport.Driver) error

SubscribeDriver -

Jump to

Keyboard shortcuts

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