mirror of
https://github.com/ok2/coinbin.git
synced 2026-05-09 18:15:23 +02:00
set correct sequence number to input when using nLocktime
This commit is contained in:
+2
-2
@@ -369,11 +369,11 @@
|
||||
r.block = null;
|
||||
|
||||
/* add an input to a transaction */
|
||||
r.addinput = function(txid, index, script){
|
||||
r.addinput = function(txid, index, script, sequence){
|
||||
var o = {};
|
||||
o.outpoint = {'hash':txid, 'index':index};
|
||||
o.script = coinjs.script(script||[]);
|
||||
o.sequence = 4294967295;
|
||||
o.sequence = sequence || 4294967295;
|
||||
return this.ins.push(o);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user