enable max button when rbf replacement tx has only one output

This commit is contained in:
Craig Raw 2022-05-11 15:18:14 +02:00
parent 361e92c600
commit b06df383dd
2 changed files with 4 additions and 2 deletions

View file

@ -240,7 +240,7 @@ public class EntryCell extends TreeTableCell<Entry, Entry> {
} }
if(txOutput.getScript().getToAddress() != null) { if(txOutput.getScript().getToAddress() != null) {
return new Payment(txOutput.getScript().getToAddress(), label, txOutput.getValue(), false); return new Payment(txOutput.getScript().getToAddress(), label, txOutput.getValue(), blockTransaction.getTransaction().getOutputs().size() == 1);
} }
return null; return null;

View file

@ -312,7 +312,9 @@ public class PaymentController extends WalletFormController implements Initializ
} }
private void updateOpenWallets(Collection<Wallet> wallets) { private void updateOpenWallets(Collection<Wallet> wallets) {
List<Wallet> openWalletList = wallets.stream().filter(wallet -> wallet.isValid() && !wallet.isWhirlpoolChildWallet() && !wallet.isBip47()).collect(Collectors.toList()); List<Wallet> openWalletList = wallets.stream().filter(wallet -> wallet.isValid()
&& (wallet == sendController.getWalletForm().getWallet() || !wallet.isWhirlpoolChildWallet())
&& !wallet.isBip47()).collect(Collectors.toList());
if(sendController.getWalletForm().getWallet().hasPaymentCode()) { if(sendController.getWalletForm().getWallet().hasPaymentCode()) {
openWalletList.add(payNymWallet); openWalletList.add(payNymWallet);