Documentation
¶
Index ¶
- type AddressToBLSKey
- type FindCommitteeByID
- type Registry
- func (r *Registry) GetAddressToBLSKey() AddressToBLSKey
- func (r *Registry) GetBeaconchain() core.BlockChain
- func (r *Registry) GetBlockchain() core.BlockChain
- func (r *Registry) GetCxPool() *core.CxPool
- func (r *Registry) GetEngine() engine.Engine
- func (r *Registry) GetNodeConfig() *nodeconfig.ConfigType
- func (r *Registry) GetShardChainCollection() *shardchain.CollectionImpl
- func (r *Registry) GetTxPool() *core.TxPool
- func (r *Registry) GetWebHooks() *webhooks.Hooks
- func (r *Registry) GetWorker() *worker.Worker
- func (r *Registry) IsBackup() bool
- func (r *Registry) SetAddressToBLSKey(a AddressToBLSKey) *Registry
- func (r *Registry) SetBeaconchain(bc core.BlockChain) *Registry
- func (r *Registry) SetBlockchain(bc core.BlockChain) *Registry
- func (r *Registry) SetCxPool(cxPool *core.CxPool) *Registry
- func (r *Registry) SetEngine(engine engine.Engine) *Registry
- func (r *Registry) SetIsBackup(isBackup bool) *Registry
- func (r *Registry) SetNodeConfig(n *nodeconfig.ConfigType) *Registry
- func (r *Registry) SetShardChainCollection(collection *shardchain.CollectionImpl) *Registry
- func (r *Registry) SetTxPool(txPool *core.TxPool) *Registry
- func (r *Registry) SetWebHooks(hooks *webhooks.Hooks) *Registry
- func (r *Registry) SetWorker(w *worker.Worker) *Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressToBLSKey ¶ added in v1.10.3
type AddressToBLSKey interface { GetAddressForBLSKey(publicKeys multibls.PublicKeys, shardState FindCommitteeByID, blskey *bls_core.PublicKey, epoch *big.Int) common.Address GetAddresses(publicKeys multibls.PublicKeys, shardState FindCommitteeByID, epoch *big.Int) map[string]common.Address }
type FindCommitteeByID ¶ added in v1.10.3
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry consolidates services at one place.
func (*Registry) GetAddressToBLSKey ¶ added in v1.10.3
func (r *Registry) GetAddressToBLSKey() AddressToBLSKey
func (*Registry) GetBeaconchain ¶
func (r *Registry) GetBeaconchain() core.BlockChain
GetBeaconchain gets the beaconchain from registry.
func (*Registry) GetBlockchain ¶
func (r *Registry) GetBlockchain() core.BlockChain
GetBlockchain gets the blockchain from registry.
func (*Registry) GetNodeConfig ¶ added in v1.10.3
func (r *Registry) GetNodeConfig() *nodeconfig.ConfigType
func (*Registry) GetShardChainCollection ¶
func (r *Registry) GetShardChainCollection() *shardchain.CollectionImpl
GetShardChainCollection gets the shard chain collection from registry.
func (*Registry) GetWebHooks ¶
GetWebHooks gets the webhooks from registry.
func (*Registry) SetAddressToBLSKey ¶ added in v1.10.3
func (r *Registry) SetAddressToBLSKey(a AddressToBLSKey) *Registry
func (*Registry) SetBeaconchain ¶
func (r *Registry) SetBeaconchain(bc core.BlockChain) *Registry
SetBeaconchain sets the beaconchain to registry.
func (*Registry) SetBlockchain ¶
func (r *Registry) SetBlockchain(bc core.BlockChain) *Registry
SetBlockchain sets the blockchain to registry.
func (*Registry) SetIsBackup ¶
func (*Registry) SetNodeConfig ¶ added in v1.10.3
func (r *Registry) SetNodeConfig(n *nodeconfig.ConfigType) *Registry
func (*Registry) SetShardChainCollection ¶
func (r *Registry) SetShardChainCollection(collection *shardchain.CollectionImpl) *Registry
SetShardChainCollection sets the shard chain collection to registry.
func (*Registry) SetWebHooks ¶
SetWebHooks sets the webhooks to registry.
Click to show internal directories.
Click to hide internal directories.