Merge pull request #296 from lbryio/dont-allow-zero-bid
don't allow 0 bid in publish
This commit is contained in:
commit
baf6ff3f50
1 changed files with 2 additions and 0 deletions
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue