setLockTime method
Implementation
setLockTime(int locktime) {
if (locktime < 0 || locktime > 0xFFFFFFFF)
throw ArgumentError('Expected Uint32');
// if any signatures exist, throw
if (this._inputs.map((input) {
if (input.signatures == null) return false;
return input.signatures!.map((s) {
return s != null;
}).contains(true);
}).contains(true)) {
throw ArgumentError('No, this would invalidate signatures');
}
_tx!.locktime = locktime;
}