Merge pull request #296 from lbryio/dont-allow-zero-bid

don't allow 0 bid in publish
This commit is contained in:
Jack Robison 2016-11-30 13:59:31 -05:00 committed by GitHub
commit baf6ff3f50

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