Documentation ¶
Overview ¶
Copyright (c) 2020 The JaxNetwork developers Use of this source code is governed by an ISC license that can be found in the LICENSE file.
Copyright (c) 2020 The JaxNetwork developers Use of this source code is governed by an ISC license that can be found in the LICENSE file.
Copyright (c) 2020 The JaxNetwork developers Use of this source code is governed by an ISC license that can be found in the LICENSE file.
Copyright (c) 2020 The JaxNetwork developers Use of this source code is governed by an ISC license that can be found in the LICENSE file.
Copyright (c) 2020 The JaxNetwork developers Use of this source code is governed by an ISC license that can be found in the LICENSE file.
Copyright (c) 2020 The JaxNetwork developers Use of this source code is governed by an ISC license that can be found in the LICENSE file.
Index ¶
- func Controller(logger zerolog.Logger) *chainController
- type BeaconCtl
- type Config
- type DBCtl
- type IMetric
- type IMetricManager
- type Index
- type MetricsConfig
- type NodeConfig
- type ShardConfig
- type ShardCtl
- func (shardCtl *ShardCtl) ChainCtx() chain.IChainCtx
- func (shardCtl *ShardCtl) ChainProvider() *cprovider.ChainProvider
- func (shardCtl *ShardCtl) Init(beaconBlockGen shard.BeaconBlockProvider, firstRun bool) 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 `yaml:"-" short:"C" long:"configfile" description:"Path to configuration file"` ShowVersion bool `yaml:"-" short:"V" long:"version" description:"Display version information and exit"` Node NodeConfig `yaml:"node"` LogConfig corelog.Config `yaml:"log_config" ` Metrics MetricsConfig `yaml:"metrics"` DataDir string `yaml:"data_dir" short:"b" long:"datadir" description:"Directory to store data"` LogDir string `yaml:"log_dir" long:"logdir" description:"Directory to log output."` CPUProfile string `yaml:"cpu_profile" long:"cpuprofile" description:"Write CPU profile to the specified file"` DebugLevel string `` /* 294-byte string literal not displayed */ Profile string `yaml:"profile" long:"profile" description:"Enable HTTP profiling on given port -- NOTE port must be between 1024 and 65536"` DropAddrIndex bool `` /* 147-byte string literal not displayed */ DropCfIndex bool `` /* 159-byte string literal not displayed */ DropTxIndex bool `` /* 140-byte string literal not displayed */ TorIsolation bool `` /* 135-byte string literal not displayed */ Whitelists []string `yaml:"whitelists" long:"whitelist" description:"Add an IP network or IP that will not be banned. (eg. 192.168.1.0/24 or ::1)"` }
type IMetricManager ¶
IMetricManager metric manager
type Index ¶
type MetricsConfig ¶
type NodeConfig ¶
type NodeConfig struct { BeaconChain cprovider.ChainRuntimeConfig `yaml:"beacon_chain"` RPC rpc.Config `yaml:"rpc"` P2P p2p.Config `yaml:"p2p"` Shards ShardConfig `yaml:"shards"` DbType string `yaml:"db_type" long:"dbtype" description:"Database backend to use for the Block Chain"` Net string `yaml:"net"` MiningAddresses []string `yaml:"mining_addresses"` EnableCPUMiner bool `yaml:"enable_cpu_miner"` }
func (*NodeConfig) ChainParams ¶
func (cfg *NodeConfig) ChainParams() *chaincfg.Params
type ShardConfig ¶
type ShardConfig struct { Enable bool `yaml:"enable"` Autorun bool `yaml:"autorun"` ChainParams map[uint32]cprovider.ChainRuntimeConfig `yaml:"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 |
---|---|
indexers
Package indexers implements optional block chain indexes.
|
Package indexers implements optional block chain indexes. |
Package mempool provides a policy-enforced pool of unmined bitcoin transactions.
|
Package mempool provides a policy-enforced pool of unmined bitcoin transactions. |