From 34ed729c59818ff7c5221c3b4f803e5e971165c5 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 10 Mar 2021 19:08:49 -0300 Subject: [PATCH] there is no 'sd_hash' parameter for this API --- lbry/extras/daemon/daemon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lbry/extras/daemon/daemon.py b/lbry/extras/daemon/daemon.py index fb6b5a82a..48a97b2c6 100644 --- a/lbry/extras/daemon/daemon.py +++ b/lbry/extras/daemon/daemon.py @@ -3288,9 +3288,9 @@ class Daemon(metaclass=JSONRPCServerType): kwargs.update(spec) claim = Claim() - if file_path is not None and 'sd_hash' not in kwargs: - kwargs['sd_hash'] = '0' * 96 - claim.stream.update(file_path=file_path, **kwargs) + claim.stream.update(**kwargs) + if file_path is not None: + claim.stream.update(file_path=file_path, sd_hash='0' * 96) tx = await Transaction.claim_create( name, claim, amount, claim_address, funding_accounts, funding_accounts[0], channel )