Versions in this module Expand all Collapse all v1 v1.999.0 Nov 17, 2022 Changes in this version + var ErrInvalidCacheSize = errors.New("cache size is invalid") + var ErrInvalidHeaderType = errors.New("invalid header type") + var ErrInvalidTypeAssertion = errors.New("invalid type assertion") + var ErrInvalidUserNameLength = errors.New("invalid user name length") + var ErrInvalidValue = errors.New("invalid value") + var ErrLeafSizeTooBig = errors.New("leaf size too big") + var ErrMiniBlockEmpty = errors.New("mini block is empty") + var ErrNegativeValue = errors.New("negative value") + var ErrNilBlockBody = errors.New("nil block body") + var ErrNilCacher = errors.New("nil cacher") + var ErrNilDatabase = errors.New("no database provided") + var ErrNilMarshalizer = errors.New("no marshalizer provided") + var ErrNilPointerDereference = errors.New("nil pointer dereference") + var ErrNilPointerReceiver = errors.New("nil pointer receiver") + var ErrNilRcvAddr = errors.New("nil receiver address") + var ErrNilScheduledRootHash = errors.New("scheduled root hash is nil") + var ErrNilShardCoordinator = errors.New("nil shard coordinator") + var ErrNilSignature = errors.New("nil signature") + var ErrNilSndAddr = errors.New("nil sender address") + var ErrNilThrottler = errors.New("nil throttler") + var ErrNilTxHash = errors.New("nil transaction hash") + var ErrNilValue = errors.New("nil value") + var ErrScheduledRootHashNotSupported = errors.New("scheduled root hash is not supported") + var ErrTimeIsOut = errors.New("time is out") + var ErrWrongTransactionsTypeSize = errors.New("wrong transactions type size") + type BigIntCaster struct + func (c *BigIntCaster) Equal(a, b *big.Int) bool + func (c *BigIntCaster) MarshalTo(a *big.Int, buf []byte) (int, error) + func (c *BigIntCaster) NewPopulated() *big.Int + func (c *BigIntCaster) Size(a *big.Int) int + func (c *BigIntCaster) Unmarshal(buf []byte) (*big.Int, error) + type BodyHandler interface + Clone func() BodyHandler + IntegrityAndValidity func() error + IsInterfaceNil func() bool + type ChainHandler interface + GetCurrentBlockHeader func() HeaderHandler + GetCurrentBlockHeaderHash func() []byte + GetCurrentBlockRootHash func() []byte + GetFinalBlockInfo func() (nonce uint64, blockHash []byte, rootHash []byte) + GetGenesisHeader func() HeaderHandler + GetGenesisHeaderHash func() []byte + IsInterfaceNil func() bool + SetCurrentBlockHeaderAndRootHash func(bh HeaderHandler, rootHash []byte) error + SetCurrentBlockHeaderHash func(hash []byte) + SetFinalBlockInfo func(nonce uint64, blockHash []byte, rootHash []byte) + SetGenesisHeader func(gb HeaderHandler) error + SetGenesisHeaderHash func(hash []byte) + type ConsensusRewardData struct + Addresses []string + Epoch uint32 + PubKeys []string + Round uint64 + type EconomicsHandler interface + GetNodePrice func() *big.Int + GetPrevEpochStartHash func() []byte + GetPrevEpochStartRound func() uint64 + GetRewardsForProtocolSustainability func() *big.Int + GetRewardsPerBlock func() *big.Int + GetTotalNewlyMinted func() *big.Int + GetTotalSupply func() *big.Int + GetTotalToDistribute func() *big.Int + SetNodePrice func(nodePrice *big.Int) error + SetPrevEpochStartHash func(prevEpochStartHash []byte) error + SetPrevEpochStartRound func(prevEpochStartRound uint64) error + SetRewardsForProtocolSustainability func(rewardsForProtocolSustainability *big.Int) error + SetRewardsPerBlock func(rewardsPerBlock *big.Int) error + SetTotalNewlyMinted func(totalNewlyMinted *big.Int) error + SetTotalSupply func(totalSupply *big.Int) error + SetTotalToDistribute func(totalToDistribute *big.Int) error + type EpochStartHandler interface + GetEconomicsHandler func() EconomicsHandler + GetLastFinalizedHeaderHandlers func() []EpochStartShardDataHandler + SetEconomics func(economicsHandler EconomicsHandler) error + SetLastFinalizedHeaders func(epochStartShardDataHandlers []EpochStartShardDataHandler) error + type EpochStartShardDataHandler interface + GetEpoch func() uint32 + GetFirstPendingMetaBlock func() []byte + GetHeaderHash func() []byte + GetLastFinishedMetaBlock func() []byte + GetNonce func() uint64 + GetPendingMiniBlockHeaderHandlers func() []MiniBlockHeaderHandler + GetRootHash func() []byte + GetRound func() uint64 + GetShardID func() uint32 + SetEpoch func(uint32) error + SetFirstPendingMetaBlock func([]byte) error + SetHeaderHash func([]byte) error + SetLastFinishedMetaBlock func([]byte) error + SetNonce func(uint64) error + SetPendingMiniBlockHeaders func([]MiniBlockHeaderHandler) error + SetRootHash func([]byte) error + SetRound func(uint64) error + SetShardID func(uint32) error + type EventHandler interface + GetAddress func() []byte + GetData func() []byte + GetIdentifier func() []byte + GetTopics func() [][]byte + IsInterfaceNil func() bool + type GoRoutineThrottler interface + CanProcess func() bool + EndProcessing func() + IsInterfaceNil func() bool + StartProcessing func() + type HeaderHandler interface + GetAccumulatedFees func() *big.Int + GetAdditionalData func() headerVersionData.HeaderAdditionalData + GetChainID func() []byte + GetDeveloperFees func() *big.Int + GetEpoch func() uint32 + GetLeaderSignature func() []byte + GetMiniBlockHeaderHandlers func() []MiniBlockHeaderHandler + GetMiniBlockHeadersHashes func() [][]byte + GetMiniBlockHeadersWithDst func(destId uint32) map[string]uint32 + GetNonce func() uint64 + GetOrderedCrossMiniblocksWithDst func(destId uint32) []*MiniBlockInfo + GetPrevHash func() []byte + GetPrevRandSeed func() []byte + GetPubKeysBitmap func() []byte + GetRandSeed func() []byte + GetReceiptsHash func() []byte + GetReserved func() []byte + GetRootHash func() []byte + GetRound func() uint64 + GetShardID func() uint32 + GetSignature func() []byte + GetSoftwareVersion func() []byte + GetTimeStamp func() uint64 + GetTxCount func() uint32 + HasScheduledMiniBlocks func() bool + HasScheduledSupport func() bool + IsInterfaceNil func() bool + IsStartOfEpochBlock func() bool + SetAccumulatedFees func(value *big.Int) error + SetAdditionalData func(headerVersionData headerVersionData.HeaderAdditionalData) error + SetChainID func(chainID []byte) error + SetDeveloperFees func(value *big.Int) error + SetEpoch func(e uint32) error + SetLeaderSignature func(sg []byte) error + SetMiniBlockHeaderHandlers func(mbHeaderHandlers []MiniBlockHeaderHandler) error + SetNonce func(n uint64) error + SetPrevHash func(pvHash []byte) error + SetPrevRandSeed func(pvRandSeed []byte) error + SetPubKeysBitmap func(pkbm []byte) error + SetRandSeed func(randSeed []byte) error + SetReceiptsHash func(hash []byte) error + SetRootHash func(rHash []byte) error + SetRound func(r uint64) error + SetScheduledRootHash func(rootHash []byte) error + SetShardID func(shId uint32) error + SetSignature func(sg []byte) error + SetSoftwareVersion func(version []byte) error + SetTimeStamp func(ts uint64) error + SetTxCount func(txCount uint32) error + ShallowClone func() HeaderHandler + ValidateHeaderVersion func() error + func TrimHeaderHandlerSlice(in []HeaderHandler) []HeaderHandler + type LogData struct + TxHash string + type LogHandler interface + GetAddress func() []byte + GetLogEvents func() []EventHandler + IsInterfaceNil func() bool + type MetaHeaderHandler interface + GetDevFeesInEpoch func() *big.Int + GetEpochStartHandler func() EpochStartHandler + GetShardInfoHandlers func() []ShardDataHandler + GetValidatorStatsRootHash func() []byte + SetAccumulatedFeesInEpoch func(value *big.Int) error + SetDevFeesInEpoch func(value *big.Int) error + SetShardInfoHandlers func(shardInfo []ShardDataHandler) error + SetValidatorStatsRootHash func(rHash []byte) error + type MiniBlockHeaderHandler interface + GetConstructionState func() int32 + GetHash func() []byte + GetIndexOfFirstTxProcessed func() int32 + GetIndexOfLastTxProcessed func() int32 + GetProcessingType func() int32 + GetReceiverShardID func() uint32 + GetReserved func() []byte + GetSenderShardID func() uint32 + GetTxCount func() uint32 + GetTypeInt32 func() int32 + IsFinal func() bool + SetConstructionState func(state int32) error + SetHash func(hash []byte) error + SetIndexOfFirstTxProcessed func(indexOfFirstTxProcessed int32) error + SetIndexOfLastTxProcessed func(indexOfLastTxProcessed int32) error + SetProcessingType func(procType int32) error + SetReceiverShardID func(shardID uint32) error + SetReserved func(reserved []byte) error + SetSenderShardID func(shardID uint32) error + SetTxCount func(count uint32) error + SetTypeInt32 func(t int32) error + ShallowClone func() MiniBlockHeaderHandler + type MiniBlockInfo struct + Hash []byte + Round uint64 + SenderShardID uint32 + type PeerChangeHandler interface + GetPubKey func() []byte + GetShardIdDest func() uint32 + SetPubKey func(pubKey []byte) error + SetShardIdDest func(shardID uint32) error + type ShardDataHandler interface + GetAccumulatedFees func() *big.Int + GetDeveloperFees func() *big.Int + GetHeaderHash func() []byte + GetLastIncludedMetaNonce func() uint64 + GetNonce func() uint64 + GetNumPendingMiniBlocks func() uint32 + GetPrevHash func() []byte + GetPrevRandSeed func() []byte + GetPubKeysBitmap func() []byte + GetRound func() uint64 + GetShardID func() uint32 + GetShardMiniBlockHeaderHandlers func() []MiniBlockHeaderHandler + GetSignature func() []byte + GetTxCount func() uint32 + SetAccumulatedFees func(fees *big.Int) error + SetDeveloperFees func(fees *big.Int) error + SetHeaderHash func(hash []byte) error + SetLastIncludedMetaNonce func(nonce uint64) error + SetNonce func(nonce uint64) error + SetNumPendingMiniBlocks func(num uint32) error + SetPrevHash func(prevHash []byte) error + SetPrevRandSeed func(prevRandSeed []byte) error + SetPubKeysBitmap func(pubKeysBitmap []byte) error + SetRound func(round uint64) error + SetShardID func(shardID uint32) error + SetShardMiniBlockHeaderHandlers func(mbHeaderHandlers []MiniBlockHeaderHandler) error + SetSignature func(signature []byte) error + SetTxCount func(txCount uint32) error + ShallowClone func() ShardDataHandler + type ShardHeaderHandler interface + GetBlockBodyTypeInt32 func() int32 + GetEpochStartMetaHash func() []byte + GetMetaBlockHashes func() [][]byte + MapMiniBlockHashesToShards func() map[string]uint32 + SetEpochStartMetaHash func(hash []byte) error + SetMetaBlockHashes func(hashes [][]byte) error + type ShardValidatorInfoHandler interface + GetPublicKey func() []byte + GetTempRating func() uint32 + IsInterfaceNil func() bool + String func() string + type SyncStatisticsHandler interface + AddNumLarge func(value int) + AddNumReceived func(value int) + IsInterfaceNil func() bool + NumLarge func() int + NumMissing func() int + NumReceived func() int + Reset func() + SetNumMissing func(rootHash []byte, value int) + type TransactionHandler interface + CheckIntegrity func() error + GetData func() []byte + GetGasLimit func() uint64 + GetGasPrice func() uint64 + GetNonce func() uint64 + GetRcvAddr func() []byte + GetRcvUserName func() []byte + GetSndAddr func() []byte + GetValue func() *big.Int + IsInterfaceNil func() bool + SetData func([]byte) + SetRcvAddr func([]byte) + SetSndAddr func([]byte) + SetValue func(*big.Int) + Size func() int + type TransactionWithFeeHandler interface + GetData func() []byte + GetGasLimit func() uint64 + GetGasPrice func() uint64 + GetRcvAddr func() []byte + GetValue func() *big.Int + type TriggerRegistryHandler interface + GetCurrentRoundIndex func() int64 + GetEpoch func() uint32 + GetEpochFinalityAttestingRound func() uint64 + GetEpochMetaBlockHash func() []byte + GetEpochStartHeaderHandler func() HeaderHandler + GetEpochStartRound func() uint64 + GetIsEpochStart func() bool + GetMetaEpoch func() uint32 + GetNewEpochHeaderReceived func() bool + SetCurrentRoundIndex func(roundIndex int64) error + SetEpoch func(epoch uint32) error + SetEpochFinalityAttestingRound func(finalityAttestingRound uint64) error + SetEpochMetaBlockHash func(epochMetaBlockHash []byte) error + SetEpochStartHeaderHandler func(epochStartHeaderHandler HeaderHandler) error + SetEpochStartRound func(startRound uint64) error + SetIsEpochStart func(isEpochStart bool) error + SetMetaEpoch func(metaEpoch uint32) error + SetNewEpochHeaderReceived func(newEpochHeaderReceived bool) error + type UserAccountHandler interface + AddressBytes func() []byte + GetBalance func() *big.Int + GetNonce func() uint64 + IsInterfaceNil func() bool + RetrieveValueFromDataTrieTracker func(key []byte) ([]byte, error) + type ValidatorInfoHandler interface + GetIndex func() uint32 + GetList func() string + GetPublicKey func() []byte + GetRating func() uint32 + GetShardId func() uint32 + GetTempRating func() uint32 + IsInterfaceNil func() bool + String func() string