Prevent transaction already when there is a zero BTC output

This commit is contained in:
Christoph Atteneder 2019-04-05 17:44:00 +02:00
parent dda54f8b64
commit e5d28b67c1
No known key found for this signature in database
GPG key ID: CD5DC1C529CDFD3B

View file

@ -297,7 +297,7 @@ public class BsqSendView extends ActivatableView<GridPane, Void> implements BsqB
Transaction signedTx = bsqWalletService.signTx(txWithBtcFee);
Coin miningFee = signedTx.getFee();
if (miningFee.getValue() > receiverAmount.getValue())
if (miningFee.getValue() >= receiverAmount.getValue())
GUIUtil.showWantToBurnBTCPopup(miningFee, receiverAmount, btcFormatter);
else {
int txSize = signedTx.bitcoinSerialize().length;