coinselect
Advanced tools
Comparing version 3.0.2 to 3.0.5
@@ -24,4 +24,4 @@ let utils = require('./utils') | ||
// did we bust? | ||
const feeWanted = feeRate * bytesAccum | ||
if (inAccum < outAccum + feeWanted) return { fee: feeWanted } | ||
const feeAccum = feeRate * bytesAccum | ||
if (inAccum < outAccum + feeAccum) return { fee: feeAccum } | ||
@@ -36,3 +36,3 @@ // is it worth an extra output [for change]? | ||
outAccum += valueExtra | ||
outputs.push({ value: valueExtra }) | ||
outputs = outputs.concat({ value: valueExtra }) | ||
@@ -39,0 +39,0 @@ const fee = inAccum - outAccum |
{ | ||
"name": "coinselect", | ||
"version": "3.0.2", | ||
"version": "3.0.5", | ||
"description": "A transaction input selection module for bitcoin.", | ||
@@ -46,3 +46,2 @@ "keywords": [ | ||
"standard": "*", | ||
"tap-spec": "^4.1.1", | ||
"tape": "^4.5.1" | ||
@@ -49,0 +48,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
7573