Versions in this module Expand all Collapse all v1 v1.999.0 Nov 17, 2022 Changes in this version + var ErrCouldNotInitDelegationSystemSC = errors.New("could not init delegation system sc") + var ErrEmptyESDTOwnerAddress = errors.New("empty ESDT owner address") + var ErrEndOfEpochEconomicsDataDoesNotMatch = errors.New("end of epoch economics data does not match") + var ErrEpochStartDataForShardNotFound = errors.New("epoch start data for current shard not found") + var ErrExecutingSystemScCode = errors.New("error executing system SC code") + var ErrInvalidAccumulatedFees = errors.New("accumulated rewards are invalid") + var ErrInvalidAmountMintedTokens = errors.New("amount of minted tokens is invalid") + var ErrInvalidConsensusThreshold = errors.New("invalid consensus threshold") + var ErrInvalidEstimatedProtocolSustainabilityRewards = errors.New("estimated protocol sustainability rewards are invalid") + var ErrInvalidInflationRate = errors.New("inflation rate is invalid") + var ErrInvalidMaxHardCapForMissingNodes = errors.New("invalid max hardcap for missing nodes") + var ErrInvalidMaxNumberOfNodes = errors.New("maximum number of nodes invalid") + var ErrInvalidMinNodePrice = errors.New("minimum node price is invalid") + var ErrInvalidMinNumberOfNodes = errors.New("minimum number of nodes invalid") + var ErrInvalidNumConcurrentTrieSyncers = errors.New("invalid num concurrent trie syncers") + var ErrInvalidRewardsPerBlock = errors.New("invalid rewards per block") + var ErrInvalidRewardsTopUpFactor = errors.New("top-up factor invalid") + var ErrInvalidRewardsTopUpGradientPoint = errors.New("top-up gradient point invalid") + var ErrInvalidSettingsForEpochStartTrigger = errors.New("invalid start of epoch trigger settings") + var ErrInvalidSystemSCReturn = errors.New("invalid system sc return") + var ErrInvalidTotalToDistribute = errors.New("invalid total to distribute") + var ErrInvalidWorkingDir = errors.New("invalid working directory") + var ErrMetaHdrNotFound = errors.New("meta header not found") + var ErrMissingHeader = errors.New("missing header") + var ErrMissingMiniBlock = errors.New("missing miniBlock") + var ErrNilAccountsDB = errors.New("nil accounts DB") + var ErrNilArgsNewMetaEpochStartTrigger = errors.New("nil arguments for meta start of epoch trigger") + var ErrNilArgsNewShardEpochStartTrigger = errors.New("nil arguments for shard start of epoch trigger") + var ErrNilArgumentsParser = errors.New("nil arguments parsers") + var ErrNilBlockKeyGen = errors.New("nil block key generator") + var ErrNilBlockSingleSigner = errors.New("nil block single signer") + var ErrNilChanceComputer = errors.New("nil chance computer") + var ErrNilCoreComponentsHolder = errors.New("nil core components holder") + var ErrNilCryptoComponentsHolder = errors.New("nil crypto components holder") + var ErrNilDataPoolsHolder = errors.New("nil data pools holder") + var ErrNilDataTrie = errors.New("nil data trie") + var ErrNilEconomicsData = errors.New("nil economics data") + var ErrNilEconomicsDataProvider = errors.New("end of epoch economics data provider is nil") + var ErrNilEndOfEpochCallerAddress = errors.New("nil end of epoch caller address") + var ErrNilEpochNotifier = errors.New("nil EpochNotifier") + var ErrNilEpochStartNotifier = errors.New("nil epoch start notifier") + var ErrNilEpochStartSettings = errors.New("nil start of epoch settings") + var ErrNilGenesisNodesConfig = errors.New("nil genesis nodes config") + var ErrNilGenesisTotalSupply = errors.New("nil genesis total supply") + var ErrNilHasher = errors.New("nil hasher") + var ErrNilHeaderHandler = errors.New("nil header handler") + var ErrNilHeaderIntegrityVerifier = errors.New("nil header integrity verifier handler") + var ErrNilHeaderValidator = errors.New("nil header validator") + var ErrNilHeadersSyncer = errors.New("nil headers syncer") + var ErrNilKeyGen = errors.New("nil key generator") + var ErrNilLatestStorageDataProvider = errors.New("nil latest storage data provider") + var ErrNilLocalTxCache = errors.New("nil local tx cache") + var ErrNilMarshalizer = errors.New("nil marshalizer") + var ErrNilMessenger = errors.New("nil messenger") + var ErrNilMetaBlock = errors.New("nil metablock") + var ErrNilMetaBlockStorage = errors.New("nil metablocks storage") + var ErrNilMetaBlocksPool = errors.New("nil metablocks pool") + var ErrNilMetaNonceHashStorage = errors.New("nil meta nonce hash storage") + var ErrNilMetablockProcessor = errors.New("nil metablock processor") + var ErrNilMiniBlockPool = errors.New("nil mini block pool") + var ErrNilMiniBlocksSyncer = errors.New("nil miniBlocks syncer") + var ErrNilMiniblock = errors.New("nil miniblock") + var ErrNilMiniblocks = errors.New("nil arguments for miniblocks object") + var ErrNilNodesConfigProvider = errors.New("nil nodes config provider") + var ErrNilPathManager = errors.New("nil path manager") + var ErrNilProtocolSustainabilityAddress = errors.New("nil protocol sustainability address") + var ErrNilPubKey = errors.New("nil public key") + var ErrNilPubkeyConverter = errors.New("nil pubkey converter") + var ErrNilRater = errors.New("nil rater") + var ErrNilRequestHandler = errors.New("nil request handler") + var ErrNilRewardsHandler = errors.New("rewards handler is nil") + var ErrNilRoundHandler = errors.New("nil RoundHandler") + var ErrNilScheduledDataSyncerFactory = errors.New("nil scheduled data syncer factory") + var ErrNilScheduledTxsHandler = errors.New("nil scheduled transactions handler") + var ErrNilShardCoordinator = errors.New("shard coordinator is nil") + var ErrNilShardHeaderStorage = errors.New("nil shard header storage") + var ErrNilShuffler = errors.New("nil nodes shuffler provided") + var ErrNilSingleSigner = errors.New("nil single signer") + var ErrNilStakingDataProvider = errors.New("nil staking data provider") + var ErrNilStakingSCAddress = errors.New("nil staking system smart contract address") + var ErrNilStatusHandler = errors.New("nil app status handler") + var ErrNilStorage = errors.New("nil storage") + var ErrNilStorageService = errors.New("nil storage service") + var ErrNilStorageUnitOpener = errors.New("nil storage unit opener") + var ErrNilSystemVM = errors.New("nil system VM") + var ErrNilSystemVmInstance = errors.New("nil system VM instance") + var ErrNilTotalAccumulatedFeesInEpoch = errors.New("total accumulated fees in epoch is nil") + var ErrNilTotalDevFeesInEpoch = errors.New("total developer fees in epoch is nil") + var ErrNilTransactionsSyncer = errors.New("nil transactions syncer") + var ErrNilTriggerStorage = errors.New("nil trigger storage") + var ErrNilTxSignMarshalizer = errors.New("nil tx sign marshalizer") + var ErrNilUint64Converter = errors.New("nil uint64 converter") + var ErrNilValidatorInfo = errors.New("validator info is nil") + var ErrNilValidatorInfoProcessor = errors.New("nil validator info processor") + var ErrNotEnoughNumConnectedPeers = errors.New("not enough min num of connected peers from config") + var ErrNotEnoughNumOfPeersToConsiderBlockValid = errors.New("not enough num of peers to consider block valid from config") + var ErrNotEpochStartBlock = errors.New("not epoch start block") + var ErrOwnerDoesntHaveEligibleNodesInEpoch = errors.New("owner has no eligible nodes in epoch") + var ErrProtocolSustainabilityAddressInMetachain = errors.New("protocol sustainability address in metachain") + var ErrResetLastUnJailedFromQueue = errors.New("reset last unjailed from queue failed") + var ErrRewardMiniBlockHashDoesNotMatch = errors.New("reward miniblock hash does not match") + var ErrRewardMiniBlocksNumDoesNotMatch = errors.New("number of created and received rewards miniblocks missmatch") + var ErrStakingSCOutputAccountNotFound = errors.New("staking sc output was not found") + var ErrSystemDelegationCall = errors.New("delegation system sc call returned with error") + var ErrSystemValidatorSCCall = errors.New("system validator sc call failed") + var ErrTimeoutWaitingForMetaBlock = errors.New("timeout while waiting for epoch start meta block") + var ErrUnStakeExecuteError = errors.New("unstake execution error") + var ErrValidatorInfoMiniBlocksNumDoesNotMatch = errors.New("number of created and received validatorInfo miniblocks missmatch") + var ErrValidatorMiniBlockHashDoesNotMatch = errors.New("validatorInfo miniblock hash does not match") + var ErrWrongTypeAssertion = errors.New("wrong type assertion") + type AccountsDBSyncer interface + IsInterfaceNil func() bool + SyncAccounts func(rootHash []byte) error + type ActionHandler interface + EpochStartAction func(hdr data.HeaderHandler) + EpochStartPrepare func(metaHdr data.HeaderHandler, body data.BodyHandler) + NotifyOrder func() uint32 + type EpochEconomicsDataProvider interface + IsInterfaceNil func() bool + LeaderFees func() *big.Int + NumberOfBlocks func() uint64 + NumberOfBlocksPerShard func() map[uint32]uint64 + RewardsToBeDistributed func() *big.Int + RewardsToBeDistributedForBlocks func() *big.Int + SetLeadersFees func(fees *big.Int) + SetNumberOfBlocks func(nbBlocks uint64) + SetNumberOfBlocksPerShard func(blocksPerShard map[uint32]uint64) + SetRewardsToBeDistributed func(rewards *big.Int) + SetRewardsToBeDistributedForBlocks func(rewards *big.Int) + type EpochNotifier interface + CheckEpoch func(epoch uint32) + CurrentEpoch func() uint32 + IsInterfaceNil func() bool + RegisterNotifyHandler func(handler vmcommon.EpochSubscriberHandler) + type HeaderValidator interface + IsHeaderConstructionValid func(currHdr, prevHdr data.HeaderHandler) error + IsInterfaceNil func() bool + type HeadersByHashSyncer interface + ClearFields func() + GetHeaders func() (map[string]data.HeaderHandler, error) + IsInterfaceNil func() bool + SyncMissingHeadersByHash func(shardIDs []uint32, headersHashes [][]byte, ctx context.Context) error + type ImportStartHandler interface + IsAfterExportBeforeImport func() bool + IsInterfaceNil func() bool + ShouldStartImport func() bool + type ManualEpochStartNotifier interface + CurrentEpoch func() uint32 + IsInterfaceNil func() bool + NewEpoch func(epoch uint32) + RegisterHandler func(handler ActionHandler) + type NodesConfigProvider interface + ConsensusGroupSize func(shardID uint32) int + IsInterfaceNil func() bool + type Notifier interface + IsInterfaceNil func() bool + NotifyAll func(hdr data.HeaderHandler) + NotifyAllPrepare func(metaHdr data.HeaderHandler, body data.BodyHandler) + NotifyEpochChangeConfirmed func(epoch uint32) + type PendingMiniBlocksSyncHandler interface + ClearFields func() + GetMiniBlocks func() (map[string]*block.MiniBlock, error) + IsInterfaceNil func() bool + SyncPendingMiniBlocks func(miniBlockHeaders []data.MiniBlockHeaderHandler, ctx context.Context) error + type RegistrationHandler interface + IsInterfaceNil func() bool + RegisterHandler func(handler ActionHandler) + UnregisterHandler func(handler ActionHandler) + type RequestHandler interface + GetNumPeersToQuery func(key string) (int, int, error) + IsInterfaceNil func() bool + RequestInterval func() time.Duration + RequestMetaHeader func(hash []byte) + RequestMetaHeaderByNonce func(nonce uint64) + RequestMiniBlocks func(destShardID uint32, miniblocksHashes [][]byte) + RequestShardHeader func(shardId uint32, hash []byte) + RequestShardHeaderByNonce func(shardId uint32, nonce uint64) + RequestStartOfEpochMetaBlock func(epoch uint32) + SetNumPeersToQuery func(key string, intra int, cross int) error + type RewardsCreator interface + CreateMarshalizedData func(body *block.Body) map[string][][]byte + CreateRewardsMiniBlocks func(metaBlock data.MetaHeaderHandler, ...) (block.MiniBlockSlice, error) + DeleteTxsFromStorage func(metaBlock data.MetaHeaderHandler, body *block.Body) + GetLocalTxCache func() TransactionCacher + GetProtocolSustainabilityRewards func() *big.Int + GetRewardsTxs func(body *block.Body) map[string]data.TransactionHandler + IsInterfaceNil func() bool + RemoveBlockDataFromPools func(metaBlock data.MetaHeaderHandler, body *block.Body) + SaveTxBlockToStorage func(metaBlock data.MetaHeaderHandler, body *block.Body) + VerifyRewardsMiniBlocks func(metaBlock data.MetaHeaderHandler, ...) error + type RoundHandler interface + Index func() int64 + IsInterfaceNil func() bool + TimeStamp func() time.Time + type StakingDataProvider interface + Clean func() + ComputeUnQualifiedNodes func(validatorInfos map[uint32][]*state.ValidatorInfo) ([][]byte, map[string][][]byte, error) + FillValidatorInfo func(blsKey []byte) error + GetNodeStakedTopUp func(blsKey []byte) (*big.Int, error) + GetTotalStakeEligibleNodes func() *big.Int + GetTotalTopUpStakeEligibleNodes func() *big.Int + IsInterfaceNil func() bool + PrepareStakingDataForRewards func(keys map[uint32][][]byte) error + type StartOfEpochMetaSyncer interface + IsInterfaceNil func() bool + SyncEpochStartMeta func(waitTime time.Duration) (data.MetaHeaderHandler, error) + type TransactionCacher interface + GetTx func(txHash []byte) (data.TransactionHandler, error) + IsInterfaceNil func() bool + type TriggerHandler interface + Close func() error + Epoch func() uint32 + EpochFinalityAttestingRound func() uint64 + EpochStartMetaHdrHash func() []byte + EpochStartRound func() uint64 + ForceEpochStart func(round uint64) + GetSavedStateKey func() []byte + IsEpochStart func() bool + IsInterfaceNil func() bool + LoadState func(key []byte) error + MetaEpoch func() uint32 + RequestEpochStartIfNeeded func(interceptedHeader data.HeaderHandler) + RevertStateToBlock func(header data.HeaderHandler) error + SetCurrentEpochStartRound func(round uint64) + SetFinalityAttestingRound func(round uint64) + SetProcessed func(header data.HeaderHandler, body data.BodyHandler) + Update func(round uint64, nonce uint64) + type ValidatorInfoCreator interface + IsInterfaceNil func() bool + PeerAccountToValidatorInfo func(peerAccount state.PeerAccountHandler) *state.ValidatorInfo + type ValidatorStatisticsProcessorHandler interface + Commit func() ([]byte, error) + IsInterfaceNil func() bool + Process func(info data.ShardValidatorInfoHandler) error