πŸ“– AddrBook

Updated every 20 minutes.

◻️ How to use?

Copy and paste the command on your server.

curl -L https://snapshots-testnet.unitynodes.com/symphony-testnet/addrbook.json > $HOME/.symphonyd/config/addrbook.json

sudo systemctl restart symphonyd
sudo journalctl -u symphonyd -f -o cat

◻️ How to check?

After uploading addrbook to your server, you can see if your node is syncing with the following command:

local_height=$(symphonyd status | jq -r .sync_info.latest_block_height); network_height=$(curl -s https://rpc.symphony-testnet.unitynodes.com/status | jq -r .result.sync_info.latest_block_height); blocks_left=$((network_height - local_height)); echo "Your node height: $local_height"; echo "Network height: $network_height"; echo "Blocks left: $blocks_left"
  • Your node height - the current block of your node

  • Network height - the last block of the network

  • Blocks left - how many blocks your node has left to sync.

Example:

◻️ How does it work?

The address book is a local database or record maintained by a node to store information about all the peers it has contacted or learned about. This helps in the process of discovering new peers. Peers are essential for ensuring the stable and reliable operation of the network, as they allow nodes to exchange data, synchronize the blockchain, and maintain consensus.

β—½ Advantages of using addrbook

  1. Improved Peer Discovery: The address book enables a node to quickly find new peers, which helps maintain efficient communication and network stability.

  2. Faster Connection: A node can reconnect to the network more quickly after a restart by using information stored in the address book.

  3. Enhanced Security: The address book allows storing information about verified peers, reducing the risk of connecting to malicious or unreliable nodes.

Last updated