From e7dc841bb7d6bd89a53f796b54cb312ab0fd433f Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Fri, 10 Mar 2017 18:24:32 -0500 Subject: [PATCH] fix fee validation in publisher and clarify publish docstring --- lbrynet/lbrynet_daemon/Daemon.py | 2 +- lbrynet/lbrynet_daemon/Publisher.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lbrynet/lbrynet_daemon/Daemon.py b/lbrynet/lbrynet_daemon/Daemon.py index e62004650..68baef9f5 100644 --- a/lbrynet/lbrynet_daemon/Daemon.py +++ b/lbrynet/lbrynet_daemon/Daemon.py @@ -1692,7 +1692,7 @@ class Daemon(AuthJSONRPCServer): 'metadata': dict, Metadata compliant (can be missing sources if a file is provided) 'file_path' (optional): str, path to file to be associated with name, if not given the stream from your existing claim for the name will be used - 'fee' (optional): dict, FeeValidator compliant + 'fee' (optional): dict, FeeValidator compliant (i.e. {'LBC':{'amount':10}} ) Returns: 'tx' : hex encoded transaction 'txid' : txid of resulting transaction diff --git a/lbrynet/lbrynet_daemon/Publisher.py b/lbrynet/lbrynet_daemon/Publisher.py index a0f390d3c..9043705f4 100644 --- a/lbrynet/lbrynet_daemon/Publisher.py +++ b/lbrynet/lbrynet_daemon/Publisher.py @@ -22,7 +22,6 @@ class Publisher(object): @defer.inlineCallbacks def add_fee_to_metadata(self, metadata, fee): - metadata['fee'] = FeeValidator(fee) assert len(fee) == 1, "Too many fees" for currency in fee: if 'address' not in fee[currency]: