mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
dont add change node if no change present
This commit is contained in:
parent
3a4d385560
commit
9f5eb41d90
1 changed files with 3 additions and 1 deletions
|
@ -598,7 +598,9 @@ public class SendController extends WalletFormController implements Initializabl
|
||||||
private void addWalletTransactionNodes() {
|
private void addWalletTransactionNodes() {
|
||||||
WalletTransaction walletTransaction = walletTransactionProperty.get();
|
WalletTransaction walletTransaction = walletTransactionProperty.get();
|
||||||
Set<WalletNode> nodes = new LinkedHashSet<>(walletTransaction.getSelectedUtxos().values());
|
Set<WalletNode> nodes = new LinkedHashSet<>(walletTransaction.getSelectedUtxos().values());
|
||||||
nodes.add(walletTransaction.getChangeNode());
|
if(walletTransaction.getChangeNode() != null) {
|
||||||
|
nodes.add(walletTransaction.getChangeNode());
|
||||||
|
}
|
||||||
List<WalletNode> consolidationNodes = walletTransaction.getConsolidationSendNodes();
|
List<WalletNode> consolidationNodes = walletTransaction.getConsolidationSendNodes();
|
||||||
nodes.addAll(consolidationNodes);
|
nodes.addAll(consolidationNodes);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue