You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node radius indicates to other nodes what content our node is interest in or already stores based on the distance between the contentId for a given piece of content and our Node ID where the distance is the distance function for the given subnetwork (generally the XOR distance metric except for the State Network). Our node radius is currently set to 1 and advertised that way to all other nodes on the network via the PING/PONG messages and would basically indicate we are interested in storing no data in a real world environment.
We need to fix this by allowing the portalnetwork module to be initiated with some size limit on the DB (say 500 MB) and then have the client internally adjust its node radius based on this in the following way:
Node radius is initially set to infinity (or 2^256 really since this is the largest possible distance generated by XOR)
Once the DB fills up to within say 10% of maximum capacity (or maybe 1% of capacity), the radius of the node should be set at the largest distance for any content held locally
This radius should be adjusted any time we try to add a new piece of content to the DB
The text was updated successfully, but these errors were encountered:
I've adjusted our default node radius to be 2^256 in #126 as a starting point here so will be curious to see how important this becomes as we spin up larger networks.
Node radius indicates to other nodes what content our node is interest in or already stores based on the distance between the
contentId
for a given piece of content and our Node ID where the distance is the distance function for the given subnetwork (generally the XOR distance metric except for the State Network). Our node radius is currently set to 1 and advertised that way to all other nodes on the network via the PING/PONG messages and would basically indicate we are interested in storing no data in a real world environment.We need to fix this by allowing the
portalnetwork
module to be initiated with some size limit on the DB (say 500 MB) and then have the client internally adjust its node radius based on this in the following way:The text was updated successfully, but these errors were encountered: