setLockTime method
Sets transaction's locktime. Throw's ArgumentError
if locktime
is out of range
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 new ArgumentError('No, this would invalidate signatures');
}
_tx.locktime = locktime;
}