Versions in this module Expand all Collapse all v1 v1.999.0 Nov 17, 2022 Changes in this version + var ErrCorruptBootstrapFromStorageDb = errors.New("corrupt bootstrap storage database") + var ErrGenesisTimeMissmatch = errors.New("genesis time missmatch") + var ErrHeaderNotFound = errors.New("header is not found") + var ErrHigherNonceInBlock = errors.New("higher nonce in block") + var ErrHigherRoundInBlock = errors.New("higher round in block") + var ErrLowerNonceInBlock = errors.New("lower nonce in block") + var ErrLowerRoundInBlock = errors.New("lower round in block") + var ErrNilHash = errors.New("nil hash") + var ErrNilHeader = errors.New("nil header") + var ErrRollBackBehindFinalHeader = errors.New("roll back behind final header is not permitted") + var ErrRollBackBehindForkNonce = errors.New("roll back behind fork nonce is not permitted") + func NewMetaForkDetector(roundHandler consensus.RoundHandler, blackListHandler process.TimeCacher, ...) (*metaForkDetector, error) + func NewShardForkDetector(roundHandler consensus.RoundHandler, blackListHandler process.TimeCacher, ...) (*shardForkDetector, error) + type ArgBaseBootstrapper struct + Accounts state.AccountsAdapter + AccountsDBSyncer process.AccountsDBSyncer + AppStatusHandler core.AppStatusHandler + BlackListHandler process.TimeCacher + BlockProcessor process.BlockProcessor + BootStorer process.BootStorer + ChainHandler data.ChainHandler + CurrentEpochProvider process.CurrentNetworkEpochProviderHandler + EpochHandler dataRetriever.EpochHandler + ForkDetector process.ForkDetector + Hasher hashing.Hasher + HistoryRepo dblookupext.HistoryRepository + IsInImportMode bool + Marshalizer marshal.Marshalizer + MiniblocksProvider process.MiniBlockProvider + NetworkWatcher process.NetworkConnectionWatcher + OutportHandler outport.OutportHandler + PoolsHolder dataRetriever.PoolsHolder + ProcessWaitTime time.Duration + RequestHandler process.RequestHandler + RoundHandler consensus.RoundHandler + ScheduledTxsExecutionHandler process.ScheduledTxsExecutionHandler + ShardCoordinator sharding.Coordinator + StorageBootstrapper process.BootstrapperFromStorage + Store dataRetriever.StorageService + Uint64Converter typeConverters.Uint64ByteSliceConverter + WaitTime time.Duration + type ArgMetaBootstrapper struct + EpochBootstrapper process.EpochBootstrapper + ValidatorAccountsDB state.AccountsAdapter + ValidatorStatisticsDBSyncer process.AccountsDBSyncer + type ArgShardBootstrapper struct + type ErrSignedBlock struct + CurrentNonce uint64 + func (err ErrSignedBlock) Error() string + type MetaBootstrap struct + func NewMetaBootstrap(arguments ArgMetaBootstrapper) (*MetaBootstrap, error) + func (boot *MetaBootstrap) Close() error + func (boot *MetaBootstrap) StartSyncingBlocks() + func (boot *MetaBootstrap) SyncBlock(ctx context.Context) error + func (boot MetaBootstrap) AddSyncStateListener(syncStateListener func(isSyncing bool)) + func (boot MetaBootstrap) GetNodeState() common.NodeState + func (boot MetaBootstrap) IsInterfaceNil() bool + type ShardBootstrap struct + func NewShardBootstrap(arguments ArgShardBootstrapper) (*ShardBootstrap, error) + func (boot *ShardBootstrap) Close() error + func (boot *ShardBootstrap) StartSyncingBlocks() + func (boot *ShardBootstrap) SyncBlock(ctx context.Context) error + func (boot ShardBootstrap) AddSyncStateListener(syncStateListener func(isSyncing bool)) + func (boot ShardBootstrap) GetNodeState() common.NodeState + func (boot ShardBootstrap) IsInterfaceNil() bool + type TestMetaBootstrap struct + func (boot TestMetaBootstrap) AddSyncStateListener(syncStateListener func(isSyncing bool)) + func (boot TestMetaBootstrap) GetNodeState() common.NodeState + func (boot TestMetaBootstrap) IsInterfaceNil() bool + func (tmb *TestMetaBootstrap) RollBack(revertUsingForkNonce bool) error + func (tmb *TestMetaBootstrap) SetProbableHighestNonce(nonce uint64) + type TestShardBootstrap struct + func (boot TestShardBootstrap) AddSyncStateListener(syncStateListener func(isSyncing bool)) + func (boot TestShardBootstrap) GetNodeState() common.NodeState + func (boot TestShardBootstrap) IsInterfaceNil() bool + func (tsb *TestShardBootstrap) RollBack(revertUsingForkNonce bool) error + func (tsb *TestShardBootstrap) SetProbableHighestNonce(nonce uint64)