Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "v1.1.0"
Version is the release version. Release builds set it with -ldflags "-X github.com/CADMonkey21/p2pool-go-VTC/config.Version=<tag>".
Functions ¶
func IsTrustedPeer ¶
func LoadConfig ¶
func LoadConfig()
Types ¶
type Config ¶
type Config struct {
Network string `yaml:"network"`
Peers []string `yaml:"peers"`
RPCUser string `yaml:"rpcUser"`
RPCPass string `yaml:"rpcPass"`
Testnet bool `yaml:"testnet"`
RPCHost string `yaml:"rpcHost"`
RPCPort int `yaml:"rpcPort"`
PoolAddress string `yaml:"poolAddress"`
P2PPort int `yaml:"p2pPort"`
StratumPort int `yaml:"stratumPort"`
Fee float64 `yaml:"fee"`
PPLNSWindow int `yaml:"pplns_window"`
Vardiff VardiffConfig `yaml:"vardiff"`
VerthashDatFile string `yaml:"verthash_dat_file"`
LogLevel string `yaml:"loglevel"`
SoloMode bool `yaml:"solomode"`
P2PSyncTimeout int `yaml:"p2pSyncTimeout"`
ForceBlockFind bool `yaml:"forceBlockFind"`
DataDir string `yaml:"datadir"`
LightMode bool `yaml:"light"`
StratumBind string `yaml:"stratumBind"`
RPCCookieFile string `yaml:"rpcCookieFile"`
ParentPID int `yaml:"parentPid"`
ShutdownToken string `yaml:"shutdownToken"`
TrustedPeers []string `yaml:"trustedPeers"`
P2PBind string `yaml:"p2pBind"`
DisableUPnP bool `yaml:"disableUpnp"`
}
var Active Config
Click to show internal directories.
Click to hide internal directories.