enableSecureId

fun enableSecureId(externalIp: String, enforce: Boolean = true)

Re-derive our node id from our observed external IP per BEP-42 and (optionally) turn on the enforceNodeId admission gate. The engine calls this once it learns our external address (e.g. from a router's ip reply or the platform). The routing table is rebuilt around the new id (RoutingTable.updateNodeId).

Parameters

externalIp

our external address literal (IPv4 dotted-quad or IPv6 colon-hex).

enforce

whether to also enable the BEP-42 admission gate from now on.