hyperledger / indy-node

The server portion of a distributed ledger purpose-built for decentralized identity.
https://wiki.hyperledger.org/display/indy
Apache License 2.0
685 stars 657 forks source link

Guidelines to remove a node from a network #1805

Closed georgepadayatti closed 1 year ago

georgepadayatti commented 1 year ago

In order for a node to be removed from the network, I am assuming the following:

  1. Expired node's owner will stop the server running the node.
  2. Every other node owners will update the pool and domain transactions by removing the expired node's transactions from the files and restarting the node.

Is this correct ? if not, please point me to towards the right direction.

WadeBarnes commented 1 year ago

The correct approach is to "remove" the node from the pool using the ledger node command in the indy-cli. The format of the command can be found here; https://github.com/bcgov/von-network/blob/main/docs/Troubleshooting.md#remove-a-node-from-a-pool. Removing the services from the node effectively removes it from the network. Once that is done the node can be decommissioned.

Modifications to pool and domain transaction files on a node once it has already been running have no affect, since the files are only used to bootstrap the ledgers.

Additional examples of how to use the ledger node command can be found in the indy-cli by running ledger node help, which will display this help text; https://github.com/hyperledger/indy-cli-rs/blob/main/src/commands/ledger/node.rs#L19-L35.

WadeBarnes commented 1 year ago

For info on registering a new node with and existing network refer to this document; https://github.com/hyperledger/indy-node/blob/main/docs/source/installation-and-configuration.md