Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPort = errors.New("invalid server port, out of range")
View Source
var ErrInvalidReceiveMinimum = errors.New("invalid receive_minimum, must be between 1 and 133248290000000000000000000000000000000 (max supply)")
View Source
var ErrInvalidRpcUrl = errors.New("invalid node_rpc_url")
View Source
var ErrInvalidWSUrl = errors.New("invalid node_ws_url")
View Source
var ErrNoRepsConfigured = errors.New("no representatives configured")
Functions ¶
This section is empty.
Types ¶
type PippinConfig ¶
type PippinConfig struct { Server ServerConfig `yaml:"server"` Wallet WalletConfig `yaml:"wallet"` }
func (*PippinConfig) GetRandomRep ¶
func (c *PippinConfig) GetRandomRep() (string, error)
func (*PippinConfig) SetDefaults ¶
func (c *PippinConfig) SetDefaults()
Implements the interface from creasty package
func (*PippinConfig) Validate ¶
func (c *PippinConfig) Validate() error
type ServerConfig ¶
type ServerConfig struct { Host string `yaml:"host" default:"127.0.0.1"` Port int `yaml:"port" default:"11338"` NodeRpcUrl string `yaml:"node_rpc_url"` NodeWsUrl string `yaml:"node_ws_url"` }
! The old server also had: log_file, log_to_stdout,
type WalletConfig ¶
type WalletConfig struct { Banano bool `yaml:"banano" default:"false"` PreconfiguredRepresentativesBanano []string `` /* 262-byte string literal not displayed */ PreconfiguredRepresentativesNano []string `` /* 333-byte string literal not displayed */ WorkPeers []string `yaml:"work_peers"` NodeWorkGenerate bool `yaml:"node_work_generate" default:"false"` ReceiveMinimum string `yaml:"receive_minimum"` AutoReceiveOnSend *bool `yaml:"auto_receive_on_send" default:"true"` }
! The old server also had: max_work_processes, max_sign_threads
Click to show internal directories.
Click to hide internal directories.