don't allow bid to be equal to wallet balance (nothing left for the tx fee)
This commit is contained in:
parent
5d4e4a8753
commit
ccbb5d88dc
1 changed files with 1 additions and 1 deletions
|
@ -1804,7 +1804,7 @@ class Daemon(AuthJSONRPCServer):
|
|||
if bid <= 0.0:
|
||||
raise Exception("Invalid bid")
|
||||
|
||||
if bid > self.session.wallet.get_balance():
|
||||
if bid >= self.session.wallet.get_balance():
|
||||
raise InsufficientFundsError()
|
||||
|
||||
metadata = metadata or {}
|
||||
|
|
Loading…
Reference in a new issue