From 1c57293e9c323deb563743f6ef89cee310f8e160 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Tue, 21 Aug 2018 15:39:18 -0400 Subject: [PATCH] amount comparison should be 0, per lbrynaut review --- lbrynet/daemon/Daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index ca8848e4a..8c1ed185a 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -1558,7 +1558,7 @@ class Daemon(AuthJSONRPCServer): amount = self.get_dewies_or_error("amount", amount) - if amount <= 0.0: + if amount <= 0: raise Exception("Invalid amount") tx = yield self.wallet.claim_new_channel(channel_name, amount) self.wallet.save()