mirror of
https://github.com/ok2/coinbin.git
synced 2026-05-09 18:15:23 +02:00
coinb.in now supports replace by fee (RBF) transactions
This commit is contained in:
+2
-2
@@ -776,11 +776,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 = (r.lock_time==0) ? 4294967295 : 0;
|
||||
o.sequence = sequence || ((r.lock_time==0) ? 4294967295 : 0);
|
||||
return this.ins.push(o);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user