mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-13 10:57:56 +00:00
Wallet: Add an assert calculateFee().
This commit is contained in:
@@ -5072,6 +5072,7 @@ public class Wallet extends BaseTaggableObject
|
|||||||
TransactionInput input = tx.addInput(selectedOutput);
|
TransactionInput input = tx.addInput(selectedOutput);
|
||||||
// If the scriptBytes don't default to none, our size calculations will be thrown off.
|
// If the scriptBytes don't default to none, our size calculations will be thrown off.
|
||||||
checkState(input.getScriptBytes().length == 0);
|
checkState(input.getScriptBytes().length == 0);
|
||||||
|
checkState(!input.hasWitness());
|
||||||
}
|
}
|
||||||
|
|
||||||
int size = tx.unsafeBitcoinSerialize().length;
|
int size = tx.unsafeBitcoinSerialize().length;
|
||||||
|
|||||||
Reference in New Issue
Block a user