Example: bitcoin-cli addnode 52.7.106.177:8333 remove error: {"code":-24,"message":"Error: Node has not been added."}
Bitcoin-cli addnode remove - not functional #6901
issue IvanaSu opened this issue on October 29, 2015-
IvanaSu commented at 1:28 PM on October 29, 2015: none
-
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 [ ] - laanwj added the label RPC on Oct 31, 2015
-
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?
-
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.). -
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!
-
paveljanik commented at 11:28 AM on October 31, 2015: contributor
@IvanaSu Great. Can you please close this issue now?
- IvanaSu closed this on Oct 31, 2015
- DrahtBot locked this on Sep 8, 2021
Contributors
Labels