FluffyLabs / FluffyLabs/typeberry

Add `NetworkingOptions` to config file.

Open
#522 0 comments 0 reactions 0 assignees View on GitHub
M-networking
Dominant language
TypeScript
Stars
10
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Related: #452

Currently networking options are hardcoded, and partially dependent on the `dev`-validator mode (key, ports, etc).

While the defaults are sensible we should also have an option to provide them in a config file.

Options to support:
1. Networking key - by default should be loaded from the database location (base dir based on the node name) and randomly generated if not present. However it should also be possible to pass alternative key location in the config file.
2. Host - the interface we are going to bind the networking socket to (default in the future: `0.0.0.0` (or ipv6 equivalent), for now `localhost`).
3. Port - by default we should use the `12345 + shift`, port present in the config file should take precedence though.

In the future we will most likely have more options to fine-tune networking behavior (number of peers, etc).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.