bug fix for time locked addresses. transactions not being built correctly (no loss of funds!!!!)
This commit is contained in:
parent
739aee3c0f
commit
194df37d56
1 changed files with 6 additions and 3 deletions
|
@ -888,8 +888,9 @@ $(document).ready(function() {
|
|||
|
||||
if($("#redeemFromStatus").hasClass("hidden")) {
|
||||
// An ethical dilemma: Should we automatically set nLockTime?
|
||||
if(redeem.from == 'redeemScript' && redeem.decodedRs.type == "hodl__") {
|
||||
$("#nLockTime").val(redeem.decodedRs.checklocktimeverify);
|
||||
console.log(redeem);
|
||||
if(redeem.from == 'redeemScript' && redeem.decodescript.type == "hodl__") {
|
||||
$("#nLockTime").val(redeem.decodescript.checklocktimeverify);
|
||||
} else {
|
||||
$("#nLockTime").val(0);
|
||||
}
|
||||
|
@ -925,7 +926,9 @@ $(document).ready(function() {
|
|||
r.addr = decodeRs['address'];
|
||||
r.from = 'redeemScript';
|
||||
r.decodedRs = decodeRs.redeemscript;
|
||||
r.type = decodeRs['type'];
|
||||
r.redeemscript = true;
|
||||
r.decodescript = decodeRs;
|
||||
} else { // something else
|
||||
r.addr = '';
|
||||
r.from = 'other';
|
||||
|
|
Loading…
Reference in a new issue