set correct sequence number to input when using nLocktime

This commit is contained in:
OutCast3k
2014-12-15 13:54:13 +00:00
parent 529a2193d8
commit 4fa08e82ef
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -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);
}