New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

coinselect

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coinselect - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

8

index.js

@@ -38,4 +38,2 @@ // TODO: integrate privacy calculations, group by address, avoid linking multiple addresses together

var accum = 0
var baseFee = estimateRelayFee(byteLength, feePerKb)
var total = target + baseFee

@@ -52,4 +50,4 @@ for (var i = 0; i < sorted.length; ++i) {

baseFee = estimateRelayFee(byteLength, feePerKb)
total = target + baseFee
var baseFee = estimateRelayFee(byteLength, feePerKb)
var total = target + baseFee

@@ -84,5 +82,5 @@ // continue until we can afford the base fee

return {
fee: baseFee,
fee: estimateRelayFee(byteLength, feePerKb),
inputs: null
}
}
{
"name": "coinselect",
"version": "0.3.0",
"version": "0.3.1",
"description": "A fee optimizing bitcoin input selection module",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -122,2 +122,12 @@ [

{
"description": "not enough funds (fee > 10000), empty result",
"feePerKb": 10000,
"outputs": [900000],
"unspents": [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000],
"expected": {
"fee": 20000,
"inputs": null
}
},
{
"description": "no unspents, empty result",

@@ -124,0 +134,0 @@ "feePerKb": 10000,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc