Bitcoin-cli addnode remove - not functional #6901

issue IvanaSu opened this issue on October 29, 2015
  1. IvanaSu commented at 1:28 PM on October 29, 2015: none

    Example: bitcoin-cli addnode 52.7.106.177:8333 remove error: {"code":-24,"message":"Error: Node has not been added."}

  2. jonasschnelli commented at 1:34 PM on October 29, 2015: contributor

    Just tested. Works:

    ./src/bitcoin-cli -regtest addnode 52.7.106.177:8333 add
    :~/node/bitcoin$ ./src/bitcoin-cli -regtest getaddednodeinfo true
    [
      {
        "addednode": "52.7.106.177:8333",
        "connected": false,
        "addresses": [
          {
            "address": "52.7.106.177:8333",
            "connected": "false"
          }
        ]
      }
    ]
    :~/node/bitcoin$ ./src/bitcoin-cli -regtest addnode 52.7.106.177:8333 remove
    :~/node/bitcoin$ ./src/bitcoin-cli -regtest getaddednodeinfo true
    [
    ]
    
  3. laanwj added the label RPC on Oct 31, 2015
  4. paveljanik commented at 10:42 AM on October 31, 2015: contributor

    @IvanaSu have you added that node before of do you simply want to disconnect some node?

  5. jonasschnelli commented at 10:44 AM on October 31, 2015: contributor

    @paveljanik: good point. If you wan't to just disconnect a node use setban <ip> add <bantime>(default 86400 sec.).

  6. IvanaSu commented at 11:23 AM on October 31, 2015: none

    @paveljanik: yes, i simply wanted to disconnect a node (which I didn't add before) @jonasschnelli: thank you!

  7. paveljanik commented at 11:28 AM on October 31, 2015: contributor

    @IvanaSu Great. Can you please close this issue now?

  8. IvanaSu closed this on Oct 31, 2015

  9. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me