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 1.0.0 to 1.0.1

2

index.js

@@ -11,3 +11,3 @@ // TODO: integrate privacy calculations, group by address, avoid linking multiple addresses together

function estimateRelayFee (byteLength, feePerKb) {
return (byteLength / 1000) * feePerKb
return Math.round((byteLength / 1000) * feePerKb)
}

@@ -14,0 +14,0 @@

{
"name": "coinselect",
"version": "1.0.0",
"version": "1.0.1",
"description": "A fee optimizing bitcoin input selection module",

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

@@ -47,2 +47,13 @@ [

{
"description": "singular output, non-integer feePerKb, rounded fee",
"feePerKb": 10000.9,
"outputs": [100000],
"unspents": [102000],
"expected": {
"fee": 2000,
"inputs": [0],
"remainder": 0
}
},
{
"description": "multiple outputs, no remainder",

@@ -49,0 +60,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