Closed timkoers closed 4 years ago
enablenetwork change seems good.
Not entirely sure whether the disablenetwork change makes sense. With the change disablenetwork will return "true" when the network is enabled and "false" when the network is disabled - while (in my mind at least) the return value is meant to reflect whether the command succeeded or failed.
If the behaviour is instead going to be to return the state of network enabled/disabled then probably the help should at least document the return value to explain this
That is correct! I've fixed the disablenetwork!
enablenetwork() returned false instead of true. Cleaned up the enable/disablenetwork return statements whilest at it