add

open override fun add(ip: String, port: Int, priority: Int, keepForever: Boolean)

Add a potential node into the list of possible connections

Parameters

ip

IP address or domain name of the node, may include :port. If a port is included in the name, it overrides the port argument

port

TCP port of the node, -1 means the default port for this blockchain.

priority

higher number is higher priority (try it first).

keepForever

do not delete this entry, even if the connection fails