epochStart

package
v1.3.51-hf01 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EpochStartShardDataStub

type EpochStartShardDataStub struct {
	GetShardIDCalled                        func() uint32
	GetEpochCalled                          func() uint32
	GetRoundCalled                          func() uint64
	GetNonceCalled                          func() uint64
	GetHeaderHashCalled                     func() []byte
	GetRootHashCalled                       func() []byte
	GetFirstPendingMetaBlockCalled          func() []byte
	GetLastFinishedMetaBlockCalled          func() []byte
	GetPendingMiniBlockHeaderHandlersCalled func() []data.MiniBlockHeaderHandler
	SetShardIDCalled                        func(uint32) error
	SetEpochCalled                          func(uint32) error
	SetRoundCalled                          func(uint64) error
	SetNonceCalled                          func(uint64) error
	SetHeaderHashCalled                     func([]byte) error
	SetRootHashCalled                       func([]byte) error
	SetFirstPendingMetaBlockCalled          func([]byte) error
	SetLastFinishedMetaBlockCalled          func([]byte) error
	SetPendingMiniBlockHeadersCalled        func([]data.MiniBlockHeaderHandler) error
}

EpochStartShardDataStub -

func (*EpochStartShardDataStub) GetEpoch

func (essds *EpochStartShardDataStub) GetEpoch() uint32

GetEpoch -

func (*EpochStartShardDataStub) GetFirstPendingMetaBlock

func (essds *EpochStartShardDataStub) GetFirstPendingMetaBlock() []byte

GetFirstPendingMetaBlock -

func (*EpochStartShardDataStub) GetHeaderHash

func (essds *EpochStartShardDataStub) GetHeaderHash() []byte

GetHeaderHash -

func (*EpochStartShardDataStub) GetLastFinishedMetaBlock

func (essds *EpochStartShardDataStub) GetLastFinishedMetaBlock() []byte

GetLastFinishedMetaBlock -

func (*EpochStartShardDataStub) GetNonce

func (essds *EpochStartShardDataStub) GetNonce() uint64

GetNonce -

func (*EpochStartShardDataStub) GetPendingMiniBlockHeaderHandlers

func (essds *EpochStartShardDataStub) GetPendingMiniBlockHeaderHandlers() []data.MiniBlockHeaderHandler

GetPendingMiniBlockHeaderHandlers -

func (*EpochStartShardDataStub) GetRootHash

func (essds *EpochStartShardDataStub) GetRootHash() []byte

GetRootHash -

func (*EpochStartShardDataStub) GetRound

func (essds *EpochStartShardDataStub) GetRound() uint64

GetRound -

func (*EpochStartShardDataStub) GetShardID

func (essds *EpochStartShardDataStub) GetShardID() uint32

GetShardID -

func (*EpochStartShardDataStub) SetEpoch

func (essds *EpochStartShardDataStub) SetEpoch(epoch uint32) error

SetEpoch -

func (*EpochStartShardDataStub) SetFirstPendingMetaBlock

func (essds *EpochStartShardDataStub) SetFirstPendingMetaBlock(metaBlock []byte) error

SetFirstPendingMetaBlock -

func (*EpochStartShardDataStub) SetHeaderHash

func (essds *EpochStartShardDataStub) SetHeaderHash(hash []byte) error

SetHeaderHash -

func (*EpochStartShardDataStub) SetLastFinishedMetaBlock

func (essds *EpochStartShardDataStub) SetLastFinishedMetaBlock(metaBlock []byte) error

SetLastFinishedMetaBlock -

func (*EpochStartShardDataStub) SetNonce

func (essds *EpochStartShardDataStub) SetNonce(nonce uint64) error

SetNonce -

func (*EpochStartShardDataStub) SetPendingMiniBlockHeaders

func (essds *EpochStartShardDataStub) SetPendingMiniBlockHeaders(mbHeaders []data.MiniBlockHeaderHandler) error

SetPendingMiniBlockHeaders -

func (*EpochStartShardDataStub) SetRootHash

func (essds *EpochStartShardDataStub) SetRootHash(rootHash []byte) error

SetRootHash -

func (*EpochStartShardDataStub) SetRound

func (essds *EpochStartShardDataStub) SetRound(round uint64) error

SetRound -

func (*EpochStartShardDataStub) SetShardID

func (essds *EpochStartShardDataStub) SetShardID(shardID uint32) error

SetShardID -

type HeadersByHashSyncerStub

type HeadersByHashSyncerStub struct {
	SyncMissingHeadersByHashCalled func(shardIDs []uint32, headersHashes [][]byte, ctx context.Context) error
	GetHeadersCalled               func() (map[string]data.HeaderHandler, error)
	ClearFieldsCalled              func()
}

HeadersByHashSyncerStub --

func (*HeadersByHashSyncerStub) ClearFields

func (hhss *HeadersByHashSyncerStub) ClearFields()

ClearFields --

func (*HeadersByHashSyncerStub) GetHeaders

func (hhss *HeadersByHashSyncerStub) GetHeaders() (map[string]data.HeaderHandler, error)

GetHeaders --

func (*HeadersByHashSyncerStub) IsInterfaceNil

func (hhss *HeadersByHashSyncerStub) IsInterfaceNil() bool

IsInterfaceNil --

func (*HeadersByHashSyncerStub) SyncMissingHeadersByHash

func (hhss *HeadersByHashSyncerStub) SyncMissingHeadersByHash(shardIDs []uint32, headersHashes [][]byte, ctx context.Context) error

SyncMissingHeadersByHash --

type PendingMiniBlockSyncHandlerStub

type PendingMiniBlockSyncHandlerStub struct {
	SyncPendingMiniBlocksCalled func(miniBlockHeaders []data.MiniBlockHeaderHandler, ctx context.Context) error
	GetMiniBlocksCalled         func() (map[string]*block.MiniBlock, error)
}

PendingMiniBlockSyncHandlerStub -

func (*PendingMiniBlockSyncHandlerStub) ClearFields

func (pm *PendingMiniBlockSyncHandlerStub) ClearFields()

ClearFields --

func (*PendingMiniBlockSyncHandlerStub) GetMiniBlocks

func (pm *PendingMiniBlockSyncHandlerStub) GetMiniBlocks() (map[string]*block.MiniBlock, error)

GetMiniBlocks -

func (*PendingMiniBlockSyncHandlerStub) IsInterfaceNil

func (pm *PendingMiniBlockSyncHandlerStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*PendingMiniBlockSyncHandlerStub) SyncPendingMiniBlocks

func (pm *PendingMiniBlockSyncHandlerStub) SyncPendingMiniBlocks(miniBlockHeaders []data.MiniBlockHeaderHandler, ctx context.Context) error

SyncPendingMiniBlocks -

Jump to

Keyboard shortcuts

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