Versions in this module Expand all Collapse all v1 v1.1.66 Jun 17, 2021 v1.1.65 Jun 17, 2021 Changes in this version + var ErrInvalidCacheSize = errors.New("cache size is invalid") + var ErrInvalidHeaderType = errors.New("invalid header type") + 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 ErrNilRcvAddr = errors.New("nil receiver address") + 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 ErrTimeIsOut = errors.New("time is out") + 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 + CreateNewHeader func() HeaderHandler + GetCurrentBlockHeader func() HeaderHandler + GetCurrentBlockHeaderHash func() []byte + GetGenesisHeader func() HeaderHandler + GetGenesisHeaderHash func() []byte + IsInterfaceNil func() bool + SetCurrentBlockHeader func(bh HeaderHandler) error + SetCurrentBlockHeaderHash func(hash []byte) + SetGenesisHeader func(gb HeaderHandler) error + SetGenesisHeaderHash func(hash []byte) + type ConsensusRewardData struct + Addresses []string + Epoch uint32 + PubKeys []string + Round uint64 + type DBRemoveCacher interface + Evict func([]byte) (ModifiedHashes, error) + IsInterfaceNil func() bool + Put func([]byte, ModifiedHashes) error + ShouldKeepHash func(hash string, identifier TriePruningIdentifier) (bool, error) + type DBWriteCacher interface + Close func() error + Get func(key []byte) ([]byte, error) + IsInterfaceNil func() bool + Put func(key, val []byte) error + Remove func(key []byte) 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 + Clone func() HeaderHandler + GetAccumulatedFees func() *big.Int + GetChainID func() []byte + GetDeveloperFees func() *big.Int + GetEpoch func() uint32 + GetEpochStartMetaHash func() []byte + GetLeaderSignature func() []byte + 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 + GetValidatorStatsRootHash func() []byte + IsInterfaceNil func() bool + IsStartOfEpochBlock func() bool + SetAccumulatedFees func(value *big.Int) + SetChainID func(chainID []byte) + SetDeveloperFees func(value *big.Int) + SetEpoch func(e uint32) + SetLeaderSignature func(sg []byte) + SetNonce func(n uint64) + SetPrevHash func(pvHash []byte) + SetPrevRandSeed func(pvRandSeed []byte) + SetPubKeysBitmap func(pkbm []byte) + SetRandSeed func(randSeed []byte) + SetRootHash func(rHash []byte) + SetRound func(r uint64) + SetShardID func(shId uint32) + SetSignature func(sg []byte) + SetSoftwareVersion func(version []byte) + SetTimeStamp func(ts uint64) + SetTxCount func(txCount uint32) + SetValidatorStatsRootHash func(rHash []byte) + func TrimHeaderHandlerSlice(in []HeaderHandler) []HeaderHandler + type LogHandler interface + GetAddress func() []byte + GetLogEvents func() []EventHandler + IsInterfaceNil func() bool + type MiniBlockInfo struct + Hash []byte + Round uint64 + SenderShardID uint32 + type ModifiedHashes map[string]struct + type NumNodesDTO struct + Branches int + Extensions int + Leaves int + MaxLevel int + type ShardValidatorInfoHandler interface + GetPublicKey func() []byte + GetTempRating func() uint32 + IsInterfaceNil func() bool + String func() string + type SnapshotDbHandler interface + DecreaseNumReferences func() + IncreaseNumReferences func() + IsInUse func() bool + MarkForRemoval func() + SetPath func(string) + type StorageManager interface + CancelPrune func([]byte, TriePruningIdentifier) + Database func() DBWriteCacher + EnterPruningBufferingMode func() + ExitPruningBufferingMode func() + GetSnapshotDbBatchDelay func() int + GetSnapshotThatContainsHash func(rootHash []byte) SnapshotDbHandler + IsInterfaceNil func() bool + IsPruningEnabled func() bool + MarkForEviction func([]byte, ModifiedHashes) error + Prune func([]byte, TriePruningIdentifier) + SetCheckpoint func([]byte) + TakeSnapshot func([]byte) + type SyncStatisticsHandler interface + AddNumReceived func(value int) + IsInterfaceNil func() bool + 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 Trie interface + AppendToOldHashes func([][]byte) + ClosePersister func() error + Commit func() error + Delete func(key []byte) error + Get func(key []byte) ([]byte, error) + GetAllHashes func() ([][]byte, error) + GetAllLeavesOnChannel func(rootHash []byte, ctx context.Context) (chan core.KeyValueHolder, error) + GetDirtyHashes func() (ModifiedHashes, error) + GetNumNodes func() NumNodesDTO + GetProof func(key []byte) ([][]byte, error) + GetSerializedNode func([]byte) ([]byte, error) + GetSerializedNodes func([]byte, uint64) ([][]byte, uint64, error) + GetStorageManager func() StorageManager + IsInterfaceNil func() bool + Recreate func(root []byte) (Trie, error) + ResetOldHashes func() [][]byte + RootHash func() ([]byte, error) + SetNewHashes func(ModifiedHashes) + String func() string + Update func(key, value []byte) error + VerifyProof func(key []byte, proof [][]byte) (bool, error) + type TrieFactory interface + Create func(config.StorageConfig, string, bool, uint) (StorageManager, Trie, error) + IsInterfaceNil func() bool + type TriePruningIdentifier byte + const NewRoot + const OldRoot + type TrieSyncer interface + IsInterfaceNil func() bool + StartSyncing func(rootHash []byte, ctx context.Context) 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