forked from LBRYCommunity/lbry-sdk
don't allow 0 bid
This commit is contained in:
parent
8cdda7d845
commit
051e63d76b
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