-
Notifications
You must be signed in to change notification settings - Fork 480
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 all peers when running as a bootstrap node #3631
Conversation
c989828
to
631c464
Compare
tests/unit/dht/test_node.py
Outdated
@@ -11,6 +11,34 @@ | |||
from lbry.extras.daemon.storage import SQLiteStorage | |||
|
|||
|
|||
class TestBootstrapNode(AsyncioTestCase): | |||
TIMEOUT = 10.0 # do not increase. Hitting a timeout is a real failure | |||
async def test_it_adds_all(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this have a more descriptive name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
peers in the routing table. During bootstrap the shortlist is set to be the seed nodes. | ||
""" | ||
if len(key) != constants.HASH_LENGTH: | ||
raise ValueError("invalid key length: %i" % len(key)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this dropped intentionally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it is checked on the constructor: https://github.com/lbryio/lbry-sdk/pull/3631/files#diff-6cdbfed907d98f6fa01d47ea54cdc27545a13fdcfa817760715c89e9c15d6376R64
(the shortlist comes from the caller now)
closes #3626