fix terminator blob hash (None) being included when running blob_list for an sd hash

This commit is contained in:
Jack Robison 2019-02-18 12:12:14 -05:00
parent 4a0a6b0243
commit 4483380352
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -2718,7 +2718,7 @@ class Daemon(metaclass=JSONRPCServerType):
else:
blobs = []
if stream_hash:
blobs.extend([b.blob_hash for b in await self.storage.get_blobs_for_stream(stream_hash)])
blobs.extend([b.blob_hash for b in (await self.storage.get_blobs_for_stream(stream_hash))[:-1]])
else:
blobs = list(self.blob_manager.completed_blob_hashes)
if needed: