Open clandest opened 4 years ago
We probably want to combine more strategies, where we want to proceed with the distribution of the Country code
and Free World Bit
in our network.
Country by IP localization
process for each of his direct Neighborhood member in order to validate his information delivered in Debut or Standard Gossip.Country Code
and Free World Bit
as described in #789In all these cases we need to modify the gossip to contain this information.
On the startup of the Node, the NodeConfiguratorStandard will obtain the public IP of the machine, run the get_node_location() fn, and construct his NodeRecord with Country Code
and Free World Bit
. This information should be included in the NodeRecordInner_0v1
in Debut Gossip.
In Standard Gossip
we share our state of view of the observed Patch of Network from our Node. In NodeRecordMetadata we store our view of the Nodes location, if we have the IP of the current node in our DB, we always run the get_node_location() on its IP and results We store in NodoRecordMetadata, to be able to see if there is a difference between that what Node is telling about itself and what we know about him.
Add the Free World bit to the NeighborhoodConfiguration and modify the Gossip protocol to disseminate it.