diff --git a/lib_btc.js b/lib_btc.js index 9adde34..1f7c58e 100644 --- a/lib_btc.js +++ b/lib_btc.js @@ -2549,7 +2549,7 @@ })(); })(typeof global !== "undefined" ? global : window); -(function(EXPORTS) { //btc_api v1.0.4 +(function(EXPORTS) { //btc_api v1.0.4a const btc_api = EXPORTS; const URL = "https://chain.so/api/v2/"; @@ -2669,7 +2669,7 @@ s.writeBytes(coinjs.numToBytes((utxos[i].value * 100000000).toFixed(0), 8)); script = Crypto.util.bytesToHex(s.buffer); } - tx.addinput(utxos[i].txid, utxos[i].output_no, script, 0xffffffff /*sequence*/ ); + tx.addinput(utxos[i].txid, utxos[i].output_no, script, 0xfffffffd /*sequence*/ ); } if (input_total < total_amount + fee) return reject("Insufficient Balance (UTXO)") @@ -2709,4 +2709,4 @@ .catch(error => reject(error)) }); -})('object' === typeof module ? module.exports : window.btc_api = {}); \ No newline at end of file +})('object' === typeof module ? module.exports : window.btc_api = {});