support detection of consolidation sends

This commit is contained in:
Craig Raw 2020-09-01 08:58:06 +02:00
parent 59d610f539
commit c7e16a29e3

View file

@ -97,4 +97,12 @@ public class WalletTransaction {
public boolean isCoinControlUsed() {
return !utxoSelectors.isEmpty() && utxoSelectors.get(0) instanceof PresetUtxoSelector;
}
public boolean isConsolidationSend() {
if(getRecipientAddress() != null && getWallet() != null) {
return getWallet().isWalletOutputScript(getRecipientAddress().getOutputScript());
}
return false;
}
}