don't allow 0 bid

This commit is contained in:
Jack 2016-11-29 20:17:06 -05:00
parent 8cdda7d845
commit 051e63d76b

View file

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