package
0.5.0
Repository: https://github.com/frankonly/iotex-core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

BoltDBDaoOption sets blockchain's dao with BoltDB from config.Chain.ChainDBPath.
ClockOption overrides the default clock.
DefaultStateFactoryOption sets blockchain's sf from config.
EnableExperimentalActions enables the blockchain to process experimental actions.
InMemDaoOption sets blockchain's dao with MemKVStore.
InMemStateFactoryOption sets blockchain's factory.Factory as in memory sf.
NewBlockchain creates a new blockchain and DB instance.
NewIndexBuilder instantiates an index builder.
PickAction returns picked action list.
PrecreatedDaoOption sets blockchain's dao.
PrecreatedStateFactoryOption sets blockchain's state.Factory to sf.
RegistryOption sets the blockchain with the protocol registry.

# Variables

ErrActionNonce is the error when the nonce of the action is wrong.
ErrBalance indicates the error of balance.
ErrGasHigherThanLimit indicates the error of gas value.
ErrInsufficientGas indicates the error of insufficient gas value for data storage.
ErrInvalidBlock is the error returned when the block is not valid.
ErrInvalidTipHeight is the error returned when the block height is not valid.

# Structs

IndexBuilder defines the index builder.

# Interfaces

Blockchain represents the blockchain data structure and hosts the APIs to access it.
BlockCreationSubscriber is an interface which will get notified when a block is created.
Validator is the interface of validator.

# Type aliases

Option sets blockchain construction parameter.