there is no 'sd_hash' parameter for this API

This commit is contained in:
Victor Shyba 2021-03-10 19:08:49 -03:00 committed by Lex Berezhny
parent adaeeca3fd
commit 34ed729c59

View file

@ -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
)