another minor tweak/fix to the way that nLocktime works
This commit is contained in:
parent
4fa08e82ef
commit
23b6c84d1f
2 changed files with 3 additions and 3 deletions
|
@ -373,7 +373,7 @@
|
||||||
var o = {};
|
var o = {};
|
||||||
o.outpoint = {'hash':txid, 'index':index};
|
o.outpoint = {'hash':txid, 'index':index};
|
||||||
o.script = coinjs.script(script||[]);
|
o.script = coinjs.script(script||[]);
|
||||||
o.sequence = sequence || 4294967295;
|
o.sequence = (typeof sequence===undefined) ? 4294967295 : sequence;
|
||||||
return this.ins.push(o);
|
return this.ins.push(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -892,7 +892,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
coinjs.numToBytes = function(num,bytes) {
|
coinjs.numToBytes = function(num,bytes) {
|
||||||
if (bytes === undefined) bytes = 8;
|
if (typeof bytes === undefined) bytes = 8;
|
||||||
if (bytes == 0) {
|
if (bytes == 0) {
|
||||||
return [];
|
return [];
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -356,7 +356,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
$.each($("#inputs .row"), function(i,o){
|
$.each($("#inputs .row"), function(i,o){
|
||||||
if($(".txId",o).val()!="" && $(".txIdN",o).val()!=""){
|
if($(".txId",o).val()!="" && $(".txIdN",o).val()!=""){
|
||||||
var sequence = (tx.lock_time==0) ? 4294967295 : 0;
|
var sequence = ($("#nLockTime").val()=="0") ? 4294967295 : 0;
|
||||||
tx.addinput($(".txId",o).val(), $(".txIdN",o).val(), $(".txIdScript",o).val(), sequence);
|
tx.addinput($(".txId",o).val(), $(".txIdN",o).val(), $(".txIdScript",o).val(), sequence);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue