The cornerstone of Exscudo ecosystem is EON - a flexible blockchain technology. There is the technology portal that contains explanations and specifications necessary to have a detailed understanding of the technology, as well as a number of tools that may come handy for users and participants. One of the tools is the peer map representing a map of currently available peers (or nodes). This articles describes the method used to build and to update the peer map.
There are two peer maps available at the portal, related to their corresponding networks:
Regardless of what the network is, the method used to create a respective map is the same and described below.
There are three key points to be considered when understanding the method used to build the map:
The method used to request the list of peers is based on EON API get_well_known_nodes call.
String[] metadata.get_well_known_nodes()
Get a list of peer addresses which the peer is connected to. The list contains only those connections which are currently active.
● Input parameters: none.
● Return value: array(string).
Examples:
>>>{"jsonrpc":"2.0","id":41782,"method":"metadata.get_well_known_nodes" }
<<<{"jsonrpc":"2.0","id":"41782","result":["193.124.176.13:9443","81.82 .229.114:9443","185.82.218.107:9443","45.32.87.241:9443","195.123.212.7 0:9443","45.76.124.206:9443","217.12.221.5:9443","176.78.128.15:9443"," 45.76.131.32:9443","104.156.246.67:9443","193.70.41.106:9443"]}
As a result, all the online peer addresses are processed. A map of the connections between then is built.
Newly deployed peers are not added to the peer map at once. There is a period of time required for them to inform (announce) other peers about self availability, as well as to establish connections. Plus, other peers have to take a positive decision to connect to the new ones, when randomly connecting to other available peers.