@unielon/coin-dogecoin
Advanced tools
Comparing version 1.0.16 to 1.0.17
@@ -15,1 +15,2 @@ export * from "./bitcoinjs-lib"; | ||
export * from "./transaction"; | ||
export * from "./computeRoutePath"; |
@@ -44,2 +44,3 @@ "use strict"; | ||
__exportStar(require("./transaction"), exports); | ||
__exportStar(require("./computeRoutePath"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -97,3 +97,2 @@ "use strict"; | ||
revealTxs.push(tx); | ||
console.log(fee, 'mustRevealTxFees====='); | ||
mustRevealTxFees.push(fee); | ||
@@ -132,7 +131,6 @@ }); | ||
const fee = Math.floor(txForEstimate.virtualSize() * commitFeeRate); | ||
console.log(txForEstimate.virtualSize(), '==siez'); | ||
const changeAmount = totalSenderAmount - totalRevealPrevOutputValue - fee; | ||
console.log(changeAmount >= minChangeValue, changeAmount, minChangeValue, totalSenderAmount, totalRevealPrevOutputValue, fee, '----'); | ||
if (changeAmount >= minChangeValue) { | ||
tx.outs[tx.outs.length - 1].value = 1000000; | ||
tx.outs[tx.outs.length - 1].value = changeAmount; | ||
} | ||
@@ -139,0 +137,0 @@ else { |
@@ -82,4 +82,6 @@ "use strict"; | ||
const changeAmount = totalSenderAmount - totalRevealPrevOutputValue - fee; | ||
console.log(totalSenderAmount, totalRevealPrevOutputValue, fee, 'test==='); | ||
console.log(tx.outs, 'tx.outs====2222'); | ||
const changePkScript = bitcoin.address.toOutputScript(changeAddress, network); | ||
console.log(changeAmount, 'changeAmount====', minChangeValue, changeAmount >= minChangeValue); | ||
if (changeAmount >= minChangeValue) { | ||
@@ -86,0 +88,0 @@ tx.addOutput(changePkScript, changeAmount); |
{ | ||
"name": "@unielon/coin-dogecoin", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
941752
243
13016