don't allow bid to be equal to wallet balance (nothing left for the tx fee)

This commit is contained in:
Jack Robison 2017-05-30 10:48:08 -04:00
parent 5d4e4a8753
commit ccbb5d88dc

View file

@ -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 {}