Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpNodesToFile ¶
func DumpNodesToFile(nodes []SerializableNode, outFile string) error
func WriteToRegistry ¶
func WriteToRegistry( logger *zap.Logger, nodes []SerializableNode, chainAdmin blockchain.INodeRegistryAdmin, ) error
Types ¶
type SerializableNode ¶
type SerializableNode struct {
NodeID uint32 `json:"node_id"`
OwnerAddress string `json:"owner_address"`
SigningKeyPub string `json:"signing_key_pub"`
HttpAddress string `json:"http_address"`
MinMonthlyFeeMicroDollars int64 `json:"min_monthly_fee_micro_dollars"`
InCanonicalNetwork bool `json:"in_canonical_network"`
}
func ImportNodesFromFile ¶
func ImportNodesFromFile(filePath string) ([]SerializableNode, error)
func ReadFromRegistry ¶
func ReadFromRegistry(chainCaller blockchain.INodeRegistryCaller) ([]SerializableNode, error)
Click to show internal directories.
Click to hide internal directories.