Documentation ¶
Index ¶
- Variables
- func CheckCurrentMiners(jsonPayload map[string]interface{}) bool
- func CheckFee(jsonPayload map[string]interface{}) bool
- func GetNodeInformation(NodeURL string) (jsonPayload map[string]interface{}, err error)
- func GetSelectedNode(testnet bool)
- func PingNodes(NodeList []Nodes) error
- type Conditions
- type Nodes
- type SelectedNode
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = Conditions{ MaxFee: 2, MaxMiners: 35, MaxNextPing: 25 * time.Millisecond, PingPackets: 2, PingTimeout: 2000000000, }
Functions ¶
func CheckCurrentMiners ¶
To ensure efficiency of the selected p2pool node a limit of miners has been put in place, returns true if the number is equal to Maxminers or below
func GetNodeInformation ¶
Instead of making a http request to the node each time we need to get information, we do it once and then reuse the collected data.
func GetSelectedNode ¶
func GetSelectedNode(testnet bool)
Types ¶
type Conditions ¶
type SelectedNode ¶
var Selected SelectedNode
Click to show internal directories.
Click to hide internal directories.