Versions in this module Expand all Collapse all v1 v1.999.0 Nov 17, 2022 Changes in this version + const HashSize + var ErrMockMarshalizer = errors.New("MarshalizerMock generic error") + var RealWorldBech32PubkeyConverter = pubkeyConverter.NewBech32PubkeyConverter(32, logger.GetOrCreate("testscommon")) + var TestAddressAlice = "erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th" + var TestAddressBob = "erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx" + var TestPubKeyAlice = RealWorldBech32PubkeyConverter.Decode(TestAddressAlice) + var TestPubKeyBob = RealWorldBech32PubkeyConverter.Decode(TestAddressBob) + var TestPubKeyHexAlice = hex.EncodeToString(TestPubKeyAlice) + var TestPubKeyHexBob = hex.EncodeToString(TestPubKeyBob) + func AddTimestampSuffix(tag string) string + func CreateGinContextWithRawQuery(rawQuery string) *gin.Context + func CreateMemUnit() storage.Storer + func GetEconomicsConfig() config.EconomicsConfig + func GetGeneralConfig() config.Config + func NewNonceHashConverterMock() *nonceHashConverterMock + func NewTimeoutHandlerMock(timeout time.Duration) *timeoutHandlerMock + type AlarmSchedulerStub struct + AddCalled func(func(alarmID string), time.Duration, string) + CancelCalled func(string) + CloseCalled func() + ResetCalled func(string) + func (a *AlarmSchedulerStub) Add(callback func(alarmID string), duration time.Duration, alarmID string) + func (a *AlarmSchedulerStub) Cancel(alarmID string) + func (a *AlarmSchedulerStub) Close() + func (a *AlarmSchedulerStub) IsInterfaceNil() bool + func (a *AlarmSchedulerStub) Reset(alarmID string) + type BalanceComputationStub struct + AddBalanceToAddressCalled func(address []byte, value *big.Int) bool + AddressHasEnoughBalanceCalled func(address []byte, value *big.Int) bool + InitCalled func() + IsAddressSetCalled func(address []byte) bool + SetBalanceToAddressCalled func(address []byte, value *big.Int) + SubBalanceFromAddressCalled func(address []byte, value *big.Int) bool + func (bcs *BalanceComputationStub) AddBalanceToAddress(address []byte, value *big.Int) bool + func (bcs *BalanceComputationStub) AddressHasEnoughBalance(address []byte, value *big.Int) bool + func (bcs *BalanceComputationStub) Init() + func (bcs *BalanceComputationStub) IsAddressSet(address []byte) bool + func (bcs *BalanceComputationStub) IsInterfaceNil() bool + func (bcs *BalanceComputationStub) SetBalanceToAddress(address []byte, value *big.Int) + func (bcs *BalanceComputationStub) SubBalanceFromAddress(address []byte, value *big.Int) bool + type BlockChainHookStub struct + ApplyFiltersOnCodeMetadataCalled func(codeMetadata vmcommon.CodeMetadata) vmcommon.CodeMetadata + ClearCompiledCodesCalled func() + CloseCalled func() error + CurrentEpochCalled func() uint32 + CurrentNonceCalled func() uint64 + CurrentRandomSeedCalled func() []byte + CurrentRoundCalled func() uint64 + CurrentTimeStampCalled func() uint64 + DeleteCompiledCodeCalled func(codeHash []byte) + FilterCodeMetadataForUpgradeCalled func(input []byte) ([]byte, error) + GetAllStateCalled func(address []byte) (map[string][]byte, error) + GetBlockHashCalled func(nonce uint64) ([]byte, error) + GetBuiltinFunctionNamesCalled func() vmcommon.FunctionNames + GetBuiltinFunctionsContainerCalled func() vmcommon.BuiltInFunctionContainer + GetCodeCalled func(account vmcommon.UserAccountHandler) []byte + GetCompiledCodeCalled func(codeHash []byte) (bool, []byte) + GetESDTTokenCalled func(address []byte, tokenID []byte, nonce uint64) (*esdt.ESDigitalToken, error) + GetShardOfAddressCalled func(address []byte) uint32 + GetSnapshotCalled func() int + GetStateRootHashCalled func() []byte + GetStorageDataCalled func(accountsAddress []byte, index []byte) ([]byte, error) + GetUserAccountCalled func(address []byte) (vmcommon.UserAccountHandler, error) + IsPayableCalled func(sndAddress []byte, recvAddress []byte) (bool, error) + IsSmartContractCalled func(address []byte) bool + LastEpochCalled func() uint32 + LastNonceCalled func() uint64 + LastRandomSeedCalled func() []byte + LastRoundCalled func() uint64 + LastTimeStampCalled func() uint64 + NewAddressCalled func(creatorAddress []byte, creatorNonce uint64, vmType []byte) ([]byte, error) + NumberOfShardsCalled func() uint32 + ProcessBuiltInFunctionCalled func(input *vmcommon.ContractCallInput) (*vmcommon.VMOutput, error) + RevertToSnapshotCalled func(snapshot int) error + SaveCompiledCodeCalled func(codeHash []byte, code []byte) + SaveNFTMetaDataToSystemAccountCalled func(tx data.TransactionHandler) error + SetCurrentHeaderCalled func(hdr data.HeaderHandler) + func (stub *BlockChainHookStub) ApplyFiltersOnCodeMetadata(codeMetadata vmcommon.CodeMetadata) vmcommon.CodeMetadata + func (stub *BlockChainHookStub) ClearCompiledCodes() + func (stub *BlockChainHookStub) Close() error + func (stub *BlockChainHookStub) CurrentEpoch() uint32 + func (stub *BlockChainHookStub) CurrentNonce() uint64 + func (stub *BlockChainHookStub) CurrentRandomSeed() []byte + func (stub *BlockChainHookStub) CurrentRound() uint64 + func (stub *BlockChainHookStub) CurrentTimeStamp() uint64 + func (stub *BlockChainHookStub) DeleteCompiledCode(codeHash []byte) + func (stub *BlockChainHookStub) FilterCodeMetadataForUpgrade(input []byte) ([]byte, error) + func (stub *BlockChainHookStub) GetAllState(address []byte) (map[string][]byte, error) + func (stub *BlockChainHookStub) GetBlockhash(nonce uint64) ([]byte, error) + func (stub *BlockChainHookStub) GetBuiltinFunctionNames() vmcommon.FunctionNames + func (stub *BlockChainHookStub) GetBuiltinFunctionsContainer() vmcommon.BuiltInFunctionContainer + func (stub *BlockChainHookStub) GetCode(account vmcommon.UserAccountHandler) []byte + func (stub *BlockChainHookStub) GetCompiledCode(codeHash []byte) (bool, []byte) + func (stub *BlockChainHookStub) GetESDTToken(address []byte, tokenID []byte, nonce uint64) (*esdt.ESDigitalToken, error) + func (stub *BlockChainHookStub) GetShardOfAddress(address []byte) uint32 + func (stub *BlockChainHookStub) GetSnapshot() int + func (stub *BlockChainHookStub) GetStateRootHash() []byte + func (stub *BlockChainHookStub) GetStorageData(accountAddress []byte, index []byte) ([]byte, error) + func (stub *BlockChainHookStub) GetUserAccount(address []byte) (vmcommon.UserAccountHandler, error) + func (stub *BlockChainHookStub) IsInterfaceNil() bool + func (stub *BlockChainHookStub) IsLimitedTransfer(_ []byte) bool + func (stub *BlockChainHookStub) IsPaused(_ []byte) bool + func (stub *BlockChainHookStub) IsPayable(sndAddress []byte, recvAddress []byte) (bool, error) + func (stub *BlockChainHookStub) IsSmartContract(address []byte) bool + func (stub *BlockChainHookStub) LastEpoch() uint32 + func (stub *BlockChainHookStub) LastNonce() uint64 + func (stub *BlockChainHookStub) LastRandomSeed() []byte + func (stub *BlockChainHookStub) LastRound() uint64 + func (stub *BlockChainHookStub) LastTimeStamp() uint64 + func (stub *BlockChainHookStub) NewAddress(creatorAddress []byte, creatorNonce uint64, vmType []byte) ([]byte, error) + func (stub *BlockChainHookStub) NumberOfShards() uint32 + func (stub *BlockChainHookStub) ProcessBuiltInFunction(input *vmcommon.ContractCallInput) (*vmcommon.VMOutput, error) + func (stub *BlockChainHookStub) RevertToSnapshot(snapshot int) error + func (stub *BlockChainHookStub) SaveCompiledCode(codeHash []byte, code []byte) + func (stub *BlockChainHookStub) SaveNFTMetaDataToSystemAccount(tx data.TransactionHandler) error + func (stub *BlockChainHookStub) SetCurrentHeader(hdr data.HeaderHandler) + type BlockInfoProviderStub struct + GetBlockInfoCalled func() common.BlockInfo + func (stub *BlockInfoProviderStub) GetBlockInfo() common.BlockInfo + func (stub *BlockInfoProviderStub) IsInterfaceNil() bool + type BlockSizeComputationStub struct + AddNumMiniBlocksCalled func(int) + AddNumTxsCalled func(int) + InitCalled func() + IsMaxBlockSizeReachedCalled func(int, int) bool + IsMaxBlockSizeWithoutThrottleReachedCalled func(int, int) bool + func (bscs *BlockSizeComputationStub) AddNumMiniBlocks(numMiniBlocks int) + func (bscs *BlockSizeComputationStub) AddNumTxs(numTxs int) + func (bscs *BlockSizeComputationStub) Init() + func (bscs *BlockSizeComputationStub) IsInterfaceNil() bool + func (bscs *BlockSizeComputationStub) IsMaxBlockSizeReached(numNewMiniBlocks int, numNewTxs int) bool + func (bscs *BlockSizeComputationStub) IsMaxBlockSizeWithoutThrottleReached(numNewMiniBlocks int, numNewTxs int) bool + type BuiltInCostHandlerStub struct + ComputeBuiltInCostCalled func(tx data.TransactionWithFeeHandler) uint64 + IsBuiltInFuncCallCalled func(tx data.TransactionWithFeeHandler) bool + func (stub *BuiltInCostHandlerStub) ComputeBuiltInCost(tx data.TransactionWithFeeHandler) uint64 + func (stub *BuiltInCostHandlerStub) IsBuiltInFuncCall(tx data.TransactionWithFeeHandler) bool + func (stub *BuiltInCostHandlerStub) IsInterfaceNil() bool + type CacherMock struct + func NewCacherMock() *CacherMock + func (cacher *CacherMock) Clear() + func (cacher *CacherMock) Close() error + func (cacher *CacherMock) Get(key []byte) (value interface{}, ok bool) + func (cacher *CacherMock) Has(key []byte) bool + func (cacher *CacherMock) HasOrAdd(key []byte, value interface{}, _ int) (has, added bool) + func (cacher *CacherMock) IsInterfaceNil() bool + func (cacher *CacherMock) Keys() [][]byte + func (cacher *CacherMock) Len() int + func (cacher *CacherMock) MaxSize() int + func (cacher *CacherMock) Peek(key []byte) (value interface{}, ok bool) + func (cacher *CacherMock) Put(key []byte, value interface{}, _ int) (evicted bool) + func (cacher *CacherMock) RegisterHandler(handler func(key []byte, value interface{}), _ string) + func (cacher *CacherMock) Remove(key []byte) + func (cacher *CacherMock) SizeInBytesContained() uint64 + func (cacher *CacherMock) UnRegisterHandler(string) + type CacherStub struct + ClearCalled func() + CloseCalled func() error + GetCalled func(key []byte) (value interface{}, ok bool) + HasCalled func(key []byte) bool + HasOrAddCalled func(key []byte, value interface{}, sizeInBytes int) (has, added bool) + KeysCalled func() [][]byte + LenCalled func() int + MaxSizeCalled func() int + PeekCalled func(key []byte) (value interface{}, ok bool) + PutCalled func(key []byte, value interface{}, sizeInBytes int) (evicted bool) + RegisterHandlerCalled func(func(key []byte, value interface{})) + RemoveCalled func(key []byte) + RemoveOldestCalled func() + UnRegisterHandlerCalled func(id string) + func NewCacherStub() *CacherStub + func (cacher *CacherStub) Clear() + func (cacher *CacherStub) Close() error + func (cacher *CacherStub) Get(key []byte) (value interface{}, ok bool) + func (cacher *CacherStub) Has(key []byte) bool + func (cacher *CacherStub) HasOrAdd(key []byte, value interface{}, sizeInBytes int) (has, added bool) + func (cacher *CacherStub) IsInterfaceNil() bool + func (cacher *CacherStub) Keys() [][]byte + func (cacher *CacherStub) Len() int + func (cacher *CacherStub) MaxSize() int + func (cacher *CacherStub) Peek(key []byte) (value interface{}, ok bool) + func (cacher *CacherStub) Put(key []byte, value interface{}, sizeInBytes int) (evicted bool) + func (cacher *CacherStub) RegisterHandler(handler func(key []byte, value interface{}), _ string) + func (cacher *CacherStub) Remove(key []byte) + func (cacher *CacherStub) SizeInBytesContained() uint64 + func (cacher *CacherStub) UnRegisterHandler(id string) + type ChainHandlerMock struct + func (mock *ChainHandlerMock) GetCurrentBlockHeader() data.HeaderHandler + func (mock *ChainHandlerMock) GetCurrentBlockHeaderHash() []byte + func (mock *ChainHandlerMock) GetCurrentBlockRootHash() []byte + func (mock *ChainHandlerMock) GetFinalBlockInfo() (nonce uint64, blockHash []byte, rootHash []byte) + func (mock *ChainHandlerMock) GetGenesisHeader() data.HeaderHandler + func (mock *ChainHandlerMock) GetGenesisHeaderHash() []byte + func (mock *ChainHandlerMock) IsInterfaceNil() bool + func (mock *ChainHandlerMock) SetCurrentBlockHeaderAndRootHash(header data.HeaderHandler, rootHash []byte) error + func (mock *ChainHandlerMock) SetCurrentBlockHeaderHash(hash []byte) + func (mock *ChainHandlerMock) SetFinalBlockInfo(nonce uint64, headerHash []byte, rootHash []byte) + func (mock *ChainHandlerMock) SetGenesisHeader(genesisBlock data.HeaderHandler) error + func (mock *ChainHandlerMock) SetGenesisHeaderHash(hash []byte) + type ChainHandlerStub struct + GetCurrentBlockHeaderCalled func() data.HeaderHandler + GetCurrentBlockHeaderHashCalled func() []byte + GetCurrentBlockRootHashCalled func() []byte + GetFinalBlockInfoCalled func() (nonce uint64, blockHash []byte, rootHash []byte) + GetGenesisHeaderCalled func() data.HeaderHandler + GetGenesisHeaderHashCalled func() []byte + SetCurrentBlockHeaderAndRootHashCalled func(header data.HeaderHandler, rootHash []byte) error + SetCurrentBlockHeaderHashCalled func([]byte) + SetFinalBlockInfoCalled func(nonce uint64, headerHash []byte, rootHash []byte) + SetGenesisHeaderCalled func(handler data.HeaderHandler) error + SetGenesisHeaderHashCalled func([]byte) + func (stub *ChainHandlerStub) GetCurrentBlockHeader() data.HeaderHandler + func (stub *ChainHandlerStub) GetCurrentBlockHeaderHash() []byte + func (stub *ChainHandlerStub) GetCurrentBlockRootHash() []byte + func (stub *ChainHandlerStub) GetFinalBlockInfo() (nonce uint64, blockHash []byte, rootHash []byte) + func (stub *ChainHandlerStub) GetGenesisHeader() data.HeaderHandler + func (stub *ChainHandlerStub) GetGenesisHeaderHash() []byte + func (stub *ChainHandlerStub) IsInterfaceNil() bool + func (stub *ChainHandlerStub) SetCurrentBlockHeaderAndRootHash(header data.HeaderHandler, rootHash []byte) error + func (stub *ChainHandlerStub) SetCurrentBlockHeaderHash(hash []byte) + func (stub *ChainHandlerStub) SetFinalBlockInfo(nonce uint64, headerHash []byte, rootHash []byte) + func (stub *ChainHandlerStub) SetGenesisHeader(genesisBlock data.HeaderHandler) error + func (stub *ChainHandlerStub) SetGenesisHeaderHash(hash []byte) + type CurrentEpochProviderStub struct + EpochIsActiveInNetworkCalled func(epoch uint32) bool + func (c *CurrentEpochProviderStub) EpochIsActiveInNetwork(epoch uint32) bool + func (c *CurrentEpochProviderStub) IsInterfaceNil() bool + type CustomDatabaseRemoverStub struct + ShouldRemoveCalled func(dbIdentifier string, epoch uint32) bool + func (c *CustomDatabaseRemoverStub) IsInterfaceNil() bool + func (c *CustomDatabaseRemoverStub) ShouldRemove(dbIdentifier string, epoch uint32) bool + type DataFieldParserStub struct + ParseCalled func(dataField []byte, sender, receiver []byte) *datafield.ResponseParseData + func (df *DataFieldParserStub) Parse(dataField []byte, sender, receiver []byte) *datafield.ResponseParseData + type ESDTGlobalSettingsHandlerStub struct + IsLimitedTransferCalled func(esdtTokenKey []byte) bool + IsPausedCalled func(esdtTokenKey []byte) bool + func (e *ESDTGlobalSettingsHandlerStub) IsInterfaceNil() bool + func (e *ESDTGlobalSettingsHandlerStub) IsLimitedTransfer(esdtTokenKey []byte) bool + func (e *ESDTGlobalSettingsHandlerStub) IsPaused(esdtTokenKey []byte) bool + type EpochStartTriggerStub struct + EpochCalled func() uint32 + EpochFinalityAttestingRoundCalled func() uint64 + EpochStartMetaHdrHashCalled func() []byte + EpochStartRoundCalled func() uint64 + ForceEpochStartCalled func(round uint64) + IsEpochStartCalled func() bool + MetaEpochCalled func() uint32 + ProcessedCalled func(header data.HeaderHandler) + ReceivedHeaderCalled func(handler data.HeaderHandler) + UpdateCalled func(round uint64, nonce uint64) + func (e *EpochStartTriggerStub) Close() error + func (e *EpochStartTriggerStub) Epoch() uint32 + func (e *EpochStartTriggerStub) EpochFinalityAttestingRound() uint64 + func (e *EpochStartTriggerStub) EpochStartMetaHdrHash() []byte + func (e *EpochStartTriggerStub) EpochStartRound() uint64 + func (e *EpochStartTriggerStub) ForceEpochStart(round uint64) + func (e *EpochStartTriggerStub) GetSavedStateKey() []byte + func (e *EpochStartTriggerStub) IsEpochStart() bool + func (e *EpochStartTriggerStub) IsInterfaceNil() bool + func (e *EpochStartTriggerStub) LoadState(_ []byte) error + func (e *EpochStartTriggerStub) MetaEpoch() uint32 + func (e *EpochStartTriggerStub) NotifyAll(_ data.HeaderHandler) + func (e *EpochStartTriggerStub) RequestEpochStartIfNeeded(_ data.HeaderHandler) + func (e *EpochStartTriggerStub) Revert(_ data.HeaderHandler) + func (e *EpochStartTriggerStub) RevertStateToBlock(_ data.HeaderHandler) error + func (e *EpochStartTriggerStub) SetAppStatusHandler(_ core.AppStatusHandler) error + func (e *EpochStartTriggerStub) SetCurrentEpochStartRound(_ uint64) + func (e *EpochStartTriggerStub) SetFinalityAttestingRound(_ uint64) + func (e *EpochStartTriggerStub) SetProcessed(header data.HeaderHandler, _ data.BodyHandler) + func (e *EpochStartTriggerStub) Update(round uint64, nonce uint64) + type FallBackHeaderValidatorStub struct + ShouldApplyFallbackValidationCalled func(headerHandler data.HeaderHandler) bool + func (fhvs *FallBackHeaderValidatorStub) IsInterfaceNil() bool + func (fhvs *FallBackHeaderValidatorStub) ShouldApplyFallbackValidation(headerHandler data.HeaderHandler) bool + type FeeComputerStub struct + ComputeTransactionFeeCalled func(tx *transaction.ApiTransactionResult) *big.Int + func (stub *FeeComputerStub) ComputeTransactionFee(tx *transaction.ApiTransactionResult) *big.Int + func (stub *FeeComputerStub) IsInterfaceNil() bool + type GasHandlerStub struct + ComputeGasProvidedByMiniBlockCalled func(miniBlock *block.MiniBlock, mapHashTx map[string]data.TransactionHandler) (uint64, uint64, error) + ComputeGasProvidedByTxCalled func(txSenderShardId uint32, txReceiverSharedId uint32, ...) (uint64, uint64, error) + GasPenalizedCalled func(hash []byte) uint64 + GasProvidedAsScheduledCalled func(hash []byte) uint64 + GasProvidedCalled func(hash []byte) uint64 + GasRefundedCalled func(hash []byte) uint64 + InitCalled func() + RemoveGasPenalizedCalled func(hashes [][]byte) + RemoveGasProvidedAsScheduledCalled func(hashes [][]byte) + RemoveGasProvidedCalled func(hashes [][]byte) + RemoveGasRefundedCalled func(hashes [][]byte) + ResetCalled func(key []byte) + RestoreGasSinceLastResetCalled func(key []byte) + SetGasPenalizedCalled func(gasPenalized uint64, hash []byte) + SetGasProvidedAsScheduledCalled func(gasProvided uint64, hash []byte) + SetGasProvidedCalled func(gasProvided uint64, hash []byte) + SetGasRefundedCalled func(gasRefunded uint64, hash []byte) + TotalGasPenalizedCalled func() uint64 + TotalGasProvidedAsScheduledCalled func() uint64 + TotalGasProvidedCalled func() uint64 + TotalGasProvidedWithScheduledCalled func() uint64 + TotalGasRefundedCalled func() uint64 + func (ghs *GasHandlerStub) ComputeGasProvidedByMiniBlock(miniBlock *block.MiniBlock, mapHashTx map[string]data.TransactionHandler) (uint64, uint64, error) + func (ghs *GasHandlerStub) ComputeGasProvidedByTx(txSenderShardId uint32, txReceiverShardId uint32, ...) (uint64, uint64, error) + func (ghs *GasHandlerStub) GasPenalized(hash []byte) uint64 + func (ghs *GasHandlerStub) GasProvided(hash []byte) uint64 + func (ghs *GasHandlerStub) GasProvidedAsScheduled(hash []byte) uint64 + func (ghs *GasHandlerStub) GasRefunded(hash []byte) uint64 + func (ghs *GasHandlerStub) Init() + func (ghs *GasHandlerStub) IsInterfaceNil() bool + func (ghs *GasHandlerStub) RemoveGasPenalized(hashes [][]byte) + func (ghs *GasHandlerStub) RemoveGasProvided(hashes [][]byte) + func (ghs *GasHandlerStub) RemoveGasProvidedAsScheduled(hashes [][]byte) + func (ghs *GasHandlerStub) RemoveGasRefunded(hashes [][]byte) + func (ghs *GasHandlerStub) Reset(key []byte) + func (ghs *GasHandlerStub) RestoreGasSinceLastReset(key []byte) + func (ghs *GasHandlerStub) SetGasPenalized(gasPenalized uint64, hash []byte) + func (ghs *GasHandlerStub) SetGasProvided(gasProvided uint64, hash []byte) + func (ghs *GasHandlerStub) SetGasProvidedAsScheduled(gasProvided uint64, hash []byte) + func (ghs *GasHandlerStub) SetGasRefunded(gasRefunded uint64, hash []byte) + func (ghs *GasHandlerStub) TotalGasPenalized() uint64 + func (ghs *GasHandlerStub) TotalGasProvided() uint64 + func (ghs *GasHandlerStub) TotalGasProvidedAsScheduled() uint64 + func (ghs *GasHandlerStub) TotalGasProvidedWithScheduled() uint64 + func (ghs *GasHandlerStub) TotalGasRefunded() uint64 + type GasScheduleNotifierMock struct + GasSchedule map[string]map[string]uint64 + LatestGasScheduleCalled func() map[string]map[string]uint64 + LatestGasScheduleCopyCalled func() map[string]map[string]uint64 + RegisterNotifyHandlerCalled func(handler core.GasScheduleSubscribeHandler) + func NewGasScheduleNotifierMock(gasSchedule map[string]map[string]uint64) *GasScheduleNotifierMock + func (g *GasScheduleNotifierMock) IsInterfaceNil() bool + func (g *GasScheduleNotifierMock) LatestGasSchedule() map[string]map[string]uint64 + func (g *GasScheduleNotifierMock) LatestGasScheduleCopy() map[string]map[string]uint64 + func (g *GasScheduleNotifierMock) RegisterNotifyHandler(handler core.GasScheduleSubscribeHandler) + func (g *GasScheduleNotifierMock) UnRegisterAll() + type HardforkTriggerStub struct + AddCloserCalled func(closer update.Closer) error + CreateDataCalled func() []byte + IsSelfTriggerCalled func() bool + NotifyTriggerReceivedCalled func() <-chan struct{} + NotifyTriggerReceivedV2Called func() <-chan struct{} + RecordedTriggerMessageCalled func() ([]byte, bool) + SetExportFactoryHandlerCalled func(exportFactoryHandler update.ExportFactoryHandler) error + TriggerCalled func(epoch uint32, withEarlyEndOfEpoch bool) error + TriggerReceivedCalled func(payload []byte, data []byte, pkBytes []byte) (bool, error) + func (hts *HardforkTriggerStub) AddCloser(closer update.Closer) error + func (hts *HardforkTriggerStub) CreateData() []byte + func (hts *HardforkTriggerStub) IsInterfaceNil() bool + func (hts *HardforkTriggerStub) IsSelfTrigger() bool + func (hts *HardforkTriggerStub) NotifyTriggerReceived() <-chan struct{} + func (hts *HardforkTriggerStub) NotifyTriggerReceivedV2() <-chan struct{} + func (hts *HardforkTriggerStub) RecordedTriggerMessage() ([]byte, bool) + func (hts *HardforkTriggerStub) SetExportFactoryHandler(exportFactoryHandler update.ExportFactoryHandler) error + func (hts *HardforkTriggerStub) Trigger(epoch uint32, withEarlyEndOfEpoch bool) error + func (hts *HardforkTriggerStub) TriggerReceived(payload []byte, data []byte, pkBytes []byte) (bool, error) + type HasherStub struct + ComputeCalled func(s string) []byte + EmptyHashCalled func() []byte + SizeCalled func() int + func (hash *HasherStub) Compute(s string) []byte + func (hash *HasherStub) EmptyHash() []byte + func (hash *HasherStub) IsInterfaceNil() bool + func (hash *HasherStub) Size() int + type HeaderHandlerStub struct + CheckChainIDCalled func(reference []byte) error + CloneCalled func() data.HeaderHandler + EpochField uint32 + GetChainIDCalled func() []byte + GetMiniBlockHeadersWithDstCalled func(destId uint32) map[string]uint32 + GetNonceCalled func() uint64 + GetOrderedCrossMiniblocksWithDstCalled func(destId uint32) []*data.MiniBlockInfo + GetPrevHashCalled func() []byte + GetPrevRandSeedCalled func() []byte + GetPubKeysBitmapCalled func() []byte + GetRandSeedCalled func() []byte + GetReservedCalled func() []byte + GetRootHashCalled func() []byte + GetSignatureCalled func() []byte + HasScheduledMiniBlocksCalled func() bool + IsStartOfEpochBlockCalled func() bool + TimestampField uint64 + func (h *HeaderHandlerStub) SetEpochStartMetaHash(_ []byte) error + func (hhs *HeaderHandlerStub) GetAccumulatedFees() *big.Int + func (hhs *HeaderHandlerStub) GetAdditionalData() headerVersionData.HeaderAdditionalData + func (hhs *HeaderHandlerStub) GetBlockBodyTypeInt32() int32 + func (hhs *HeaderHandlerStub) GetChainID() []byte + func (hhs *HeaderHandlerStub) GetDevFeesInEpoch() *big.Int + func (hhs *HeaderHandlerStub) GetDeveloperFees() *big.Int + func (hhs *HeaderHandlerStub) GetEpoch() uint32 + func (hhs *HeaderHandlerStub) GetEpochStartHandler() data.EpochStartHandler + func (hhs *HeaderHandlerStub) GetEpochStartMetaHash() []byte + func (hhs *HeaderHandlerStub) GetLeaderSignature() []byte + func (hhs *HeaderHandlerStub) GetMetaBlockHashes() [][]byte + func (hhs *HeaderHandlerStub) GetMiniBlockHeaderHandlers() []data.MiniBlockHeaderHandler + func (hhs *HeaderHandlerStub) GetMiniBlockHeadersHashes() [][]byte + func (hhs *HeaderHandlerStub) GetMiniBlockHeadersWithDst(destId uint32) map[string]uint32 + func (hhs *HeaderHandlerStub) GetNonce() uint64 + func (hhs *HeaderHandlerStub) GetOrderedCrossMiniblocksWithDst(destId uint32) []*data.MiniBlockInfo + func (hhs *HeaderHandlerStub) GetPrevHash() []byte + func (hhs *HeaderHandlerStub) GetPrevRandSeed() []byte + func (hhs *HeaderHandlerStub) GetPubKeysBitmap() []byte + func (hhs *HeaderHandlerStub) GetRandSeed() []byte + func (hhs *HeaderHandlerStub) GetReceiptsHash() []byte + func (hhs *HeaderHandlerStub) GetReserved() []byte + func (hhs *HeaderHandlerStub) GetRootHash() []byte + func (hhs *HeaderHandlerStub) GetRound() uint64 + func (hhs *HeaderHandlerStub) GetShardID() uint32 + func (hhs *HeaderHandlerStub) GetShardInfoHandlers() []data.ShardDataHandler + func (hhs *HeaderHandlerStub) GetSignature() []byte + func (hhs *HeaderHandlerStub) GetSoftwareVersion() []byte + func (hhs *HeaderHandlerStub) GetTimeStamp() uint64 + func (hhs *HeaderHandlerStub) GetTxCount() uint32 + func (hhs *HeaderHandlerStub) GetValidatorStatsRootHash() []byte + func (hhs *HeaderHandlerStub) HasScheduledMiniBlocks() bool + func (hhs *HeaderHandlerStub) HasScheduledSupport() bool + func (hhs *HeaderHandlerStub) IsInterfaceNil() bool + func (hhs *HeaderHandlerStub) IsStartOfEpochBlock() bool + func (hhs *HeaderHandlerStub) MapMiniBlockHashesToShards() map[string]uint32 + func (hhs *HeaderHandlerStub) SetAccumulatedFees(_ *big.Int) error + func (hhs *HeaderHandlerStub) SetAccumulatedFeesInEpoch(_ *big.Int) error + func (hhs *HeaderHandlerStub) SetAdditionalData(_ headerVersionData.HeaderAdditionalData) error + func (hhs *HeaderHandlerStub) SetChainID(_ []byte) error + func (hhs *HeaderHandlerStub) SetDevFeesInEpoch(_ *big.Int) error + func (hhs *HeaderHandlerStub) SetDeveloperFees(_ *big.Int) error + func (hhs *HeaderHandlerStub) SetEpoch(_ uint32) error + func (hhs *HeaderHandlerStub) SetLeaderSignature(_ []byte) error + func (hhs *HeaderHandlerStub) SetMetaBlockHashes(_ [][]byte) error + func (hhs *HeaderHandlerStub) SetMiniBlockHeaderHandlers(_ []data.MiniBlockHeaderHandler) error + func (hhs *HeaderHandlerStub) SetNonce(_ uint64) error + func (hhs *HeaderHandlerStub) SetPrevHash(_ []byte) error + func (hhs *HeaderHandlerStub) SetPrevRandSeed(_ []byte) error + func (hhs *HeaderHandlerStub) SetPubKeysBitmap(_ []byte) error + func (hhs *HeaderHandlerStub) SetRandSeed(_ []byte) error + func (hhs *HeaderHandlerStub) SetReceiptsHash(_ []byte) error + func (hhs *HeaderHandlerStub) SetRootHash(_ []byte) error + func (hhs *HeaderHandlerStub) SetRound(_ uint64) error + func (hhs *HeaderHandlerStub) SetScheduledRootHash(_ []byte) error + func (hhs *HeaderHandlerStub) SetShardID(_ uint32) error + func (hhs *HeaderHandlerStub) SetShardInfoHandlers(_ []data.ShardDataHandler) error + func (hhs *HeaderHandlerStub) SetSignature(_ []byte) error + func (hhs *HeaderHandlerStub) SetSoftwareVersion(_ []byte) error + func (hhs *HeaderHandlerStub) SetTimeStamp(_ uint64) error + func (hhs *HeaderHandlerStub) SetTxCount(_ uint32) error + func (hhs *HeaderHandlerStub) SetValidatorStatsRootHash(_ []byte) error + func (hhs *HeaderHandlerStub) ShallowClone() data.HeaderHandler + func (hhs *HeaderHandlerStub) ValidateHeaderVersion() error + type HeaderVersionHandlerStub struct + GetVersionCalled func(epoch uint32) string + IsInterfaceNilCalled func() bool + VerifyCalled func(hdr data.HeaderHandler) error + func (hvm *HeaderVersionHandlerStub) GetVersion(epoch uint32) string + func (hvm *HeaderVersionHandlerStub) IsInterfaceNil() bool + func (hvm *HeaderVersionHandlerStub) Verify(hdr data.HeaderHandler) error + type ImportStartHandlerStub struct + IsAfterExportBeforeImportCalled func() bool + ResetStartImportCalled func() error + SetStartImportCalled func() error + ShouldStartImportCalled func() bool + func (ish *ImportStartHandlerStub) IsAfterExportBeforeImport() bool + func (ish *ImportStartHandlerStub) IsInterfaceNil() bool + func (ish *ImportStartHandlerStub) ResetStartImport() error + func (ish *ImportStartHandlerStub) SetStartImport() error + func (ish *ImportStartHandlerStub) ShouldStartImport() bool + type InterceptedDataStub struct + CheckValidityCalled func() error + HashCalled func() []byte + IdentifiersCalled func() [][]byte + IsForCurrentShardCalled func() bool + StringCalled func() string + TypeCalled func() string + func (ids *InterceptedDataStub) CheckValidity() error + func (ids *InterceptedDataStub) Hash() []byte + func (ids *InterceptedDataStub) Identifiers() [][]byte + func (ids *InterceptedDataStub) IsForCurrentShard() bool + func (ids *InterceptedDataStub) IsInterfaceNil() bool + func (ids *InterceptedDataStub) String() string + func (ids *InterceptedDataStub) Type() string + type InterceptorStub struct + CloseCalled func() error + ProcessReceivedMessageCalled func(message p2p.MessageP2P) error + RegisterHandlerCalled func(handler func(topic string, hash []byte, data interface{})) + SetInterceptedDebugHandlerCalled func(debugger process.InterceptedDebugger) error + func (is *InterceptorStub) Close() error + func (is *InterceptorStub) IsInterfaceNil() bool + func (is *InterceptorStub) ProcessReceivedMessage(message p2p.MessageP2P, _ core.PeerID) error + func (is *InterceptorStub) RegisterHandler(handler func(topic string, hash []byte, data interface{})) + func (is *InterceptorStub) SetInterceptedDebugHandler(debugger process.InterceptedDebugger) error + type InterceptorsContainerStub struct + AddCalled func(key string, interceptor process.Interceptor) error + AddMultipleCalled func(keys []string, interceptors []process.Interceptor) error + CloseCalled func() error + GetCalled func(string) (process.Interceptor, error) + IterateCalled func(handler func(key string, interceptor process.Interceptor) bool) + LenCalled func() int + RemoveCalled func(key string) + ReplaceCalled func(key string, interceptor process.Interceptor) error + func (ics *InterceptorsContainerStub) Add(key string, interceptor process.Interceptor) error + func (ics *InterceptorsContainerStub) AddMultiple(keys []string, interceptors []process.Interceptor) error + func (ics *InterceptorsContainerStub) Close() error + func (ics *InterceptorsContainerStub) Get(topic string) (process.Interceptor, error) + func (ics *InterceptorsContainerStub) IsInterfaceNil() bool + func (ics *InterceptorsContainerStub) Iterate(handler func(key string, interceptor process.Interceptor) bool) + func (ics *InterceptorsContainerStub) Len() int + func (ics *InterceptorsContainerStub) Remove(key string) + func (ics *InterceptorsContainerStub) Replace(key string, interceptor process.Interceptor) error + type KeccakMock struct + func (KeccakMock) Size() int + func (k *KeccakMock) IsInterfaceNil() bool + func (k KeccakMock) Compute(s string) []byte + func (k KeccakMock) EmptyHash() []byte + type LoggerStub struct + DebugCalled func(message string, args ...interface{}) + ErrorCalled func(message string, args ...interface{}) + GetLevelCalled func() logger.LogLevel + InfoCalled func(message string, args ...interface{}) + LogCalled func(logLevel logger.LogLevel, message string, args ...interface{}) + LogIfErrorCalled func(err error, args ...interface{}) + LogLineCalled func(line *logger.LogLine) + SetLevelCalled func(logLevel logger.LogLevel) + TraceCalled func(message string, args ...interface{}) + WarnCalled func(message string, args ...interface{}) + func (stub *LoggerStub) Debug(message string, args ...interface{}) + func (stub *LoggerStub) Error(message string, args ...interface{}) + func (stub *LoggerStub) GetLevel() logger.LogLevel + func (stub *LoggerStub) Info(message string, args ...interface{}) + func (stub *LoggerStub) IsInterfaceNil() bool + func (stub *LoggerStub) Log(logLevel logger.LogLevel, message string, args ...interface{}) + func (stub *LoggerStub) LogIfError(err error, args ...interface{}) + func (stub *LoggerStub) LogLine(line *logger.LogLine) + func (stub *LoggerStub) SetLevel(logLevel logger.LogLevel) + func (stub *LoggerStub) Trace(message string, args ...interface{}) + func (stub *LoggerStub) Warn(message string, args ...interface{}) + type LogsFacadeStub struct + GetLogCalled func(txHash []byte, epoch uint32) (*transaction.ApiLogs, error) + IncludeLogsInTransactionsCalled func(txs []*transaction.ApiTransactionResult, logsKeys [][]byte, epoch uint32) error + func (stub *LogsFacadeStub) GetLog(logKey []byte, epoch uint32) (*transaction.ApiLogs, error) + func (stub *LogsFacadeStub) IncludeLogsInTransactions(txs []*transaction.ApiTransactionResult, logsKeys [][]byte, epoch uint32) error + func (stub *LogsFacadeStub) IsInterfaceNil() bool + type MarshalizerMock struct + Fail bool + func (mm MarshalizerMock) IsInterfaceNil() bool + func (mm MarshalizerMock) Marshal(obj interface{}) ([]byte, error) + func (mm MarshalizerMock) Unmarshal(obj interface{}, buff []byte) error + type MarshalizerStub struct + MarshalCalled func(obj interface{}) ([]byte, error) + UnmarshalCalled func(obj interface{}, buff []byte) error + func (ms *MarshalizerStub) IsInterfaceNil() bool + func (ms *MarshalizerStub) Marshal(obj interface{}) ([]byte, error) + func (ms *MarshalizerStub) Unmarshal(obj interface{}, buff []byte) error + type MemDbMock struct + PutCalled func(key, val []byte) error + func NewMemDbMock() *MemDbMock + func (s *MemDbMock) Close() error + func (s *MemDbMock) Destroy() error + func (s *MemDbMock) DestroyClosed() error + func (s *MemDbMock) Get(key []byte) ([]byte, error) + func (s *MemDbMock) Has(key []byte) error + func (s *MemDbMock) IsInterfaceNil() bool + func (s *MemDbMock) Put(key, val []byte) error + func (s *MemDbMock) RangeKeys(handler func(key []byte, value []byte) bool) + func (s *MemDbMock) Remove(key []byte) error + type MessageSignVerifierMock struct + func (m *MessageSignVerifierMock) IsInterfaceNil() bool + func (m *MessageSignVerifierMock) Verify(_ []byte, _ []byte, _ []byte) error + type NodesSetupStub struct + AllInitialNodesCalled func() []nodesCoordinator.GenesisNodeInfoHandler + GetAdaptivityCalled func() bool + GetHysteresisCalled func() float32 + GetMetaConsensusGroupSizeCalled func() uint32 + GetRoundDurationCalled func() uint64 + GetShardConsensusGroupSizeCalled func() uint32 + GetShardIDForPubKeyCalled func(pubKey []byte) (uint32, error) + GetStartTimeCalled func() int64 + InitialEligibleNodesPubKeysForShardCalled func(shardId uint32) ([]string, error) + InitialNodesInfoCalled func() (map[uint32][]nodesCoordinator.GenesisNodeInfoHandler, ...) + InitialNodesInfoForShardCalled func(shardId uint32) ([]nodesCoordinator.GenesisNodeInfoHandler, ...) + InitialNodesPubKeysCalled func() map[uint32][]string + MinNumberOfMetaNodesCalled func() uint32 + MinNumberOfNodesCalled func() uint32 + MinNumberOfNodesWithHysteresisCalled func() uint32 + MinNumberOfShardNodesCalled func() uint32 + NumberOfShardsCalled func() uint32 + func (n *NodesSetupStub) AllInitialNodes() []nodesCoordinator.GenesisNodeInfoHandler + func (n *NodesSetupStub) GetAdaptivity() bool + func (n *NodesSetupStub) GetHysteresis() float32 + func (n *NodesSetupStub) GetMetaConsensusGroupSize() uint32 + func (n *NodesSetupStub) GetRoundDuration() uint64 + func (n *NodesSetupStub) GetShardConsensusGroupSize() uint32 + func (n *NodesSetupStub) GetShardIDForPubKey(pubkey []byte) (uint32, error) + func (n *NodesSetupStub) GetStartTime() int64 + func (n *NodesSetupStub) InitialEligibleNodesPubKeysForShard(shardId uint32) ([]string, error) + func (n *NodesSetupStub) InitialNodesInfo() (map[uint32][]nodesCoordinator.GenesisNodeInfoHandler, ...) + func (n *NodesSetupStub) InitialNodesInfoForShard(shardId uint32) ([]nodesCoordinator.GenesisNodeInfoHandler, ...) + func (n *NodesSetupStub) InitialNodesPubKeys() map[uint32][]string + func (n *NodesSetupStub) IsInterfaceNil() bool + func (n *NodesSetupStub) MinNumberOfMetaNodes() uint32 + func (n *NodesSetupStub) MinNumberOfNodes() uint32 + func (n *NodesSetupStub) MinNumberOfNodesWithHysteresis() uint32 + func (n *NodesSetupStub) MinNumberOfShardNodes() uint32 + func (n *NodesSetupStub) NumberOfShards() uint32 + type OldDataCleanerProviderStub struct + ShouldCleanCalled func() bool + func (o *OldDataCleanerProviderStub) IsInterfaceNil() bool + func (o *OldDataCleanerProviderStub) ShouldClean() bool + type OutportStub struct + HasDriversCalled func() bool + SaveBlockCalled func(args *indexer.ArgsSaveBlockData) + SaveValidatorsPubKeysCalled func(shardPubKeys map[uint32][][]byte, epoch uint32) + SaveValidatorsRatingCalled func(index string, validatorsInfo []*indexer.ValidatorRatingInfo) + func (as *OutportStub) Close() error + func (as *OutportStub) FinalizedBlock(_ []byte) + func (as *OutportStub) HasDrivers() bool + func (as *OutportStub) IsInterfaceNil() bool + func (as *OutportStub) RevertIndexedBlock(_ data.HeaderHandler, _ data.BodyHandler) + func (as *OutportStub) SaveAccounts(_ uint64, _ []data.UserAccountHandler) + func (as *OutportStub) SaveBlock(args *indexer.ArgsSaveBlockData) + func (as *OutportStub) SaveRoundsInfo(_ []*indexer.RoundInfo) + func (as *OutportStub) SaveValidatorsPubKeys(shardPubKeys map[uint32][][]byte, epoch uint32) + func (as *OutportStub) SaveValidatorsRating(index string, validatorsInfo []*indexer.ValidatorRatingInfo) + func (as *OutportStub) SubscribeDriver(_ outport.Driver) error + type PanicDoubleTransactionsDetector struct + func (detector *PanicDoubleTransactionsDetector) IsInterfaceNil() bool + func (detector *PanicDoubleTransactionsDetector) ProcessBlockBody(body *block.Body) + type PathManagerStub struct + DatabasePathCalled func() string + PathForEpochCalled func(shardId string, epoch uint32, identifier string) string + PathForStaticCalled func(shardId string, identifier string) string + func (p *PathManagerStub) DatabasePath() string + func (p *PathManagerStub) IsInterfaceNil() bool + func (p *PathManagerStub) PathForEpoch(shardId string, epoch uint32, identifier string) string + func (p *PathManagerStub) PathForStatic(shardId string, identifier string) string + type PeerAuthenticationPayloadValidatorStub struct + ValidateTimestampCalled func(payloadTimestamp int64) error + func (stub *PeerAuthenticationPayloadValidatorStub) IsInterfaceNil() bool + func (stub *PeerAuthenticationPayloadValidatorStub) ValidateTimestamp(payloadTimestamp int64) error + type PeerHonestyHandlerStub struct + ChangeScoreCalled func(pk string, topic string, units int) + func (phhs *PeerHonestyHandlerStub) ChangeScore(pk string, topic string, units int) + func (phhs *PeerHonestyHandlerStub) Close() error + func (phhs *PeerHonestyHandlerStub) IsInterfaceNil() bool + type PreProcessorExecutionInfoHandlerMock struct + GetNumOfCrossInterMbsAndTxsCalled func() (int, int) + InitProcessedTxsResultsCalled func(key []byte) + RevertProcessedTxsResultsCalled func(txHashes [][]byte, key []byte) + func (ppeihm *PreProcessorExecutionInfoHandlerMock) GetNumOfCrossInterMbsAndTxs() (int, int) + func (ppeihm *PreProcessorExecutionInfoHandlerMock) InitProcessedTxsResults(key []byte) + func (ppeihm *PreProcessorExecutionInfoHandlerMock) RevertProcessedTxsResults(txHashes [][]byte, key []byte) + type ProcessStatusHandlerStub struct + IsIdleCalled func() bool + SetBusyCalled func(reason string) + SetIdleCalled func() + func (stub *ProcessStatusHandlerStub) IsIdle() bool + func (stub *ProcessStatusHandlerStub) IsInterfaceNil() bool + func (stub *ProcessStatusHandlerStub) SetBusy(reason string) + func (stub *ProcessStatusHandlerStub) SetIdle() + type ProcessedMiniBlocksTrackerStub struct + ConvertProcessedMiniBlocksMapToSliceCalled func() []bootstrapStorage.MiniBlocksInMeta + ConvertSliceToProcessedMiniBlocksMapCalled func(miniBlocksInMetaBlocks []bootstrapStorage.MiniBlocksInMeta) + DisplayProcessedMiniBlocksCalled func() + GetProcessedMiniBlockInfoCalled func(miniBlockHash []byte) (*processedMb.ProcessedMiniBlockInfo, []byte) + GetProcessedMiniBlocksInfoCalled func(metaBlockHash []byte) map[string]*processedMb.ProcessedMiniBlockInfo + IsMiniBlockFullyProcessedCalled func(metaBlockHash []byte, miniBlockHash []byte) bool + RemoveMetaBlockHashCalled func(metaBlockHash []byte) + RemoveMiniBlockHashCalled func(miniBlockHash []byte) + SetProcessedMiniBlockInfoCalled func(metaBlockHash []byte, miniBlockHash []byte, ...) + func (pmbts *ProcessedMiniBlocksTrackerStub) ConvertProcessedMiniBlocksMapToSlice() []bootstrapStorage.MiniBlocksInMeta + func (pmbts *ProcessedMiniBlocksTrackerStub) ConvertSliceToProcessedMiniBlocksMap(miniBlocksInMetaBlocks []bootstrapStorage.MiniBlocksInMeta) + func (pmbts *ProcessedMiniBlocksTrackerStub) DisplayProcessedMiniBlocks() + func (pmbts *ProcessedMiniBlocksTrackerStub) GetProcessedMiniBlockInfo(miniBlockHash []byte) (*processedMb.ProcessedMiniBlockInfo, []byte) + func (pmbts *ProcessedMiniBlocksTrackerStub) GetProcessedMiniBlocksInfo(metaBlockHash []byte) map[string]*processedMb.ProcessedMiniBlockInfo + func (pmbts *ProcessedMiniBlocksTrackerStub) IsInterfaceNil() bool + func (pmbts *ProcessedMiniBlocksTrackerStub) IsMiniBlockFullyProcessed(metaBlockHash []byte, miniBlockHash []byte) bool + func (pmbts *ProcessedMiniBlocksTrackerStub) RemoveMetaBlockHash(metaBlockHash []byte) + func (pmbts *ProcessedMiniBlocksTrackerStub) RemoveMiniBlockHash(miniBlockHash []byte) + func (pmbts *ProcessedMiniBlocksTrackerStub) SetProcessedMiniBlockInfo(metaBlockHash []byte, miniBlockHash []byte, ...) + type ProtoMarshalizerMock struct + func (pmm *ProtoMarshalizerMock) IsInterfaceNil() bool + func (pmm *ProtoMarshalizerMock) Marshal(obj interface{}) ([]byte, error) + func (pmm *ProtoMarshalizerMock) Unmarshal(obj interface{}, buff []byte) error + type ProtobufMarshalizerMock struct + func (x *ProtobufMarshalizerMock) IsInterfaceNil() bool + func (x *ProtobufMarshalizerMock) Marshal(obj interface{}) ([]byte, error) + func (x *ProtobufMarshalizerMock) Unmarshal(obj interface{}, buff []byte) error + type PubkeyConverterMock struct + func NewPubkeyConverterMock(addressLen int) *PubkeyConverterMock + func (pcm *PubkeyConverterMock) Decode(humanReadable string) ([]byte, error) + func (pcm *PubkeyConverterMock) Encode(pkBytes []byte) string + func (pcm *PubkeyConverterMock) IsInterfaceNil() bool + func (pcm *PubkeyConverterMock) Len() int + type RaterMock struct + Chance uint32 + ComputeDecreaseProposerCalled func(shardId uint32, rating uint32, consecutiveMissedBlocks uint32) uint32 + ComputeDecreaseValidatorCalled func(shardId uint32, rating uint32) uint32 + ComputeIncreaseProposerCalled func(shardId uint32, rating uint32) uint32 + ComputeIncreaseValidatorCalled func(shardId uint32, rating uint32) uint32 + DecreaseProposer int32 + DecreaseValidator int32 + GetChancesCalled func(val uint32) uint32 + GetRatingCalled func(string) uint32 + GetSignedBlocksThresholdCalled func() float32 + GetStartRatingCalled func() uint32 + IncreaseProposer int32 + IncreaseValidator int32 + MaxRating uint32 + MetaDecreaseProposer int32 + MetaDecreaseValidator int32 + MetaIncreaseProposer int32 + MetaIncreaseValidator int32 + MinRating uint32 + RevertIncreaseProposerCalled func(shardId uint32, rating uint32, nrReverts uint32) uint32 + RevertIncreaseValidatorCalled func(shardId uint32, rating uint32, nrReverts uint32) uint32 + StartRating uint32 + func GetNewMockRater() *RaterMock + func (rm *RaterMock) ComputeDecreaseProposer(shardId uint32, currentRating uint32, consecutiveMisses uint32) uint32 + func (rm *RaterMock) ComputeDecreaseValidator(shardId uint32, currentRating uint32) uint32 + func (rm *RaterMock) ComputeIncreaseProposer(shardId uint32, currentRating uint32) uint32 + func (rm *RaterMock) ComputeIncreaseValidator(shardId uint32, currentRating uint32) uint32 + func (rm *RaterMock) GetChance(rating uint32) uint32 + func (rm *RaterMock) GetRating(pk string) uint32 + func (rm *RaterMock) GetSignedBlocksThreshold() float32 + func (rm *RaterMock) GetStartRating() uint32 + func (rm *RaterMock) IsInterfaceNil() bool + func (rm *RaterMock) RevertIncreaseValidator(shardId uint32, currentRating uint32, nrReverts uint32) uint32 + type RatingsInfoMock struct + MaxRatingProperty uint32 + MetaRatingsStepDataProperty process.RatingsStepHandler + MinRatingProperty uint32 + SelectionChancesProperty []process.SelectionChance + ShardRatingsStepDataProperty process.RatingsStepHandler + SignedBlocksThresholdProperty float32 + StartRatingProperty uint32 + func (rd *RatingsInfoMock) IsInterfaceNil() bool + func (rd *RatingsInfoMock) MaxRating() uint32 + func (rd *RatingsInfoMock) MetaChainRatingsStepHandler() process.RatingsStepHandler + func (rd *RatingsInfoMock) MinRating() uint32 + func (rd *RatingsInfoMock) SelectionChances() []process.SelectionChance + func (rd *RatingsInfoMock) ShardChainRatingsStepHandler() process.RatingsStepHandler + func (rd *RatingsInfoMock) SignedBlocksThreshold() float32 + func (rd *RatingsInfoMock) StartRating() uint32 + type ReceiptsRepositoryStub struct + LoadReceiptsCalled func(header data.HeaderHandler, headerHash []byte) (common.ReceiptsHolder, error) + SaveReceiptsCalled func(holder common.ReceiptsHolder, header data.HeaderHandler, headerHash []byte) error + func (stub *ReceiptsRepositoryStub) IsInterfaceNil() bool + func (stub *ReceiptsRepositoryStub) LoadReceipts(header data.HeaderHandler, headerHash []byte) (common.ReceiptsHolder, error) + func (stub *ReceiptsRepositoryStub) SaveReceipts(holder common.ReceiptsHolder, header data.HeaderHandler, headerHash []byte) error + type RequestHandlerStub struct + CreateTrieNodeIdentifierCalled func(requestHash []byte, chunkIndex uint32) []byte + GetNumPeersToQueryCalled func(key string) (int, int, error) + RequestMetaHeaderByNonceCalled func(nonce uint64) + RequestMetaHeaderCalled func(hash []byte) + RequestMiniBlockHandlerCalled func(destShardID uint32, miniblockHash []byte) + RequestMiniBlocksHandlerCalled func(destShardID uint32, miniblocksHashes [][]byte) + RequestPeerAuthenticationsByHashesCalled func(destShardID uint32, hashes [][]byte) + RequestRewardTxHandlerCalled func(destShardID uint32, txHashes [][]byte) + RequestScrHandlerCalled func(destShardID uint32, txHashes [][]byte) + RequestShardHeaderByNonceCalled func(shardID uint32, nonce uint64) + RequestShardHeaderCalled func(shardID uint32, hash []byte) + RequestStartOfEpochMetaBlockCalled func(epoch uint32) + RequestTransactionHandlerCalled func(destShardID uint32, txHashes [][]byte) + RequestTrieNodeCalled func(requestHash []byte, topic string, chunkIndex uint32) + RequestTrieNodesCalled func(destShardID uint32, hashes [][]byte, topic string) + SetNumPeersToQueryCalled func(key string, intra int, cross int) error + func (rhs *RequestHandlerStub) CreateTrieNodeIdentifier(requestHash []byte, chunkIndex uint32) []byte + func (rhs *RequestHandlerStub) GetNumPeersToQuery(key string) (int, int, error) + func (rhs *RequestHandlerStub) IsInterfaceNil() bool + func (rhs *RequestHandlerStub) RequestInterval() time.Duration + func (rhs *RequestHandlerStub) RequestMetaHeader(hash []byte) + func (rhs *RequestHandlerStub) RequestMetaHeaderByNonce(nonce uint64) + func (rhs *RequestHandlerStub) RequestMiniBlock(destShardID uint32, miniblockHash []byte) + func (rhs *RequestHandlerStub) RequestMiniBlocks(destShardID uint32, miniblocksHashes [][]byte) + func (rhs *RequestHandlerStub) RequestPeerAuthenticationsByHashes(destShardID uint32, hashes [][]byte) + func (rhs *RequestHandlerStub) RequestRewardTransactions(destShardID uint32, txHashes [][]byte) + func (rhs *RequestHandlerStub) RequestShardHeader(shardID uint32, hash []byte) + func (rhs *RequestHandlerStub) RequestShardHeaderByNonce(shardID uint32, nonce uint64) + func (rhs *RequestHandlerStub) RequestStartOfEpochMetaBlock(epoch uint32) + func (rhs *RequestHandlerStub) RequestTransaction(destShardID uint32, txHashes [][]byte) + func (rhs *RequestHandlerStub) RequestTrieNode(requestHash []byte, topic string, chunkIndex uint32) + func (rhs *RequestHandlerStub) RequestTrieNodes(destShardID uint32, hashes [][]byte, topic string) + func (rhs *RequestHandlerStub) RequestUnsignedTransactions(destShardID uint32, txHashes [][]byte) + func (rhs *RequestHandlerStub) SetEpoch(_ uint32) + func (rhs *RequestHandlerStub) SetNumPeersToQuery(key string, intra int, cross int) error + type RequestedItemsHandlerStub struct + AddCalled func(key string) error + HasCalled func(key string) bool + SweepCalled func() + func (rihs *RequestedItemsHandlerStub) Add(key string) error + func (rihs *RequestedItemsHandlerStub) Has(key string) bool + func (rihs *RequestedItemsHandlerStub) IsInterfaceNil() bool + func (rihs *RequestedItemsHandlerStub) Sweep() + type RewardTxProcessorMock struct + ProcessRewardTransactionCalled func(rTx *rewardTx.RewardTx) error + func (scrp *RewardTxProcessorMock) IsInterfaceNil() bool + func (scrp *RewardTxProcessorMock) ProcessRewardTransaction(rTx *rewardTx.RewardTx) error + type RoundHandlerMock struct + BeforeGenesisCalled func() bool + IndexCalled func() int64 + RemainingTimeCalled func(startTime time.Time, maxTime time.Duration) time.Duration + TimeDurationCalled func() time.Duration + TimeStampCalled func() time.Time + UpdateRoundCalled func(time.Time, time.Time) + func (rndm *RoundHandlerMock) BeforeGenesis() bool + func (rndm *RoundHandlerMock) Index() int64 + func (rndm *RoundHandlerMock) IsInterfaceNil() bool + func (rndm *RoundHandlerMock) RemainingTime(startTime time.Time, maxTime time.Duration) time.Duration + func (rndm *RoundHandlerMock) TimeDuration() time.Duration + func (rndm *RoundHandlerMock) TimeStamp() time.Time + func (rndm *RoundHandlerMock) UpdateRound(genesisRoundTimeStamp time.Time, timeStamp time.Time) + type SCProcessorMock struct + ComputeTransactionTypeCalled func(tx data.TransactionHandler) (process.TransactionType, process.TransactionType) + DeploySmartContractCalled func(tx data.TransactionHandler, acntSrc state.UserAccountHandler) (vmcommon.ReturnCode, error) + ExecuteBuiltInFunctionCalled func(tx data.TransactionHandler, acntSrc, acntDst state.UserAccountHandler) (vmcommon.ReturnCode, error) + ExecuteSmartContractTransactionCalled func(tx data.TransactionHandler, acntSrc, acntDst state.UserAccountHandler) (vmcommon.ReturnCode, error) + IsPayableCalled func(sndAddress, recvAddress []byte) (bool, error) + ProcessIfErrorCalled func(acntSnd state.UserAccountHandler, txHash []byte, tx data.TransactionHandler, ...) error + ProcessSmartContractResultCalled func(scr *smartContractResult.SmartContractResult) (vmcommon.ReturnCode, error) + func (sc *SCProcessorMock) ComputeTransactionType(tx data.TransactionHandler) (process.TransactionType, process.TransactionType) + func (sc *SCProcessorMock) DeploySmartContract(tx data.TransactionHandler, acntSrc state.UserAccountHandler) (vmcommon.ReturnCode, error) + func (sc *SCProcessorMock) ExecuteBuiltInFunction(tx data.TransactionHandler, acntSrc, acntDst state.UserAccountHandler) (vmcommon.ReturnCode, error) + func (sc *SCProcessorMock) ExecuteSmartContractTransaction(tx data.TransactionHandler, acntSrc, acntDst state.UserAccountHandler) (vmcommon.ReturnCode, error) + func (sc *SCProcessorMock) IsInterfaceNil() bool + func (sc *SCProcessorMock) IsPayable(sndAddress []byte, recvAddress []byte) (bool, error) + func (sc *SCProcessorMock) ProcessIfError(acntSnd state.UserAccountHandler, txHash []byte, tx data.TransactionHandler, ...) error + func (sc *SCProcessorMock) ProcessSmartContractResult(scr *smartContractResult.SmartContractResult) (vmcommon.ReturnCode, error) + type ScheduledTxsExecutionStub struct + AddScheduledMiniBlocksCalled func(miniBlocks block.MiniBlockSlice) + AddScheduledTxCalled func([]byte, data.TransactionHandler) bool + ExecuteAllCalled func(func() time.Duration) error + ExecuteCalled func([]byte) error + GetScheduledGasAndFeesCalled func() scheduled.GasAndFees + GetScheduledIntermediateTxsCalled func() map[block.Type][]data.TransactionHandler + GetScheduledMiniBlocksCalled func() block.MiniBlockSlice + GetScheduledRootHashCalled func() []byte + GetScheduledRootHashForHeaderCalled func(headerHash []byte) ([]byte, error) + GetScheduledRootHashForHeaderWithEpochCalled func(headerHash []byte, epoch uint32) ([]byte, error) + HaveScheduledTxsCalled func() bool + InitCalled func() + IsMiniBlockExecutedCalled func([]byte) bool + IsScheduledTxCalled func([]byte) bool + LoadStateCalled func(headerHash []byte) + RollBackToBlockCalled func(headerHash []byte) error + SaveStateCalled func(headerHash []byte, scheduledInfo *process.ScheduledInfo) + SaveStateIfNeededCalled func(headerHash []byte) + SetScheduledGasAndFeesCalled func(gasAndFees scheduled.GasAndFees) + SetScheduledInfoCalled func(scheduledInfo *process.ScheduledInfo) + SetScheduledRootHashCalled func([]byte) + SetTransactionCoordinatorCalled func(process.TransactionCoordinator) + SetTransactionProcessorCalled func(process.TransactionProcessor) + func (stes *ScheduledTxsExecutionStub) AddScheduledMiniBlocks(miniBlocks block.MiniBlockSlice) + func (stes *ScheduledTxsExecutionStub) AddScheduledTx(txHash []byte, tx data.TransactionHandler) bool + func (stes *ScheduledTxsExecutionStub) Execute(txHash []byte) error + func (stes *ScheduledTxsExecutionStub) ExecuteAll(haveTime func() time.Duration) error + func (stes *ScheduledTxsExecutionStub) GetScheduledGasAndFees() scheduled.GasAndFees + func (stes *ScheduledTxsExecutionStub) GetScheduledIntermediateTxs() map[block.Type][]data.TransactionHandler + func (stes *ScheduledTxsExecutionStub) GetScheduledMiniBlocks() block.MiniBlockSlice + func (stes *ScheduledTxsExecutionStub) GetScheduledRootHash() []byte + func (stes *ScheduledTxsExecutionStub) GetScheduledRootHashForHeader(headerHash []byte) ([]byte, error) + func (stes *ScheduledTxsExecutionStub) GetScheduledRootHashForHeaderWithEpoch(headerHash []byte, epoch uint32) ([]byte, error) + func (stes *ScheduledTxsExecutionStub) Init() + func (stes *ScheduledTxsExecutionStub) IsInterfaceNil() bool + func (stes *ScheduledTxsExecutionStub) IsMiniBlockExecuted(mbHash []byte) bool + func (stes *ScheduledTxsExecutionStub) IsScheduledTx(txHash []byte) bool + func (stes *ScheduledTxsExecutionStub) RollBackToBlock(headerHash []byte) error + func (stes *ScheduledTxsExecutionStub) SaveState(headerHash []byte, scheduledInfo *process.ScheduledInfo) + func (stes *ScheduledTxsExecutionStub) SaveStateIfNeeded(headerHash []byte) + func (stes *ScheduledTxsExecutionStub) SetScheduledGasAndFees(gasAndFees scheduled.GasAndFees) + func (stes *ScheduledTxsExecutionStub) SetScheduledInfo(scheduledInfo *process.ScheduledInfo) + func (stes *ScheduledTxsExecutionStub) SetScheduledRootHash(rootHash []byte) + func (stes *ScheduledTxsExecutionStub) SetTransactionCoordinator(txCoordinator process.TransactionCoordinator) + func (stes *ScheduledTxsExecutionStub) SetTransactionProcessor(txProcessor process.TransactionProcessor) + type ShardStatisticsMock struct + func (ss *ShardStatisticsMock) AverageBlockTxCount() uint32 + func (ss *ShardStatisticsMock) AverageTPS() *big.Int + func (ss *ShardStatisticsMock) CurrentBlockNonce() uint64 + func (ss *ShardStatisticsMock) IsInterfaceNil() bool + func (ss *ShardStatisticsMock) LastBlockTxCount() uint32 + func (ss *ShardStatisticsMock) LiveTPS() float64 + func (ss *ShardStatisticsMock) PeakTPS() float64 + func (ss *ShardStatisticsMock) ShardID() uint32 + func (ss *ShardStatisticsMock) TotalProcessedTxCount() *big.Int + type ShardedDataCacheNotifierMock struct + func NewShardedDataCacheNotifierMock() *ShardedDataCacheNotifierMock + func (mock *ShardedDataCacheNotifierMock) AddData(key []byte, data interface{}, sizeInBytes int, cacheId string) + func (mock *ShardedDataCacheNotifierMock) Clear() + func (mock *ShardedDataCacheNotifierMock) ClearShardStore(cacheId string) + func (mock *ShardedDataCacheNotifierMock) GetCounts() counting.CountsWithSize + func (mock *ShardedDataCacheNotifierMock) ImmunizeSetOfDataAgainstEviction(_ [][]byte, _ string) + func (mock *ShardedDataCacheNotifierMock) IsInterfaceNil() bool + func (mock *ShardedDataCacheNotifierMock) Keys() [][]byte + func (mock *ShardedDataCacheNotifierMock) MergeShardStores(_, _ string) + func (mock *ShardedDataCacheNotifierMock) RegisterOnAdded(_ func(key []byte, value interface{})) + func (mock *ShardedDataCacheNotifierMock) RemoveData(key []byte, cacheId string) + func (mock *ShardedDataCacheNotifierMock) RemoveDataFromAllShards(key []byte) + func (mock *ShardedDataCacheNotifierMock) RemoveSetOfDataFromPool(keys [][]byte, cacheId string) + func (mock *ShardedDataCacheNotifierMock) SearchFirstData(key []byte) (interface{}, bool) + func (mock *ShardedDataCacheNotifierMock) ShardDataStore(cacheId string) (c storage.Cacher) + type ShardedDataStub struct + AddDataCalled func(key []byte, data interface{}, sizeInBytes int, cacheID string) + ClearCalled func() + ClearShardStoreCalled func(cacheID string) + CreateShardStoreCalled func(destCacheID string) + GetCountsCalled func() counting.CountsWithSize + ImmunizeSetOfDataAgainstEvictionCalled func(keys [][]byte, cacheID string) + KeysCalled func() [][]byte + MergeShardStoresCalled func(sourceCacheID, destCacheID string) + MoveDataCalled func(sourceCacheID, destCacheID string, key [][]byte) + RegisterOnAddedCalled func(func(key []byte, value interface{})) + RemoveDataCalled func(key []byte, cacheID string) + RemoveDataFromAllShardsCalled func(key []byte) + RemoveSetOfDataFromPoolCalled func(keys [][]byte, destCacheID string) + SearchFirstDataCalled func(key []byte) (value interface{}, ok bool) + ShardDataStoreCalled func(cacheID string) storage.Cacher + func NewShardedDataStub() *ShardedDataStub + func (sd *ShardedDataStub) AddData(key []byte, data interface{}, sizeInBytes int, cacheID string) + func (sd *ShardedDataStub) Clear() + func (sd *ShardedDataStub) ClearShardStore(cacheID string) + func (sd *ShardedDataStub) GetCounts() counting.CountsWithSize + func (sd *ShardedDataStub) ImmunizeSetOfDataAgainstEviction(keys [][]byte, cacheID string) + func (sd *ShardedDataStub) IsInterfaceNil() bool + func (sd *ShardedDataStub) Keys() [][]byte + func (sd *ShardedDataStub) MergeShardStores(sourceCacheID, destCacheID string) + func (sd *ShardedDataStub) RegisterOnAdded(handler func(key []byte, value interface{})) + func (sd *ShardedDataStub) RemoveData(key []byte, cacheID string) + func (sd *ShardedDataStub) RemoveDataFromAllShards(key []byte) + func (sd *ShardedDataStub) RemoveSetOfDataFromPool(keys [][]byte, cacheID string) + func (sd *ShardedDataStub) SearchFirstData(key []byte) (value interface{}, ok bool) + func (sd *ShardedDataStub) ShardDataStore(cacheID string) storage.Cacher + type ShardsCoordinatorMock struct + ComputeIdCalled func(address []byte) uint32 + CurrentShard uint32 + NoShards uint32 + SelfIDCalled func() uint32 + func NewMultiShardsCoordinatorMock(numShards uint32) *ShardsCoordinatorMock + func (scm *ShardsCoordinatorMock) CommunicationIdentifier(destShardID uint32) string + func (scm *ShardsCoordinatorMock) ComputeId(address []byte) uint32 + func (scm *ShardsCoordinatorMock) IsInterfaceNil() bool + func (scm *ShardsCoordinatorMock) NumberOfShards() uint32 + func (scm *ShardsCoordinatorMock) SameShard(_, _ []byte) bool + func (scm *ShardsCoordinatorMock) SelfId() uint32 + func (scm *ShardsCoordinatorMock) SetNoShards(noShards uint32) + func (scm *ShardsCoordinatorMock) SetSelfId(_ uint32) error + type SimpleNFTStorageHandlerStub struct + GetESDTNFTTokenOnDestinationCalled func(accnt vmcommon.UserAccountHandler, esdtTokenKey []byte, nonce uint64) (*esdt.ESDigitalToken, bool, error) + SaveNFTMetaDataToSystemAccountCalled func(tx data.TransactionHandler) error + func (s *SimpleNFTStorageHandlerStub) GetESDTNFTTokenOnDestination(accnt vmcommon.UserAccountHandler, esdtTokenKey []byte, nonce uint64) (*esdt.ESDigitalToken, bool, error) + func (s *SimpleNFTStorageHandlerStub) IsInterfaceNil() bool + func (s *SimpleNFTStorageHandlerStub) SaveNFTMetaDataToSystemAccount(tx data.TransactionHandler) error + type SmartContractResultsProcessorMock struct + ProcessSmartContractResultCalled func(scr *smartContractResult.SmartContractResult) (vmcommon.ReturnCode, error) + func (scrp *SmartContractResultsProcessorMock) IsInterfaceNil() bool + func (scrp *SmartContractResultsProcessorMock) ProcessSmartContractResult(scr *smartContractResult.SmartContractResult) (vmcommon.ReturnCode, error) + type SnapshotPruningStorerMock struct + func NewSnapshotPruningStorerMock() *SnapshotPruningStorerMock + func (spsm *SnapshotPruningStorerMock) GetFromCurrentEpoch(key []byte) ([]byte, error) + func (spsm *SnapshotPruningStorerMock) GetFromEpoch(key []byte, _ uint32) ([]byte, error) + func (spsm *SnapshotPruningStorerMock) GetFromLastEpoch(key []byte) ([]byte, error) + func (spsm *SnapshotPruningStorerMock) GetFromOldEpochsWithoutAddingToCache(key []byte) ([]byte, error) + func (spsm *SnapshotPruningStorerMock) GetLatestStorageEpoch() (uint32, error) + func (spsm *SnapshotPruningStorerMock) PutInEpoch(key []byte, data []byte, _ uint32) error + func (spsm *SnapshotPruningStorerMock) PutInEpochWithoutCache(key []byte, data []byte, _ uint32) error + func (spsm *SnapshotPruningStorerMock) RemoveFromCurrentEpoch(key []byte) error + type StateComponentsMock struct + Accounts state.AccountsAdapter + AccountsAPI state.AccountsAdapter + AccountsRepo state.AccountsRepository + PeersAcc state.AccountsAdapter + StorageManagers map[string]common.StorageManager + Tries common.TriesHolder + func (scm *StateComponentsMock) AccountsAdapter() state.AccountsAdapter + func (scm *StateComponentsMock) AccountsAdapterAPI() state.AccountsAdapter + func (scm *StateComponentsMock) AccountsRepository() state.AccountsRepository + func (scm *StateComponentsMock) CheckSubcomponents() error + func (scm *StateComponentsMock) Close() error + func (scm *StateComponentsMock) Create() error + func (scm *StateComponentsMock) IsInterfaceNil() bool + func (scm *StateComponentsMock) PeerAccounts() state.AccountsAdapter + func (scm *StateComponentsMock) String() string + func (scm *StateComponentsMock) TrieStorageManagers() map[string]common.StorageManager + func (scm *StateComponentsMock) TriesContainer() common.TriesHolder + type StatusMetricsStub struct + ConfigMetricsCalled func() (map[string]interface{}, error) + EconomicsMetricsCalled func() (map[string]interface{}, error) + EnableEpochsMetricsCalled func() (map[string]interface{}, error) + NetworkMetricsCalled func() (map[string]interface{}, error) + RatingsMetricsCalled func() (map[string]interface{}, error) + StatusMetricsMapWithoutP2PCalled func() (map[string]interface{}, error) + StatusMetricsWithoutP2PPrometheusStringCalled func() (string, error) + StatusP2pMetricsMapCalled func() (map[string]interface{}, error) + func (sms *StatusMetricsStub) ConfigMetrics() (map[string]interface{}, error) + func (sms *StatusMetricsStub) EconomicsMetrics() (map[string]interface{}, error) + func (sms *StatusMetricsStub) EnableEpochsMetrics() (map[string]interface{}, error) + func (sms *StatusMetricsStub) IsInterfaceNil() bool + func (sms *StatusMetricsStub) NetworkMetrics() (map[string]interface{}, error) + func (sms *StatusMetricsStub) RatingsMetrics() (map[string]interface{}, error) + func (sms *StatusMetricsStub) StatusMetricsMapWithoutP2P() (map[string]interface{}, error) + func (sms *StatusMetricsStub) StatusMetricsWithoutP2PPrometheusString() (string, error) + func (sms *StatusMetricsStub) StatusP2pMetricsMap() (map[string]interface{}, error) + type StorageManagerStub struct + AddDirtyCheckpointHashesCalled func([]byte, common.ModifiedHashes) bool + EnterPruningBufferingModeCalled func() + ExitPruningBufferingModeCalled func() + GetBaseTrieStorageManagerCalled func() common.StorageManager + GetCalled func([]byte) ([]byte, error) + GetDbThatContainsHashCalled func([]byte) common.DBWriteCacher + GetFromCurrentEpochCalled func([]byte) ([]byte, error) + GetLatestStorageEpochCalled func() (uint32, error) + IsClosedCalled func() bool + IsInterfaceNilCalled func() bool + IsPruningBlockedCalled func() bool + IsPruningEnabledCalled func() bool + PutCalled func([]byte, []byte) error + PutInEpochCalled func([]byte, []byte, uint32) error + PutInEpochWithoutCacheCalled func([]byte, []byte, uint32) error + RemoveCalled func([]byte) error + RemoveFromCheckpointHashesHolderCalled func([]byte) + RemoveFromCurrentEpochCalled func([]byte) error + SetCheckpointCalled func([]byte, []byte, chan core.KeyValueHolder, chan error, ...) + SetEpochForPutOperationCalled func(uint32) + ShouldTakeSnapshotCalled func() bool + TakeSnapshotCalled func([]byte, []byte, chan core.KeyValueHolder, chan error, ...) + func (sms *StorageManagerStub) AddDirtyCheckpointHashes(rootHash []byte, hashes common.ModifiedHashes) bool + func (sms *StorageManagerStub) Close() error + func (sms *StorageManagerStub) EnterPruningBufferingMode() + func (sms *StorageManagerStub) ExitPruningBufferingMode() + func (sms *StorageManagerStub) Get(key []byte) ([]byte, error) + func (sms *StorageManagerStub) GetBaseTrieStorageManager() common.StorageManager + func (sms *StorageManagerStub) GetFromCurrentEpoch(key []byte) ([]byte, error) + func (sms *StorageManagerStub) GetLatestStorageEpoch() (uint32, error) + func (sms *StorageManagerStub) IsClosed() bool + func (sms *StorageManagerStub) IsInterfaceNil() bool + func (sms *StorageManagerStub) IsPruningBlocked() bool + func (sms *StorageManagerStub) IsPruningEnabled() bool + func (sms *StorageManagerStub) Put(key []byte, val []byte) error + func (sms *StorageManagerStub) PutInEpoch(key []byte, val []byte, epoch uint32) error + func (sms *StorageManagerStub) PutInEpochWithoutCache(key []byte, val []byte, epoch uint32) error + func (sms *StorageManagerStub) Remove(hash []byte) error + func (sms *StorageManagerStub) RemoveFromCheckpointHashesHolder(hash []byte) + func (sms *StorageManagerStub) RemoveFromCurrentEpoch(hash []byte) error + func (sms *StorageManagerStub) SetCheckpoint(rootHash []byte, mainTrieRootHash []byte, leavesChan chan core.KeyValueHolder, ...) + func (sms *StorageManagerStub) SetEpochForPutOperation(epoch uint32) + func (sms *StorageManagerStub) ShouldTakeSnapshot() bool + func (sms *StorageManagerStub) TakeSnapshot(rootHash []byte, mainTrieRootHash []byte, leavesChan chan core.KeyValueHolder, ...) + type SyncTimerStub struct + func (sts *SyncTimerStub) ClockOffset() time.Duration + func (sts *SyncTimerStub) Close() error + func (sts *SyncTimerStub) CurrentTime() time.Time + func (sts *SyncTimerStub) FormattedCurrentTime() string + func (sts *SyncTimerStub) IsInterfaceNil() bool + func (sts *SyncTimerStub) StartSyncingTime() + type TimeCacheStub struct + AddCalled func(key string) error + HasCalled func(key string) bool + LenCalled func() int + SweepCalled func() + UpsertCalled func(key string, span time.Duration) error + func (tcs *TimeCacheStub) Add(key string) error + func (tcs *TimeCacheStub) Has(key string) bool + func (tcs *TimeCacheStub) IsInterfaceNil() bool + func (tcs *TimeCacheStub) Len() int + func (tcs *TimeCacheStub) Sweep() + func (tcs *TimeCacheStub) Upsert(key string, span time.Duration) error + type TxProcessorMock struct + ProcessSmartContractResultCalled func(scr *smartContractResult.SmartContractResult) (vmcommon.ReturnCode, error) + ProcessTransactionCalled func(transaction *transaction.Transaction) (vmcommon.ReturnCode, error) + SetBalancesToTrieCalled func(accBalance map[string]*big.Int) (rootHash []byte, err error) + VerifyTransactionCalled func(tx *transaction.Transaction) error + func (etm *TxProcessorMock) IsInterfaceNil() bool + func (etm *TxProcessorMock) ProcessSmartContractResult(scr *smartContractResult.SmartContractResult) (vmcommon.ReturnCode, error) + func (etm *TxProcessorMock) ProcessTransaction(transaction *transaction.Transaction) (vmcommon.ReturnCode, error) + func (etm *TxProcessorMock) SetBalancesToTrie(accBalance map[string]*big.Int) (rootHash []byte, err error) + func (etm *TxProcessorMock) VerifyTransaction(tx *transaction.Transaction) error + type TxProcessorStub struct + ProcessTransactionCalled func(transaction *transaction.Transaction) (vmcommon.ReturnCode, error) + VerifyTransactionCalled func(tx *transaction.Transaction) error + func (tps *TxProcessorStub) IsInterfaceNil() bool + func (tps *TxProcessorStub) ProcessTransaction(transaction *transaction.Transaction) (vmcommon.ReturnCode, error) + func (tps *TxProcessorStub) VerifyTransaction(tx *transaction.Transaction) error + type TxTypeHandlerMock struct + ComputeTransactionTypeCalled func(tx data.TransactionHandler) (process.TransactionType, process.TransactionType) + func (th *TxTypeHandlerMock) ComputeTransactionType(tx data.TransactionHandler) (process.TransactionType, process.TransactionType) + func (th *TxTypeHandlerMock) IsInterfaceNil() bool + type UnsignedTxHandlerStub struct + AddTxFeeFromBlockCalled func(tx data.TransactionHandler) + CleanProcessedUtxsCalled func() + CreateAllUTxsCalled func() []data.TransactionHandler + GetAccumulatedFeesCalled func() *big.Int + GetDeveloperFeesCalled func() *big.Int + ProcessTransactionFeeCalled func(cost *big.Int, fee *big.Int, hash []byte) + ProcessTransactionFeeRelayedUserTxCalled func(cost *big.Int, devFee *big.Int, userTxHash []byte, originalTxHash []byte) + RevertFeesCalled func(txHashes [][]byte) + VerifyCreatedUTxsCalled func() error + func (ut *UnsignedTxHandlerStub) AddRewardTxFromBlock(tx data.TransactionHandler) + func (ut *UnsignedTxHandlerStub) CleanProcessedUTxs() + func (ut *UnsignedTxHandlerStub) CreateAllUTxs() []data.TransactionHandler + func (ut *UnsignedTxHandlerStub) CreateBlockStarted(_ scheduled.GasAndFees) + func (ut *UnsignedTxHandlerStub) GetAccumulatedFees() *big.Int + func (ut *UnsignedTxHandlerStub) GetDeveloperFees() *big.Int + func (ut *UnsignedTxHandlerStub) IsInterfaceNil() bool + func (ut *UnsignedTxHandlerStub) ProcessTransactionFee(cost *big.Int, devFee *big.Int, txHash []byte) + func (ut *UnsignedTxHandlerStub) ProcessTransactionFeeRelayedUserTx(cost *big.Int, devFee *big.Int, userTxHash []byte, originalTxHash []byte) + func (ut *UnsignedTxHandlerStub) RevertFees(txHashes [][]byte) + func (ut *UnsignedTxHandlerStub) VerifyCreatedUTxs() error + type VersionedHeaderFactoryStub struct + CreateCalled func(epoch uint32) data.HeaderHandler + func (vhfs *VersionedHeaderFactoryStub) Create(epoch uint32) data.HeaderHandler + func (vhfs *VersionedHeaderFactoryStub) IsInterfaceNil() bool + type WatchdogMock struct + func (w *WatchdogMock) IsInterfaceNil() bool + func (w *WatchdogMock) Reset(_ string) + func (w *WatchdogMock) Set(_ func(alarmID string), _ time.Duration, _ string) + func (w *WatchdogMock) SetDefault(_ time.Duration, _ string) + func (w *WatchdogMock) Stop(_ string) + type WhiteListHandlerStub struct + AddCalled func(keys [][]byte) + IsForCurrentShardCalled func(interceptedData process.InterceptedData) bool + IsWhiteListedAtLeastOneCalled func(identifiers [][]byte) bool + IsWhiteListedCalled func(interceptedData process.InterceptedData) bool + RemoveCalled func(keys [][]byte) + func (w *WhiteListHandlerStub) Add(keys [][]byte) + func (w *WhiteListHandlerStub) IsForCurrentShard(interceptedData process.InterceptedData) bool + func (w *WhiteListHandlerStub) IsInterfaceNil() bool + func (w *WhiteListHandlerStub) IsWhiteListed(interceptedData process.InterceptedData) bool + func (w *WhiteListHandlerStub) IsWhiteListedAtLeastOne(identifiers [][]byte) bool + func (w *WhiteListHandlerStub) Remove(keys [][]byte)