2015-07-05 09:49:07 +00:00
|
|
|
package pool
|
|
|
|
|
|
|
|
type Config struct {
|
2016-08-07 02:05:45 +00:00
|
|
|
Address string `json:"address"`
|
|
|
|
BypassAddressValidation bool `json:"bypassAddressValidation"`
|
2016-12-05 16:28:58 +00:00
|
|
|
BypassShareValidation bool `json:"bypassShareValidation"`
|
2016-08-07 02:05:45 +00:00
|
|
|
Stratum Stratum `json:"stratum"`
|
|
|
|
Daemon Daemon `json:"daemon"`
|
2015-07-05 09:49:07 +00:00
|
|
|
|
2016-08-07 03:05:23 +00:00
|
|
|
Threads int `json:"threads"`
|
2015-07-05 09:49:07 +00:00
|
|
|
|
|
|
|
NewrelicName string `json:"newrelicName"`
|
|
|
|
NewrelicKey string `json:"newrelicKey"`
|
|
|
|
NewrelicVerbose bool `json:"newrelicVerbose"`
|
|
|
|
NewrelicEnabled bool `json:"newrelicEnabled"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Stratum struct {
|
|
|
|
Timeout string `json:"timeout"`
|
|
|
|
BlockRefreshInterval string `json:"blockRefreshInterval"`
|
|
|
|
Ports []Port `json:"listen"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Port struct {
|
|
|
|
Host string `json:"host"`
|
|
|
|
Port int `json:"port"`
|
|
|
|
Difficulty int64 `json:"diff"`
|
|
|
|
MaxConn int `json:"maxConn"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Daemon struct {
|
|
|
|
Host string `json:"host"`
|
|
|
|
Port int `json:"port"`
|
|
|
|
Timeout string `json:"timeout"`
|
|
|
|
}
|