mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
fix using the correct address label for the utxo label when recieving a batched tx to several labelled address
This commit is contained in:
parent
fc5d6ada36
commit
2aa3d83402
1 changed files with 5 additions and 0 deletions
|
@ -381,6 +381,11 @@ public class WalletForm {
|
||||||
blockTransaction.setLabel(changedNode.getLabel());
|
blockTransaction.setLabel(changedNode.getLabel());
|
||||||
changedLabelEntries.add(new TransactionEntry(event.getWallet(), blockTransaction, Collections.emptyMap(), Collections.emptyMap()));
|
changedLabelEntries.add(new TransactionEntry(event.getWallet(), blockTransaction, Collections.emptyMap(), Collections.emptyMap()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(receivedRef.getLabel() == null || receivedRef.getLabel().isEmpty()) {
|
||||||
|
receivedRef.setLabel(changedNode.getLabel() + (changedNode.getKeyPurpose() == KeyPurpose.CHANGE ? " (change)" : " (received)"));
|
||||||
|
changedLabelEntries.add(new HashIndexEntry(event.getWallet(), receivedRef, HashIndexEntry.Type.OUTPUT, changedNode.getKeyPurpose()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!changedLabelEntries.isEmpty()) {
|
if(!changedLabelEntries.isEmpty()) {
|
||||||
|
|
Loading…
Reference in a new issue