Versions in this module Expand all Collapse all v1 v1.999.0 Nov 17, 2022 Changes in this version + const HashLength + var ErrAccNotFound = errors.New("account was not found") + var ErrEmptyAddress = errors.New("empty Address") + var ErrFunctionalityNotImplemented = errors.New("functionality not implemented yet") + var ErrInsufficientFunds = errors.New("insufficient funds") + var ErrIntOverflowPeerAccountData = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowUserAccountData = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowValidatorInfo = fmt.Errorf("proto: integer overflow") + var ErrInvalidAddressLength = errors.New("invalid address length") + var ErrInvalidIdentifier = errors.New("invalid identifier") + var ErrInvalidKey = errors.New("invalid key") + var ErrInvalidLengthPeerAccountData = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthUserAccountData = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthValidatorInfo = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidMaxHardCapForMissingNodes = errors.New("invalid max hardcap for missing nodes") + var ErrInvalidPubkeyConverterType = errors.New("invalid pubkey converter type") + var ErrInvalidRootHash = errors.New("invalid root hash") + var ErrNegativeValue = errors.New("negative values are not permited") + var ErrNilAccountFactory = errors.New("account factory is nil") + var ErrNilAccountHandler = errors.New("account wrapper is nil") + var ErrNilAccountsAdapter = errors.New("nil AccountsAdapter") + var ErrNilAddress = errors.New("nil address") + var ErrNilBLSPublicKey = errors.New("bls public key is nil") + var ErrNilBlockInfo = errors.New("nil block info") + var ErrNilBlockInfoProvider = errors.New("nil block info provider") + var ErrNilCacher = errors.New("nil cacher") + var ErrNilEvictionWaitingList = errors.New("nil eviction waiting list provided") + var ErrNilHasher = errors.New("nil hasher") + var ErrNilMapOfHashes = errors.New("nil map of hashes") + var ErrNilMarshalizer = errors.New("nil marshalizer") + var ErrNilOrEmptyDataTrieUpdates = errors.New("no data trie updates") + var ErrNilProcessStatusHandler = errors.New("nil process status handler") + var ErrNilRequestHandler = errors.New("nil request handler") + var ErrNilRootHash = errors.New("nil root hash") + var ErrNilShardCoordinator = errors.New("shard coordinator is nil") + var ErrNilStorageManager = errors.New("nil storage manager") + var ErrNilStoragePruningManager = errors.New("nil storagePruningManager") + var ErrNilTrackableDataTrie = errors.New("nil trackable data trie") + var ErrNilTrie = errors.New("trie is nil") + var ErrNilUpdater = errors.New("updater is nil") + var ErrOperationNotPermitted = errors.New("operation in account not permitted") + var ErrSnapshotValueOutOfBounds = errors.New("snapshot value out of bounds") + var ErrUnexpectedEndOfGroupPeerAccountData = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupUserAccountData = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupValidatorInfo = fmt.Errorf("proto: unexpected end of group") + var ErrWrongTypeAssertion = errors.New("wrong type assertion") + func NewAccountsDBApi(innerAccountsAdapter AccountsAdapter, blockInfoProvider BlockInfoProvider) (*accountsDBApi, error) + func NewAccountsDBApiWithHistory(innerAccountsAdapter AccountsAdapter) (*accountsDBApiWithHistory, error) + func NewAccountsRepository(args ArgsAccountsRepository) (*accountsRepository, error) + func NewDataTriesHolder() *dataTriesHolder + func NewEmptyPeerAccount() *peerAccount + func NewEmptyUserAccount() *userAccount + func NewJournalEntryAccount(account vmcommon.AccountHandler) (*journalEntryAccount, error) + func NewJournalEntryAccountCreation(address []byte, updater Updater) (*journalEntryAccountCreation, error) + func NewJournalEntryCode(oldCodeEntry *CodeEntry, oldCodeHash []byte, newCodeHash []byte, trie Updater, ...) (*journalEntryCode, error) + func NewJournalEntryDataTrieRemove(rootHash []byte, obsoleteDataTrieHashes map[string][][]byte) (*journalEntryDataTrieRemove, error) + func NewJournalEntryDataTrieUpdates(trieUpdates map[string][]byte, account baseAccountHandler) (*journalEntryDataTrieUpdates, error) + func NewPeerAccount(address []byte) (*peerAccount, error) + func NewPruningHandler(isPruningEnabled PruningHandlerOperation) *pruningHandler + func NewUserAccount(address []byte) (*userAccount, error) + type AccountFactory interface + CreateAccount func(address []byte) (vmcommon.AccountHandler, error) + IsInterfaceNil func() bool + type AccountsAdapter interface + CancelPrune func(rootHash []byte, identifier TriePruningIdentifier) + Close func() error + Commit func() ([]byte, error) + CommitInEpoch func(currentEpoch uint32, epochToCommit uint32) ([]byte, error) + GetAccountFromBytes func(address []byte, accountBytes []byte) (vmcommon.AccountHandler, error) + GetAllLeaves func(leavesChannel chan core.KeyValueHolder, ctx context.Context, rootHash []byte) error + GetCode func(codeHash []byte) []byte + GetExistingAccount func(address []byte) (vmcommon.AccountHandler, error) + GetStackDebugFirstEntry func() []byte + GetTrie func(rootHash []byte) (common.Trie, error) + IsInterfaceNil func() bool + IsPruningEnabled func() bool + JournalLen func() int + LoadAccount func(address []byte) (vmcommon.AccountHandler, error) + PruneTrie func(rootHash []byte, identifier TriePruningIdentifier, handler PruningHandler) + RecreateAllTries func(rootHash []byte) (map[string]common.Trie, error) + RecreateTrie func(rootHash []byte) error + RecreateTrieFromEpoch func(options common.RootHashHolder) error + RemoveAccount func(address []byte) error + RevertToSnapshot func(snapshot int) error + RootHash func() ([]byte, error) + SaveAccount func(account vmcommon.AccountHandler) error + SetStateCheckpoint func(rootHash []byte) + SnapshotState func(rootHash []byte) + StartSnapshotIfNeeded func() + type AccountsAdapterAPI interface + GetAccountWithBlockInfo func(address []byte, options common.RootHashHolder) (vmcommon.AccountHandler, common.BlockInfo, error) + GetCodeWithBlockInfo func(codeHash []byte, options common.RootHashHolder) ([]byte, common.BlockInfo, error) + type AccountsDB struct + func NewAccountsDB(args ArgsAccountsDB) (*AccountsDB, error) + func (adb *AccountsDB) CancelPrune(rootHash []byte, identifier TriePruningIdentifier) + func (adb *AccountsDB) Close() error + func (adb *AccountsDB) Commit() ([]byte, error) + func (adb *AccountsDB) CommitInEpoch(currentEpoch uint32, epochToCommit uint32) ([]byte, error) + func (adb *AccountsDB) GetAccountFromBytes(address []byte, accountBytes []byte) (vmcommon.AccountHandler, error) + func (adb *AccountsDB) GetAllLeaves(leavesChannel chan core.KeyValueHolder, ctx context.Context, rootHash []byte) error + func (adb *AccountsDB) GetCode(codeHash []byte) []byte + func (adb *AccountsDB) GetExistingAccount(address []byte) (vmcommon.AccountHandler, error) + func (adb *AccountsDB) GetStackDebugFirstEntry() []byte + func (adb *AccountsDB) GetTrie(rootHash []byte) (common.Trie, error) + func (adb *AccountsDB) ImportAccount(account vmcommon.AccountHandler) error + func (adb *AccountsDB) IsInterfaceNil() bool + func (adb *AccountsDB) IsPruningEnabled() bool + func (adb *AccountsDB) JournalLen() int + func (adb *AccountsDB) LoadAccount(address []byte) (vmcommon.AccountHandler, error) + func (adb *AccountsDB) PruneTrie(rootHash []byte, identifier TriePruningIdentifier, handler PruningHandler) + func (adb *AccountsDB) RecreateAllTries(rootHash []byte) (map[string]common.Trie, error) + func (adb *AccountsDB) RecreateTrie(rootHash []byte) error + func (adb *AccountsDB) RecreateTrieFromEpoch(options common.RootHashHolder) error + func (adb *AccountsDB) RemoveAccount(address []byte) error + func (adb *AccountsDB) RevertToSnapshot(snapshot int) error + func (adb *AccountsDB) RootHash() ([]byte, error) + func (adb *AccountsDB) SaveAccount(account vmcommon.AccountHandler) error + func (adb *AccountsDB) SetStateCheckpoint(rootHash []byte) + func (adb *AccountsDB) SnapshotState(rootHash []byte) + func (adb *AccountsDB) StartSnapshotIfNeeded() + type AccountsDBImporter interface + Commit func() ([]byte, error) + ImportAccount func(account vmcommon.AccountHandler) error + IsInterfaceNil func() bool + type AccountsDbIdentifier byte + const PeerAccountsState + const UserAccountsState + type AccountsRepository interface + Close func() error + GetAccountWithBlockInfo func(address []byte, options api.AccountQueryOptions) (vmcommon.AccountHandler, common.BlockInfo, error) + GetCodeWithBlockInfo func(codeHash []byte, options api.AccountQueryOptions) ([]byte, common.BlockInfo, error) + GetCurrentStateAccountsWrapper func() AccountsAdapterAPI + IsInterfaceNil func() bool + type ArgsAccountsDB struct + AccountFactory AccountFactory + Hasher hashing.Hasher + Marshaller marshal.Marshalizer + ProcessStatusHandler common.ProcessStatusHandler + ProcessingMode common.NodeProcessingMode + ShouldSerializeSnapshots bool + StoragePruningManager StoragePruningManager + Trie common.Trie + type ArgsAccountsRepository struct + CurrentStateAccountsWrapper AccountsAdapterAPI + FinalStateAccountsWrapper AccountsAdapterAPI + HistoricalStateAccountsWrapper AccountsAdapterAPI + type AtomicBuffer interface + Add func(rootHash []byte) + Len func() int + RemoveAll func() [][]byte + type BlockInfoProvider interface + GetBlockInfo func() common.BlockInfo + IsInterfaceNil func() bool + type CodeEntry struct + Code []byte + NumReferences uint32 + func (*CodeEntry) Descriptor() ([]byte, []int) + func (*CodeEntry) ProtoMessage() + func (m *CodeEntry) GetCode() []byte + func (m *CodeEntry) GetNumReferences() uint32 + func (m *CodeEntry) Marshal() (dAtA []byte, err error) + func (m *CodeEntry) MarshalTo(dAtA []byte) (int, error) + func (m *CodeEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CodeEntry) Reset() + func (m *CodeEntry) Size() (n int) + func (m *CodeEntry) Unmarshal(dAtA []byte) error + func (m *CodeEntry) XXX_DiscardUnknown() + func (m *CodeEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CodeEntry) XXX_Merge(src proto.Message) + func (m *CodeEntry) XXX_Size() int + func (m *CodeEntry) XXX_Unmarshal(b []byte) error + func (this *CodeEntry) Equal(that interface{}) bool + func (this *CodeEntry) GoString() string + func (this *CodeEntry) String() string + type DBRemoveCacher interface + Close func() error + Evict func([]byte) (common.ModifiedHashes, error) + IsInterfaceNil func() bool + Put func([]byte, common.ModifiedHashes) error + ShouldKeepHash func(hash string, identifier TriePruningIdentifier) (bool, error) + type DataTrieTracker interface + ClearDataCaches func() + DataTrie func() common.Trie + DirtyData func() map[string][]byte + IsInterfaceNil func() bool + RetrieveValue func(key []byte) ([]byte, error) + SaveKeyValue func(key []byte, value []byte) error + SetDataTrie func(tr common.Trie) + type ErrAccountNotFoundAtBlock struct + BlockInfo common.BlockInfo + func NewErrAccountNotFoundAtBlock(blockInfo common.BlockInfo) *ErrAccountNotFoundAtBlock + func (e *ErrAccountNotFoundAtBlock) Error() string + type ErrMissingTrie struct + func NewErrMissingTrie(rootHash []byte) *ErrMissingTrie + func (e *ErrMissingTrie) Error() string + type JournalEntry interface + IsInterfaceNil func() bool + Revert func() (vmcommon.AccountHandler, error) + type PeerAccountData struct + AccumulatedFees *math_big.Int + BLSPublicKey []byte + ConsecutiveProposerMisses uint32 + IndexInList uint32 + LeaderSuccessRate SignRate + List string + Nonce uint64 + NumSelectedInSuccessBlocks uint32 + Rating uint32 + RewardAddress []byte + ShardId uint32 + TempRating uint32 + TotalLeaderSuccessRate SignRate + TotalValidatorIgnoredSignaturesRate uint32 + TotalValidatorSuccessRate SignRate + UnStakedEpoch uint32 + ValidatorIgnoredSignaturesRate uint32 + ValidatorSuccessRate SignRate + func (*PeerAccountData) Descriptor() ([]byte, []int) + func (*PeerAccountData) ProtoMessage() + func (m *PeerAccountData) GetAccumulatedFees() *math_big.Int + func (m *PeerAccountData) GetBLSPublicKey() []byte + func (m *PeerAccountData) GetConsecutiveProposerMisses() uint32 + func (m *PeerAccountData) GetIndexInList() uint32 + func (m *PeerAccountData) GetLeaderSuccessRate() SignRate + func (m *PeerAccountData) GetList() string + func (m *PeerAccountData) GetNonce() uint64 + func (m *PeerAccountData) GetNumSelectedInSuccessBlocks() uint32 + func (m *PeerAccountData) GetRating() uint32 + func (m *PeerAccountData) GetRewardAddress() []byte + func (m *PeerAccountData) GetShardId() uint32 + func (m *PeerAccountData) GetTempRating() uint32 + func (m *PeerAccountData) GetTotalLeaderSuccessRate() SignRate + func (m *PeerAccountData) GetTotalValidatorIgnoredSignaturesRate() uint32 + func (m *PeerAccountData) GetTotalValidatorSuccessRate() SignRate + func (m *PeerAccountData) GetUnStakedEpoch() uint32 + func (m *PeerAccountData) GetValidatorIgnoredSignaturesRate() uint32 + func (m *PeerAccountData) GetValidatorSuccessRate() SignRate + func (m *PeerAccountData) Marshal() (dAtA []byte, err error) + func (m *PeerAccountData) MarshalTo(dAtA []byte) (int, error) + func (m *PeerAccountData) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *PeerAccountData) Reset() + func (m *PeerAccountData) Size() (n int) + func (m *PeerAccountData) Unmarshal(dAtA []byte) error + func (m *PeerAccountData) XXX_DiscardUnknown() + func (m *PeerAccountData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *PeerAccountData) XXX_Merge(src proto.Message) + func (m *PeerAccountData) XXX_Size() int + func (m *PeerAccountData) XXX_Unmarshal(b []byte) error + func (this *PeerAccountData) Equal(that interface{}) bool + func (this *PeerAccountData) GoString() string + func (this *PeerAccountData) String() string + type PeerAccountHandler interface + AddToAccumulatedFees func(*big.Int) + DecreaseLeaderSuccessRate func(uint32) + DecreaseValidatorSuccessRate func(uint32) + GetAccumulatedFees func() *big.Int + GetBLSPublicKey func() []byte + GetConsecutiveProposerMisses func() uint32 + GetIndexInList func() uint32 + GetLeaderSuccessRate func() SignRate + GetList func() string + GetNumSelectedInSuccessBlocks func() uint32 + GetRating func() uint32 + GetRewardAddress func() []byte + GetShardId func() uint32 + GetTempRating func() uint32 + GetTotalLeaderSuccessRate func() SignRate + GetTotalValidatorIgnoredSignaturesRate func() uint32 + GetTotalValidatorSuccessRate func() SignRate + GetUnStakedEpoch func() uint32 + GetValidatorIgnoredSignaturesRate func() uint32 + GetValidatorSuccessRate func() SignRate + IncreaseLeaderSuccessRate func(uint32) + IncreaseNumSelectedInSuccessBlocks func() + IncreaseValidatorIgnoredSignaturesRate func(uint32) + IncreaseValidatorSuccessRate func(uint32) + ResetAtNewEpoch func() + SetBLSPublicKey func([]byte) error + SetConsecutiveProposerMisses func(uint322 uint32) + SetListAndIndex func(shardID uint32, list string, index uint32) + SetRating func(uint32) + SetRewardAddress func([]byte) error + SetTempRating func(uint32) + SetUnStakedEpoch func(epoch uint32) + type PeerAccountsDB struct + func NewPeerAccountsDB(args ArgsAccountsDB) (*PeerAccountsDB, error) + func (adb *PeerAccountsDB) IsInterfaceNil() bool + func (adb *PeerAccountsDB) MarkSnapshotDone() + func (adb *PeerAccountsDB) RecreateAllTries(rootHash []byte) (map[string]common.Trie, error) + func (adb *PeerAccountsDB) SetStateCheckpoint(rootHash []byte) + func (adb *PeerAccountsDB) SnapshotState(rootHash []byte) + func (adb *PeerAccountsDB) StartSnapshotIfNeeded() + type PeerTypeInfo struct + PeerSubType core.P2PPeerSubType + PeerType string + PublicKey string + ShardId uint32 + type PruningHandler interface + IsPruningEnabled func() bool + type PruningHandlerOperation bool + const DisableDataRemoval + const EnableDataRemoval + type ShardValidatorInfo struct + Index uint32 + List string + PublicKey []byte + ShardId uint32 + TempRating uint32 + func (*ShardValidatorInfo) Descriptor() ([]byte, []int) + func (*ShardValidatorInfo) ProtoMessage() + func (m *ShardValidatorInfo) GetIndex() uint32 + func (m *ShardValidatorInfo) GetList() string + func (m *ShardValidatorInfo) GetPublicKey() []byte + func (m *ShardValidatorInfo) GetShardId() uint32 + func (m *ShardValidatorInfo) GetTempRating() uint32 + func (m *ShardValidatorInfo) Marshal() (dAtA []byte, err error) + func (m *ShardValidatorInfo) MarshalTo(dAtA []byte) (int, error) + func (m *ShardValidatorInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ShardValidatorInfo) Reset() + func (m *ShardValidatorInfo) Size() (n int) + func (m *ShardValidatorInfo) Unmarshal(dAtA []byte) error + func (m *ShardValidatorInfo) XXX_DiscardUnknown() + func (m *ShardValidatorInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ShardValidatorInfo) XXX_Merge(src proto.Message) + func (m *ShardValidatorInfo) XXX_Size() int + func (m *ShardValidatorInfo) XXX_Unmarshal(b []byte) error + func (svi *ShardValidatorInfo) IsInterfaceNil() bool + func (this *ShardValidatorInfo) Equal(that interface{}) bool + func (this *ShardValidatorInfo) GoString() string + func (this *ShardValidatorInfo) String() string + type SignRate struct + NumFailure uint32 + NumSuccess uint32 + func (*SignRate) Descriptor() ([]byte, []int) + func (*SignRate) ProtoMessage() + func (m *SignRate) GetNumFailure() uint32 + func (m *SignRate) GetNumSuccess() uint32 + func (m *SignRate) Marshal() (dAtA []byte, err error) + func (m *SignRate) MarshalTo(dAtA []byte) (int, error) + func (m *SignRate) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *SignRate) Reset() + func (m *SignRate) Size() (n int) + func (m *SignRate) Unmarshal(dAtA []byte) error + func (m *SignRate) XXX_DiscardUnknown() + func (m *SignRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SignRate) XXX_Merge(src proto.Message) + func (m *SignRate) XXX_Size() int + func (m *SignRate) XXX_Unmarshal(b []byte) error + func (this *SignRate) Equal(that interface{}) bool + func (this *SignRate) GoString() string + func (this *SignRate) String() string + type StoragePruningManager interface + CancelPrune func(rootHash []byte, identifier TriePruningIdentifier, tsm common.StorageManager) + Close func() error + IsInterfaceNil func() bool + MarkForEviction func([]byte, []byte, common.ModifiedHashes, common.ModifiedHashes) error + PruneTrie func(rootHash []byte, identifier TriePruningIdentifier, tsm common.StorageManager, ...) + type TrackableDataTrie struct + func NewTrackableDataTrie(identifier []byte, tr common.Trie) *TrackableDataTrie + func (tdaw *TrackableDataTrie) ClearDataCaches() + func (tdaw *TrackableDataTrie) DataTrie() common.Trie + func (tdaw *TrackableDataTrie) DirtyData() map[string][]byte + func (tdaw *TrackableDataTrie) IsInterfaceNil() bool + func (tdaw *TrackableDataTrie) RetrieveValue(key []byte) ([]byte, error) + func (tdaw *TrackableDataTrie) SaveKeyValue(key []byte, value []byte) error + func (tdaw *TrackableDataTrie) SetDataTrie(tr common.Trie) + type TriePruningIdentifier byte + const NewRoot + const OldRoot + type Updater interface + Get func(key []byte) ([]byte, error) + IsInterfaceNil func() bool + Update func(key, value []byte) error + type UserAccountData struct + Address []byte + Balance *math_big.Int + CodeHash []byte + CodeMetadata []byte + DeveloperReward *math_big.Int + Nonce uint64 + OwnerAddress []byte + RootHash []byte + UserName []byte + func (*UserAccountData) Descriptor() ([]byte, []int) + func (*UserAccountData) ProtoMessage() + func (m *UserAccountData) GetAddress() []byte + func (m *UserAccountData) GetBalance() *math_big.Int + func (m *UserAccountData) GetCodeHash() []byte + func (m *UserAccountData) GetCodeMetadata() []byte + func (m *UserAccountData) GetDeveloperReward() *math_big.Int + func (m *UserAccountData) GetNonce() uint64 + func (m *UserAccountData) GetOwnerAddress() []byte + func (m *UserAccountData) GetRootHash() []byte + func (m *UserAccountData) GetUserName() []byte + func (m *UserAccountData) Marshal() (dAtA []byte, err error) + func (m *UserAccountData) MarshalTo(dAtA []byte) (int, error) + func (m *UserAccountData) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *UserAccountData) Reset() + func (m *UserAccountData) Size() (n int) + func (m *UserAccountData) Unmarshal(dAtA []byte) error + func (m *UserAccountData) XXX_DiscardUnknown() + func (m *UserAccountData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *UserAccountData) XXX_Merge(src proto.Message) + func (m *UserAccountData) XXX_Size() int + func (m *UserAccountData) XXX_Unmarshal(b []byte) error + func (this *UserAccountData) Equal(that interface{}) bool + func (this *UserAccountData) GoString() string + func (this *UserAccountData) String() string + type UserAccountHandler interface + AddToBalance func(value *big.Int) error + AddToDeveloperReward func(*big.Int) + ChangeOwnerAddress func([]byte, []byte) error + ClaimDeveloperRewards func([]byte) (*big.Int, error) + DataTrie func() common.Trie + DataTrieTracker func() DataTrieTracker + GetBalance func() *big.Int + GetCodeHash func() []byte + GetCodeMetadata func() []byte + GetDeveloperReward func() *big.Int + GetOwnerAddress func() []byte + GetRootHash func() []byte + GetUserName func() []byte + RetrieveValueFromDataTrieTracker func(key []byte) ([]byte, error) + SetCode func(code []byte) + SetCodeHash func([]byte) + SetCodeMetadata func(codeMetadata []byte) + SetDataTrie func(trie common.Trie) + SetOwnerAddress func([]byte) + SetRootHash func([]byte) + SetUserName func(userName []byte) + SubFromBalance func(value *big.Int) error + type ValidatorApiResponse struct + NumLeaderFailure uint32 + NumLeaderSuccess uint32 + NumValidatorFailure uint32 + NumValidatorIgnoredSignatures uint32 + NumValidatorSuccess uint32 + Rating float32 + RatingModifier float32 + ShardId uint32 + TempRating float32 + TotalNumLeaderFailure uint32 + TotalNumLeaderSuccess uint32 + TotalNumValidatorFailure uint32 + TotalNumValidatorIgnoredSignatures uint32 + TotalNumValidatorSuccess uint32 + ValidatorStatus string + func (*ValidatorApiResponse) Descriptor() ([]byte, []int) + func (*ValidatorApiResponse) ProtoMessage() + func (m *ValidatorApiResponse) GetNumLeaderFailure() uint32 + func (m *ValidatorApiResponse) GetNumLeaderSuccess() uint32 + func (m *ValidatorApiResponse) GetNumValidatorFailure() uint32 + func (m *ValidatorApiResponse) GetNumValidatorIgnoredSignatures() uint32 + func (m *ValidatorApiResponse) GetNumValidatorSuccess() uint32 + func (m *ValidatorApiResponse) GetRating() float32 + func (m *ValidatorApiResponse) GetRatingModifier() float32 + func (m *ValidatorApiResponse) GetShardId() uint32 + func (m *ValidatorApiResponse) GetTempRating() float32 + func (m *ValidatorApiResponse) GetTotalNumLeaderFailure() uint32 + func (m *ValidatorApiResponse) GetTotalNumLeaderSuccess() uint32 + func (m *ValidatorApiResponse) GetTotalNumValidatorFailure() uint32 + func (m *ValidatorApiResponse) GetTotalNumValidatorIgnoredSignatures() uint32 + func (m *ValidatorApiResponse) GetTotalNumValidatorSuccess() uint32 + func (m *ValidatorApiResponse) GetValidatorStatus() string + func (m *ValidatorApiResponse) Marshal() (dAtA []byte, err error) + func (m *ValidatorApiResponse) MarshalTo(dAtA []byte) (int, error) + func (m *ValidatorApiResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ValidatorApiResponse) Reset() + func (m *ValidatorApiResponse) Size() (n int) + func (m *ValidatorApiResponse) Unmarshal(dAtA []byte) error + func (m *ValidatorApiResponse) XXX_DiscardUnknown() + func (m *ValidatorApiResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ValidatorApiResponse) XXX_Merge(src proto.Message) + func (m *ValidatorApiResponse) XXX_Size() int + func (m *ValidatorApiResponse) XXX_Unmarshal(b []byte) error + func (this *ValidatorApiResponse) Equal(that interface{}) bool + func (this *ValidatorApiResponse) GoString() string + func (this *ValidatorApiResponse) String() string + type ValidatorInfo struct + AccumulatedFees *math_big.Int + Index uint32 + LeaderFailure uint32 + LeaderSuccess uint32 + List string + NumSelectedInSuccessBlocks uint32 + PublicKey []byte + Rating uint32 + RatingModifier float32 + RewardAddress []byte + ShardId uint32 + TempRating uint32 + TotalLeaderFailure uint32 + TotalLeaderSuccess uint32 + TotalValidatorFailure uint32 + TotalValidatorIgnoredSignatures uint32 + TotalValidatorSuccess uint32 + ValidatorFailure uint32 + ValidatorIgnoredSignatures uint32 + ValidatorSuccess uint32 + func (*ValidatorInfo) Descriptor() ([]byte, []int) + func (*ValidatorInfo) ProtoMessage() + func (m *ValidatorInfo) GetAccumulatedFees() *math_big.Int + func (m *ValidatorInfo) GetIndex() uint32 + func (m *ValidatorInfo) GetLeaderFailure() uint32 + func (m *ValidatorInfo) GetLeaderSuccess() uint32 + func (m *ValidatorInfo) GetList() string + func (m *ValidatorInfo) GetNumSelectedInSuccessBlocks() uint32 + func (m *ValidatorInfo) GetPublicKey() []byte + func (m *ValidatorInfo) GetRating() uint32 + func (m *ValidatorInfo) GetRatingModifier() float32 + func (m *ValidatorInfo) GetRewardAddress() []byte + func (m *ValidatorInfo) GetShardId() uint32 + func (m *ValidatorInfo) GetTempRating() uint32 + func (m *ValidatorInfo) GetTotalLeaderFailure() uint32 + func (m *ValidatorInfo) GetTotalLeaderSuccess() uint32 + func (m *ValidatorInfo) GetTotalValidatorFailure() uint32 + func (m *ValidatorInfo) GetTotalValidatorIgnoredSignatures() uint32 + func (m *ValidatorInfo) GetTotalValidatorSuccess() uint32 + func (m *ValidatorInfo) GetValidatorFailure() uint32 + func (m *ValidatorInfo) GetValidatorIgnoredSignatures() uint32 + func (m *ValidatorInfo) GetValidatorSuccess() uint32 + func (m *ValidatorInfo) Marshal() (dAtA []byte, err error) + func (m *ValidatorInfo) MarshalTo(dAtA []byte) (int, error) + func (m *ValidatorInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ValidatorInfo) Reset() + func (m *ValidatorInfo) Size() (n int) + func (m *ValidatorInfo) Unmarshal(dAtA []byte) error + func (m *ValidatorInfo) XXX_DiscardUnknown() + func (m *ValidatorInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ValidatorInfo) XXX_Merge(src proto.Message) + func (m *ValidatorInfo) XXX_Size() int + func (m *ValidatorInfo) XXX_Unmarshal(b []byte) error + func (this *ValidatorInfo) Equal(that interface{}) bool + func (this *ValidatorInfo) GoString() string + func (this *ValidatorInfo) String() string + func (vi *ValidatorInfo) IsInterfaceNil() bool