network icon indicating copy to clipboard operation
network copied to clipboard

refactor(network): Default configs as constants for layer2

Open juslesan opened this issue 1 year ago • 0 comments

Summary

Added constants for default configurations for Layer2 classes.

Changes

  • Random node view count is now configured with the nodeViewSize config option

Future improvements

  • Do the same for the discovery layer #3000
  • Remove remaining magic numbers around ControlLayerNode configuration (Could also clean up on the DHT side).
  • Could maybe pass some of the defaults from a higher layer (for example the sdk). This will require some thought as some of the configs could be wanted on a per stream partition basis and others for all streams.
  • Rename all fields with listSize to ie listNodeCount

juslesan avatar Jan 29 '25 13:01 juslesan