Documentation ¶
Index ¶
- func Controller(logger zerolog.Logger) *chainController
- type BeaconCtl
- type Config
- type DBCtl
- type IMetric
- type IMetricManager
- type Index
- type InstanceConfig
- type MetricsConfig
- type ShardConfig
- type ShardCtl
- func (shardCtl *ShardCtl) ChainCtx() chain.IChainCtx
- func (shardCtl *ShardCtl) ChainProvider() *cprovider.ChainProvider
- func (shardCtl *ShardCtl) Init(beaconBlockGen shard.BeaconBlockProvider) error
- func (shardCtl *ShardCtl) Run(ctx context.Context)
- func (shardCtl *ShardCtl) Stats() map[string]float64
- type ShardInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Controller ¶
Types ¶
type BeaconCtl ¶
type BeaconCtl struct {
// contains filtered or unexported fields
}
func NewBeaconCtl ¶
func (*BeaconCtl) ChainProvider ¶
func (beaconCtl *BeaconCtl) ChainProvider() *cprovider.ChainProvider
type Config ¶
type Config struct { ConfigFile string `toml:"-" yaml:"-" short:"C" long:"configfile" description:"Path to configuration file"` ShowVersion bool `toml:"-" yaml:"-" short:"V" long:"version" description:"Display version information and exit"` Node InstanceConfig `toml:"node" yaml:"node"` LogConfig corelog.Config `toml:"log_config" yaml:"log_config" ` Metrics MetricsConfig `toml:"metrics" yaml:"metrics"` BTCD btcd.Configuration `toml:"btcd" yaml:"btcd"` DataDir string `toml:"data_dir" yaml:"data_dir" short:"b" long:"datadir" description:"Directory to store data"` LogDir string `toml:"log_dir" yaml:"log_dir" long:"logdir" description:"Directory to log output."` CPUProfile string `toml:"cpu_profile" yaml:"cpu_profile" long:"cpuprofile" description:"Write CPU profile to the specified file"` DebugLevel string `` /* 313-byte string literal not displayed */ Profile string `` /* 138-byte string literal not displayed */ DropAddrIndex bool `` /* 170-byte string literal not displayed */ DropCfIndex bool `` /* 180-byte string literal not displayed */ DropTxIndex bool `` /* 161-byte string literal not displayed */ TorIsolation bool `` /* 156-byte string literal not displayed */ Whitelists []string `` /* 143-byte string literal not displayed */ }
type IMetric ¶
type IMetric interface {
Read()
}
IMetric metric reader
func MetricsOfChain ¶ added in v0.3.13
type IMetricManager ¶
IMetricManager metric manager
func MetricsManager ¶ added in v0.3.13
func MetricsManager(ctx context.Context, interval time.Duration) IMetricManager
MetricsManager creates metric instance
type Index ¶
type InstanceConfig ¶ added in v0.3.13
type InstanceConfig struct { BeaconChain cprovider.ChainRuntimeConfig `yaml:"beacon_chain" toml:"beacon_chain"` RPC rpc.Config `yaml:"rpc" toml:"rpc"` P2P p2p.Config `yaml:"p2p" toml:"p2p"` Shards ShardConfig `yaml:"shards" toml:"shards"` DbType string `yaml:"db_type" toml:"db_type" description:"Database backend to use for the Block Chain"` Net string `yaml:"net" toml:"net"` EnableCPUMiner bool `yaml:"enable_cpu_miner" toml:"enable_cpu_miner"` }
func (*InstanceConfig) ChainParams ¶ added in v0.3.13
func (cfg *InstanceConfig) ChainParams() *chaincfg.Params
type MetricsConfig ¶
type ShardConfig ¶
type ShardConfig struct { Enable bool `yaml:"enable" toml:"enable"` Autorun bool `yaml:"autorun" toml:"autorun"` ChainParams map[uint32]cprovider.ChainRuntimeConfig `yaml:"chain_params" toml:"chain_params"` }
type ShardCtl ¶
type ShardCtl struct {
// contains filtered or unexported fields
}
func NewShardCtl ¶
func (*ShardCtl) ChainProvider ¶
func (shardCtl *ShardCtl) ChainProvider() *cprovider.ChainProvider
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package blockchain implements bitcoin block handling and chain selection rules.
|
Package blockchain implements bitcoin block handling and chain selection rules. |
indexers
Package indexers implements optional block chain indexes.
|
Package indexers implements optional block chain indexes. |
Package chaindata: Functions related to Block Serial ID feature.
|
Package chaindata: Functions related to Block Serial ID feature. |
Package mempool provides a policy-enforced pool of unmined bitcoin transactions.
|
Package mempool provides a policy-enforced pool of unmined bitcoin transactions. |
Click to show internal directories.
Click to hide internal directories.