peerbit icon indicating copy to clipboard operation
peerbit copied to clipboard

`getDefaultMinRoleAge`: Make it adaptive the amount of data that exist

Open marcus-pousette opened this issue 1 year ago • 1 comments

If a new peers join in a network with large amount of nodes and data, it would be preferable that this node is not seen as mature until a greater time has passed, than if two nodes are alone in a network with little or no data.

Currently the min role age is (only) set to be adaptive, in propoportional with the logarithm of amount of participating nodes

marcus-pousette avatar Jan 30 '24 15:01 marcus-pousette

Somehow it makes sense that peers sends us a "ok" before when can assume we are mature ourselves. By connecting to 1000 peers and not receiving any communication will not help use determining anything

marcus-pousette avatar Feb 01 '24 08:02 marcus-pousette