set

fun set(network: MidnightNetwork)

Persist network DURABLY and publish it. Uses commit() (synchronous), NOT apply(), so the choice is on disk before this returns — it cannot be lost to a process kill that lands between the switch and the next launch.