From 7e95169fbec5dce95781d1a659272cd0d4bc4733 Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Wed, 2 Aug 2017 12:11:09 -0400 Subject: [PATCH] add get_head_blob_hash() function in DownloadManager --- lbrynet/core/client/DownloadManager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lbrynet/core/client/DownloadManager.py b/lbrynet/core/client/DownloadManager.py index cd74588ec..4c8fd565a 100644 --- a/lbrynet/core/client/DownloadManager.py +++ b/lbrynet/core/client/DownloadManager.py @@ -98,3 +98,6 @@ class DownloadManager(object): return self.calculate_total_bytes() else: return sum([b.length for b in self.needed_blobs() if b.length is not None]) + + def get_head_blob_hash(self): + return self.blobs[0].blob_hash