mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-11-02 18:26:43 +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;
|
||||
}
|
||||
|
||||
public WalletNode getConsolidationSendNode() {
|
||||
if(getRecipientAddress() != null && getWallet() != null) {
|
||||
return getWallet().getWalletOutputScripts().get(getRecipientAddress().getOutputScript());
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue