Versions in this module Expand all Collapse all v0 v0.0.1 Nov 7, 2024 Changes in this version + type EpochStartShardDataStub struct + GetEpochCalled func() uint32 + GetFirstPendingMetaBlockCalled func() []byte + GetHeaderHashCalled func() []byte + GetLastFinishedMetaBlockCalled func() []byte + GetNonceCalled func() uint64 + GetPendingMiniBlockHeaderHandlersCalled func() []data.MiniBlockHeaderHandler + GetRootHashCalled func() []byte + GetRoundCalled func() uint64 + GetShardIDCalled func() uint32 + SetEpochCalled func(uint32) error + SetFirstPendingMetaBlockCalled func([]byte) error + SetHeaderHashCalled func([]byte) error + SetLastFinishedMetaBlockCalled func([]byte) error + SetNonceCalled func(uint64) error + SetPendingMiniBlockHeadersCalled func([]data.MiniBlockHeaderHandler) error + SetRootHashCalled func([]byte) error + SetRoundCalled func(uint64) error + SetShardIDCalled func(uint32) error + func (essds *EpochStartShardDataStub) GetEpoch() uint32 + func (essds *EpochStartShardDataStub) GetFirstPendingMetaBlock() []byte + func (essds *EpochStartShardDataStub) GetHeaderHash() []byte + func (essds *EpochStartShardDataStub) GetLastFinishedMetaBlock() []byte + func (essds *EpochStartShardDataStub) GetNonce() uint64 + func (essds *EpochStartShardDataStub) GetPendingMiniBlockHeaderHandlers() []data.MiniBlockHeaderHandler + func (essds *EpochStartShardDataStub) GetRootHash() []byte + func (essds *EpochStartShardDataStub) GetRound() uint64 + func (essds *EpochStartShardDataStub) GetShardID() uint32 + func (essds *EpochStartShardDataStub) SetEpoch(epoch uint32) error + func (essds *EpochStartShardDataStub) SetFirstPendingMetaBlock(metaBlock []byte) error + func (essds *EpochStartShardDataStub) SetHeaderHash(hash []byte) error + func (essds *EpochStartShardDataStub) SetLastFinishedMetaBlock(metaBlock []byte) error + func (essds *EpochStartShardDataStub) SetNonce(nonce uint64) error + func (essds *EpochStartShardDataStub) SetPendingMiniBlockHeaders(mbHeaders []data.MiniBlockHeaderHandler) error + func (essds *EpochStartShardDataStub) SetRootHash(rootHash []byte) error + func (essds *EpochStartShardDataStub) SetRound(round uint64) error + func (essds *EpochStartShardDataStub) SetShardID(shardID uint32) error + type HeadersByHashSyncerStub struct + ClearFieldsCalled func() + GetHeadersCalled func() (map[string]data.HeaderHandler, error) + SyncMissingHeadersByHashCalled func(shardIDs []uint32, headersHashes [][]byte, ctx context.Context) error + func (hhss *HeadersByHashSyncerStub) ClearFields() + func (hhss *HeadersByHashSyncerStub) GetHeaders() (map[string]data.HeaderHandler, error) + func (hhss *HeadersByHashSyncerStub) IsInterfaceNil() bool + func (hhss *HeadersByHashSyncerStub) SyncMissingHeadersByHash(shardIDs []uint32, headersHashes [][]byte, ctx context.Context) error + type PendingMiniBlockSyncHandlerStub struct + GetMiniBlocksCalled func() (map[string]*block.MiniBlock, error) + SyncPendingMiniBlocksCalled func(miniBlockHeaders []data.MiniBlockHeaderHandler, ctx context.Context) error + func (pm *PendingMiniBlockSyncHandlerStub) ClearFields() + func (pm *PendingMiniBlockSyncHandlerStub) GetMiniBlocks() (map[string]*block.MiniBlock, error) + func (pm *PendingMiniBlockSyncHandlerStub) IsInterfaceNil() bool + func (pm *PendingMiniBlockSyncHandlerStub) SyncPendingMiniBlocks(miniBlockHeaders []data.MiniBlockHeaderHandler, ctx context.Context) error