-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for defining a list of full node peers to connect to #17369
Add support for defining a list of full node peers to connect to #17369
Conversation
I am very much looking forward to this! We (spacefarmers.io) operate several meshes of full nodes to support pool needs. At the moment, we use a script to interconnect the nodes and keep them connected. I'll be happy to abandon that script :) |
Well, that seems simple enough. |
This will also be very useful if running a small private testnet where all peers are known. Can skip running an introducer potentially. |
What is the expected syntax when adding a full node peer to the config? For example, something like this?
|
Almost: full_node_peers:
- host: 12.34.56.78
port: 8444 For multiple: full_node_peers:
- host: 12.34.56.78
port: 8444
- host: <another host>
port: 8444 |
I previously tried using a hyphen, but I didn't indent the |
Does this wallet support these settings? |
@LCG22 this PR only affects the full node service, not the wallet service |
Can you let it support the wallet ? |
As far as i know this is already possible |
Purpose:
Allow the full node to connect to a list of full nodes configured via
config.yaml
and automatically reconnect should the connection be interrupted/disconnected.Current Behavior:
Currently this is not supported, a workaround is to add peers manually via cli, but once not connected anymore they will not automatically reconnect.
New Behavior:
A list of full nodes can be configured via
full_node_peers
in theconfig.yaml
, the same way other peers are already configured.