mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-08-02 00:31:24 +00:00
Add a Transaction.getValue(Wallet) method.
This commit is contained in:
@@ -288,6 +288,13 @@ public class Transaction extends ChildMessage implements Serializable {
|
||||
return v;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the difference of {@link Transaction#getValueSentFromMe(Wallet)} and {@link Transaction#getValueSentToMe(Wallet)}.
|
||||
*/
|
||||
public BigInteger getValue(Wallet wallet) throws ScriptException {
|
||||
return getValueSentToMe(wallet).subtract(getValueSentFromMe(wallet));
|
||||
}
|
||||
|
||||
boolean disconnectInputs() {
|
||||
boolean disconnected = false;
|
||||
maybeParse();
|
||||
|
Reference in New Issue
Block a user