3

I run a removeNeighbour command on my full node over curl but my node seems ignoring me.

curl http://my.iota.node:port \
  -X POST \
  -H 'Content-Type: application/json' \
  -H 'X-IOTA-API-Version: 1' \
  -d '{"command": "removeNeighbors", "uris": 
["tcp://neighbour.to.remove:port"]}'

I always get a {"removedNeighbors":0,"duration":150}.

I tried with other neighbours and it works just fine. But this specific one doesn't. I am sure I have this neighbour and I am writing the address right.

Helmar
  • 1,293
  • 1
  • 15
  • 28
Agustin Tena
  • 311
  • 1
  • 5
  • up vote 0 down vote accept I still do not know why this happened. However I got my neighbour removed by removing it from the config .ini file and restarting the node. Ugly, but that's it. It will be nice to know why my node ignored my command though. – Agustin Tena Dec 03 '17 at 20:50

1 Answers1

1

Can it be that you are using the hostname, and the IP address of the neighbor changed since adding or restarting your node? To remove neighbors, your node compares protocol, resolved IP and port. In case the IP changed while your IRI was running, removing it with the same host name will fail (but removing it with the old IP should still work).

You can also try to restart your iri and check if the removal works afterwards.

mihi
  • 7,324
  • 2
  • 15
  • 34