Navigation Menu

Skip to content
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

load all finished blobs into the node datastore #1280

Merged
merged 2 commits into from Jul 2, 2018
Merged

Conversation

jackrobison
Copy link
Member

-accept invalid store tokens for the first expire-time after startup

this is to better handle nodes storing to us after we've restarted our node
return defer.succeed(True)
if self._node_datastore is not None:
blob_hashes = yield self.storage.get_all_finished_blobs()
self._node_datastore.completed_blobs.update(blob_hashes)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add it decoded as it's how hashes are stored on DHT classes? Also maybe not directly over the attribute but over a method so BlobManager keeps handling hex encoded hashes while DHT handles decoded ones to keep expectations/consistent in check.

@lbry-bot lbry-bot assigned jackrobison and unassigned shyba Jul 2, 2018
@jackrobison jackrobison merged commit 7fe92d2 into master Jul 2, 2018
@jackrobison jackrobison deleted the self-store branch July 5, 2018 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants