add convenience method to get consolidation wallet node

This commit is contained in:
Craig Raw 2020-10-02 15:16:01 +02:00
parent 32b0af7381
commit e912e8a512

View file

@ -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;
}
}