Documentation ¶
Index ¶
- type HistoryRepositoryStub
- func (hp *HistoryRepositoryStub) GetESDTSupply(_ string) (string, error)
- func (hp *HistoryRepositoryStub) GetEpochByHash(hash []byte) (uint32, error)
- func (hp *HistoryRepositoryStub) GetMiniblockMetadataByTxHash(hash []byte) (*dblookupext.MiniblockMetadata, error)
- func (hp *HistoryRepositoryStub) GetResultsHashesByTxHash(hash []byte, epoch uint32) (*dblookupext.ResultsHashesByTxHash, error)
- func (hp *HistoryRepositoryStub) IsEnabled() bool
- func (hp *HistoryRepositoryStub) IsInterfaceNil() bool
- func (hp *HistoryRepositoryStub) OnNotarizedBlocks(shardID uint32, headers []data.HeaderHandler, headersHashes [][]byte)
- func (hp *HistoryRepositoryStub) RecordBlock(blockHeaderHash []byte, blockHeader data.HeaderHandler, ...) error
- func (hp *HistoryRepositoryStub) RevertBlock(_ data.HeaderHandler, _ data.BodyHandler) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HistoryRepositoryStub ¶
type HistoryRepositoryStub struct { RecordBlockCalled func(blockHeaderHash []byte, blockHeader data.HeaderHandler, blockBody data.BodyHandler, scrsPool map[string]data.TransactionHandler, receipts map[string]data.TransactionHandler, logs map[string]data.LogHandler) error OnNotarizedBlocksCalled func(shardID uint32, headers []data.HeaderHandler, headersHashes [][]byte) GetMiniblockMetadataByTxHashCalled func(hash []byte) (*dblookupext.MiniblockMetadata, error) GetEpochByHashCalled func(hash []byte) (uint32, error) GetEventsHashesByTxHashCalled func(hash []byte, epoch uint32) (*dblookupext.ResultsHashesByTxHash, error) IsEnabledCalled func() bool }
HistoryRepositoryStub -
func (*HistoryRepositoryStub) GetESDTSupply ¶ added in v1.2.16
func (hp *HistoryRepositoryStub) GetESDTSupply(_ string) (string, error)
GetESDTSupply -
func (*HistoryRepositoryStub) GetEpochByHash ¶
func (hp *HistoryRepositoryStub) GetEpochByHash(hash []byte) (uint32, error)
GetEpochByHash -
func (*HistoryRepositoryStub) GetMiniblockMetadataByTxHash ¶
func (hp *HistoryRepositoryStub) GetMiniblockMetadataByTxHash(hash []byte) (*dblookupext.MiniblockMetadata, error)
GetMiniblockMetadataByTxHash -
func (*HistoryRepositoryStub) GetResultsHashesByTxHash ¶
func (hp *HistoryRepositoryStub) GetResultsHashesByTxHash(hash []byte, epoch uint32) (*dblookupext.ResultsHashesByTxHash, error)
GetResultsHashesByTxHash -
func (*HistoryRepositoryStub) IsEnabled ¶
func (hp *HistoryRepositoryStub) IsEnabled() bool
IsEnabled -
func (*HistoryRepositoryStub) IsInterfaceNil ¶
func (hp *HistoryRepositoryStub) IsInterfaceNil() bool
IsInterfaceNil -
func (*HistoryRepositoryStub) OnNotarizedBlocks ¶
func (hp *HistoryRepositoryStub) OnNotarizedBlocks(shardID uint32, headers []data.HeaderHandler, headersHashes [][]byte)
OnNotarizedBlocks -
func (*HistoryRepositoryStub) RecordBlock ¶
func (hp *HistoryRepositoryStub) RecordBlock( blockHeaderHash []byte, blockHeader data.HeaderHandler, blockBody data.BodyHandler, scrsPool map[string]data.TransactionHandler, receipts map[string]data.TransactionHandler, logs map[string]data.LogHandler, ) error
RecordBlock -
func (*HistoryRepositoryStub) RevertBlock ¶ added in v1.2.16
func (hp *HistoryRepositoryStub) RevertBlock(_ data.HeaderHandler, _ data.BodyHandler) error
RevertBlock -
Click to show internal directories.
Click to hide internal directories.