package
1.2.23
Repository: https://github.com/multiversx/mx-chain-core-go.git
Documentation: pkg.go.dev

# Packages

go:generate protoc -I=.
No description provided by the author
go:generate protoc -I=.
go:generate protoc -I=.
No description provided by the author
go:generate protoc -I=proto -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=.
go:generate protoc -I=.
No description provided by the author
go:generate protoc -I=.
No description provided by the author
No description provided by the author
go:generate protoc -I=.
go:generate protoc -I=.
go:generate protoc -I=.
go:generate protoc -I=.
go:generate protoc -I=.
No description provided by the author
go:generate protoc -I=.
No description provided by the author

# Functions

TrimHeaderHandlerSlice creates a copy of the provided slice without the excess capacity.

# Variables

ErrInvalidCacheSize is raised when the given size for the cache is invalid.
ErrInvalidHeaderType signals an invalid header pointer was provided.
ErrInvalidTypeAssertion signals an invalid type assertion.
ErrInvalidUserNameLength signals that provided user name length is invalid.
ErrInvalidValue signals that an invalid value has been provided such as NaN to an integer field.
ErrLeafSizeTooBig signals that the value size of the leaf is too big.
ErrMiniBlockEmpty signals that mini block is empty.
ErrNegativeValue signals that a negative value has been detected and it is not allowed.
ErrNilBlockBody signals that block body is nil.
ErrNilCacher signals that a nil cache has been provided.
ErrNilDatabase is raised when a database operation is called, but no database is provided.
ErrNilEmptyBlockCreator is raised when attempting to work with a nil empty block creator.
ErrNilMarshalizer is raised when the NewTrie() function is called, but a marshalizer isn't provided.
ErrNilPointerDereference signals that a nil pointer dereference was detected and avoided.
ErrNilPointerReceiver signals that a nil pointer receiver was used.
ErrNilRcvAddr signals that an operation has been attempted to or with a nil receiver address.
ErrNilReservedField signals that a nil reserved field was provided.
ErrNilScheduledRootHash signals that a nil scheduled root hash was used.
ErrNilShardCoordinator signals that nil shard coordinator was provided.
ErrNilSignature signals that a operation has been attempted with a nil signature.
ErrNilSndAddr signals that an operation has been attempted to or with a nil sender address.
ErrNilThrottler signals that nil throttler has been provided.
ErrNilTxHash signals that an operation has been attempted with a nil hash.
ErrNilValue signals the value is nil.
ErrScheduledRootHashNotSupported signals that a scheduled root hash is not supported.
ErrTimeIsOut signals that time is out.
ErrWrongTransactionsTypeSize signals that size of transactions type buffer from mini block reserved field is wrong.

# Structs

BigIntCaster handles big int operations.
ConsensusRewardData holds the required data for rewarding validators in a specific round and epoch.
KeyValuePair is a tuple of (key, value).
LogData holds the data needed for indexing logs and events.
MiniBlockInfo holds information about a cross miniblock referenced in a received block.

# Interfaces

BodyHandler interface for a block body.
ChainHandler is the interface defining the functionality a blockchain should implement.
EconomicsHandler defines setters and getters for Economics.
Encoder represents a byte slice to string encoder.
EpochStartHandler defines setters and getters for EpochStart.
EpochStartShardDataHandler defines setters and getters for EpochStartShardData.
EventHandler defines the type for an event resulted from a smart contract call contained in a log.
GoRoutineThrottler can monitor the number of the currently running go routines.
GuardedTransactionHandler defines functionality for the guarded transactions.
Hasher provides hashing services.
HeaderHandler defines getters and setters for header data holder.
LogHandler defines the type for a log resulted from executing a transaction or smart contract call.
Marshaller is able to encode an object to its byte slice representation.
MetaHeaderHandler defines getters and setters for the meta block header.
MiniBlockHeaderHandler defines setters and getters for miniBlock headers.
PeerChangeHandler defines setters and getters for PeerChange.
ShardDataHandler defines setters and getters for ShardDataHandler.
ShardHeaderHandler defines getters and setters for the shard block header.
ShardValidatorInfoHandler is used to store multiple validatorInfo properties required in shards.
SyncStatisticsHandler defines the methods for a component able to store the sync statistics for a trie.
TransactionHandler defines the type of executable transaction.
TransactionWithFeeHandler represents a transaction structure that has economics variables defined.
TriggerRegistryHandler defines getters and setters for the trigger registry.
No description provided by the author
UserAccountHandler models a user account.
ValidatorInfoHandler is used to store multiple validatorInfo properties.