cmd

package
v0.0.0-...-dae75d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2021 License: MIT Imports: 24 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func Run

func Run(cmd *cobra.Command, args []string)

func SetupRunFlags

func SetupRunFlags(cmd *cobra.Command)

Types

type Config

type Config struct {
	// Core
	Params               *lib.BitCloutParams
	ProtocolPort         uint16
	DataDirectory        string
	MempoolDumpDirectory string
	TXIndex              bool
	Regtest              bool

	// Peers
	ConnectIPs          []string
	AddIPs              []string
	AddSeeds            []string
	TargetOutboundPeers uint32
	StallTimeoutSeconds uint64
	BitcoinConnectPeer  string

	// Peer Restrictions
	PrivateMode          bool
	ReadOnlyMode         bool
	DisableNetworking    bool
	IgnoreInboundInvs    bool
	IgnoreUnminedBitcoin bool
	MaxInboundPeers      uint32
	OneInboundPerIp      bool

	// Mining
	MinerPublicKeys  []string
	NumMiningThreads uint64

	// Fees
	RateLimitFeerate uint64
	MinFeerate       uint64

	// BlockProducer
	MaxBlockTemplatesCache          uint64
	MinBlockUpdateInterval          uint64
	BlockCypherAPIKey               string
	BlockProducerSeed               string
	TrustedBlockProducerPublicKeys  []string
	TrustedBlockProducerStartHeight uint64

	// Logging
	LogDirectory          string
	GlogV                 uint64
	GlogVmodule           string
	LogDBSummarySnapshots bool
	DatadogProfiler       bool
}

func LoadConfig

func LoadConfig() *Config

func (*Config) Print

func (config *Config) Print()

type Node

type Node struct {
	Server *lib.Server

	TXIndex *lib.TXIndex
	Params  *lib.BitCloutParams
	Config  *Config
	// contains filtered or unexported fields
}

func NewNode

func NewNode(config *Config) *Node

func (*Node) Start

func (node *Node) Start()

func (*Node) Stop

func (node *Node) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL