mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
enable max button when rbf replacement tx has only one output
This commit is contained in:
parent
361e92c600
commit
b06df383dd
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue