amount comparison should be 0, per lbrynaut review

This commit is contained in:
Lex Berezhny 2018-08-21 15:39:18 -04:00 committed by Jack Robison
parent 14a067a4c4
commit 1c57293e9c
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

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