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

Bootstrapping from trusted nodes #1573

Open
schenkty opened this Issue Jan 10, 2019 · 6 comments

Comments

Projects
None yet
2 participants
@schenkty
Copy link
Contributor

schenkty commented Jan 10, 2019

Would be nice if there could be a way to add a list of trusted nodes to the config file so if the node needs to bootstrap, it can quickly pull the ledger from a node that it can trust rather than bootstrap from the public network. If I have 3 nodes and want to spin up a new one, the 4th should be able to download from the other 3 much faster than a public bootstrap.

@renesq

This comment has been minimized.

Copy link

renesq commented Jan 10, 2019

That's what
{ "action": "bootstrap", "address": "::ffff:138.201.94.249", "port": "7075" }
is intended for. It was made specifically for exchanges to quickly bootstrap off a local network.

Now that the block database is being separated from wallet data, it will also be easier to replace the ldb file.

@schenkty

This comment has been minimized.

Copy link
Contributor

schenkty commented Jan 10, 2019

@renesq is it possible for that to be automatic on start from a config?

@renesq

This comment has been minimized.

Copy link

renesq commented Jan 10, 2019

Add the other nodes as initial peers and temporarily add some restrictions in your firewall.

@schenkty

This comment has been minimized.

Copy link
Contributor

schenkty commented Jan 10, 2019

@renesq fair but why make it overly complex when the node could easily do it automatically?

@renesq

This comment has been minimized.

Copy link

renesq commented Jan 10, 2019

I normally use the --snapshot feature and copy over the database if i'm in a hurry.

@schenkty

This comment has been minimized.

Copy link
Contributor

schenkty commented Jan 10, 2019

I do as well. My intent for this was to remove that need on a mass scale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment