Participants connection to the network

The moment of the first node running is the beginning of the new blockchain net creation. You can create the blockchain net from the starting only one node, further you can add new nodes as required.

  • Connect a new node into the existing network.

  • Delete unnecessary nodes from the network.

Connection of a new node to the existing net

You can add new nodes into the net at any time. The configuration files setting is described in the section Node configuration. Perform all these actions and run the node. The following steps are making:

  1. The new node user gives the public key and the node description to the net administrator.

  2. The network administrator (the node with “Connection-manager” role) uses the received public key and description for the 111 RegisterNode transaction creation with the "opType": "add" parameter.

  3. Transaction falls to the block and further into the nodes states of network participants. As a result of the transaction among the stored data, each participant of the network stores the public key and the address of the new node.

  4. If necessary, the network administrator can add additional roles to the new node using the transaction 102 Permit.

  5. The user runs the node.

  6. After starting, the node sends handshake-message with its public key to the participants from the “peers” list of its configuration file.

  7. Network participants compare the public key from the handshake message and the key from transaction 111 RegisterNode sent earlier by the network administrator. If the check is successful, the network participant updates its database and sends the Peers Message message to the network.

  8. Having successfully connected, the new node synchronizes with the network and receives the address table of the network participants.

Deleting the node

  1. The network administrator creates the 111 RegisterNode transaction with the parameter "opType": "remove" and the public key of the removed node within.

  2. This transaction is fell into the block and approved by other nodes.

  3. After accepting the transaction the nodes find the public key specified in the transaction 111 RegisterNode in their state and delete it from there.

  4. Then nodes delete the network address of the removed node from the network.known-peers of the node configuration file.