From 051e63d76baa08bb92284031f6d51587ba80ca00 Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 29 Nov 2016 20:17:06 -0500 Subject: [PATCH] don't allow 0 bid --- lbrynet/lbrynet_daemon/Daemon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lbrynet/lbrynet_daemon/Daemon.py b/lbrynet/lbrynet_daemon/Daemon.py index 862680b38..b3109c771 100644 --- a/lbrynet/lbrynet_daemon/Daemon.py +++ b/lbrynet/lbrynet_daemon/Daemon.py @@ -1651,6 +1651,8 @@ class Daemon(AuthJSONRPCServer): return defer.fail(InvalidNameError("Bad name")) bid = p['bid'] + if bid <= 0.0: + return defer.fail(Exception("Invalid bid")) try: metadata = Metadata(p['metadata'])