config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: BSD-3-Clause, MIT Imports: 8 Imported by: 0

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 IsTrustedPeer(peerID string) bool

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"`
	DumpShares      bool          `yaml:"-"`
}
var Active Config

type VardiffConfig

type VardiffConfig struct {
	TargetTime   float64 `yaml:"targetTime"`
	RetargetTime float64 `yaml:"retargetTime"`
	Variance     float64 `yaml:"variance"`
	MinDiff      float64 `yaml:"minDiff"`
}

Jump to

Keyboard shortcuts

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