Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network activity toggle #2412

Closed
wants to merge 3 commits into from
Closed

Commits on Oct 20, 2013

  1. Allow network activity to be temporarily suspended.

    Added the function SetNetworkActive() which when called with argument set to false disconnects all nodes and sets the flag fNetworkActive to false. As long as this flag is false no new connections are attempted and no incoming connections are accepted. Network activity is reenabled by calling the function with argument true.
    jonls committed Oct 20, 2013
    Configuration menu
    Copy the full SHA
    9189d7c View commit details
    Browse the repository at this point in the history
  2. Add RPC command "togglenetwork" to toggle network activity temporarily.

    RPC command "togglenetwork" toggles network and returns new state after command.
    RPC command "getinfo" returns "networkactive" field in output.
    jonls committed Oct 20, 2013
    Configuration menu
    Copy the full SHA
    c8e75ca View commit details
    Browse the repository at this point in the history
  3. Add gui feedback and control of network activity state.

    Add getNetworkActive()/setNetworkActive() method to client model.
    Send network active status through NotifyNetworkActiveChanged.
    Indicate in tool tip of gui status bar network indicator whether network activity is disabled.
    Indicate in debug window whether network activity is disabled and add button to allow user to toggle network activity state.
    jonls committed Oct 20, 2013
    Configuration menu
    Copy the full SHA
    2257031 View commit details
    Browse the repository at this point in the history