mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-27 02:26:44 +00:00
add convenience method to get consolidation wallet node
This commit is contained in:
parent
32b0af7381
commit
e912e8a512
1 changed files with 8 additions and 0 deletions
|
@ -109,4 +109,12 @@ public class WalletTransaction {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public WalletNode getConsolidationSendNode() {
|
||||||
|
if(getRecipientAddress() != null && getWallet() != null) {
|
||||||
|
return getWallet().getWalletOutputScripts().get(getRecipientAddress().getOutputScript());
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue