mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +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);
|
||||
// If the scriptBytes don't default to none, our size calculations will be thrown off.
|
||||
checkState(input.getScriptBytes().length == 0);
|
||||
checkState(!input.hasWitness());
|
||||
}
|
||||
|
||||
int size = tx.unsafeBitcoinSerialize().length;
|
||||
|
Reference in New Issue
Block a user