mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-27 02:26:44 +00:00
support detection of consolidation sends
This commit is contained in:
parent
59d610f539
commit
c7e16a29e3
1 changed files with 8 additions and 0 deletions
|
@ -97,4 +97,12 @@ public class WalletTransaction {
|
||||||
public boolean isCoinControlUsed() {
|
public boolean isCoinControlUsed() {
|
||||||
return !utxoSelectors.isEmpty() && utxoSelectors.get(0) instanceof PresetUtxoSelector;
|
return !utxoSelectors.isEmpty() && utxoSelectors.get(0) instanceof PresetUtxoSelector;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isConsolidationSend() {
|
||||||
|
if(getRecipientAddress() != null && getWallet() != null) {
|
||||||
|
return getWallet().isWalletOutputScript(getRecipientAddress().getOutputScript());
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue