coinb.in now supports replace by fee (RBF) transactions

This commit is contained in:
OutCast3k
2016-05-21 15:47:10 +00:00
parent 0154514309
commit e3fff74690
4 changed files with 26 additions and 7 deletions
+2 -2
View File
@@ -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);
}