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
Persist DHT nodes #1431
Open
bookmoons
wants to merge
9
commits into
webtorrent:master
from
bookmoons:bookmoons/persist
base: master
Open
Persist DHT nodes #1431
+221
−7
Commits on Jul 14, 2018
-
Persists DHT nodes to disk every 15 minutes. Loads persisted nodes on construction. Enabled by default. Default save file is dht.json, under crossplatform app data folder provided by app-data-folder. Adds option dhtState to configure: * false disables * true enables with default path * String specifies path to custom save file
Verified
This commit was signed with a verified signature.GPG key ID: 29D2A92F3145E7A7 Learn about signing commits
Commits on Jul 30, 2018
-
Move DHT persistence logic into lib/ module
bookmoons committedJul 30, 2018 Increases cleanliness of index.js.
Verified
This commit was signed with a verified signature.GPG key ID: 29D2A92F3145E7A7 Learn about signing commits -
bookmoons committed
Jul 30, 2018 Verified
This commit was signed with a verified signature.GPG key ID: 29D2A92F3145E7A7 Learn about signing commits -
Distinguish addresses in DHT persistence test
bookmoons committedJul 30, 2018 Uses loopback for the test DHT server, a local address provided by the network-address module for the client. This is the pattern used in other tests.
Verified
This commit was signed with a verified signature.GPG key ID: 29D2A92F3145E7A7 Learn about signing commits -
bookmoons committed
Jul 30, 2018 Saved node data and the bootstrap list use different formats. Converts to the bootstrap format.
Verified
This commit was signed with a verified signature.GPG key ID: 29D2A92F3145E7A7 Learn about signing commits -
Allow DHT state loading when bootstrap disabled
bookmoons committedJul 30, 2018 Prior logic disabled DHT state load with any bootstrap value, including a false to disable. Changes to allowing DHT state load if bootstrap is explicitly disabled with a falsy value.
Verified
This commit was signed with a verified signature.GPG key ID: 29D2A92F3145E7A7 Learn about signing commits -
Verified
This commit was signed with a verified signature.GPG key ID: 29D2A92F3145E7A7 Learn about signing commits
Commits on Aug 6, 2018
-
bookmoons committed
Aug 6, 2018 Verified
This commit was signed with a verified signature.GPG key ID: 29D2A92F3145E7A7 Learn about signing commits -
Splits from single option dhtState into 2 options: * persistDht - Boolean. Flag to enable. * persistDhtPath - String. Optional custom path for save file.
Verified
This commit was signed with a verified signature.GPG key ID: 29D2A92F3145E7A7 Learn about signing commits
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.