Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lightning

Package Overview
Dependencies
Maintainers
0
Versions
358
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightning - npm Package Compare versions

Comparing version 10.17.0 to 10.18.0

lnd_methods/onchain/get_minimum_relay_fee.js

6

CHANGELOG.md
# Versions
## 10.18.0
- `getMinimumRelayFee`: Add method to get the chain backend minimum relay fee
## 10.17.0
- `getFeeRates`: Add support for `inbound_base_discount_mtokens`,
'inbound_rate_discount` for inbound fee policy discounts
`inbound_rate_discount` for inbound fee policy discounts

@@ -8,0 +12,0 @@ ## 10.16.1

@@ -64,2 +64,3 @@ const {addAdvertisedFeature} = require('./lnd_methods');

const {getMethods} = require('./lnd_methods');
const {getMinimumRelayFee} = require('./lnd_methods');
const {getNetworkCentrality} = require('./lnd_methods');

@@ -225,2 +226,3 @@ const {getNetworkGraph} = require('./lnd_methods');

getMethods,
getMinimumRelayFee,
getNetworkCentrality,

@@ -227,0 +229,0 @@ getNetworkGraph,

@@ -63,2 +63,3 @@ const {addAdvertisedFeature} = require('./peers');

const {getMethods} = require('./info');
const {getMinimumRelayFee} = require('./onchain');
const {getNetworkCentrality} = require('./info');

@@ -223,2 +224,3 @@ const {getNetworkGraph} = require('./info');

getMethods,
getMinimumRelayFee,
getNetworkCentrality,

@@ -225,0 +227,0 @@ getNetworkGraph,

@@ -18,2 +18,3 @@ const broadcastChainTransaction = require('./broadcast_chain_transaction');

const getMasterPublicKeys = require('./get_master_public_keys');
const getMinimumRelayFee = require('./get_minimum_relay_fee');
const getPendingChainBalance = require('./get_pending_chain_balance');

@@ -63,2 +64,3 @@ const getPendingSweeps = require('./get_pending_sweeps');

getMasterPublicKeys,
getMinimumRelayFee,
getPendingChainBalance,

@@ -65,0 +67,0 @@ getPendingSweeps,

@@ -18,2 +18,4 @@ const {chanFormat} = require('bolt07');

fee_per_mil: <Millitokens Per Million Fee Rate String>
inbound_base_fee_msat: <Inbound Base Fee Millitokens Number>
inbound_fee_per_mil: <Inbound Fee Rate PPM Number>
}

@@ -20,0 +22,0 @@

6

package.json

@@ -12,3 +12,3 @@ {

"@grpc/proto-loader": "0.7.13",
"@types/node": "22.1.0",
"@types/node": "22.2.0",
"@types/request": "2.48.12",

@@ -26,3 +26,3 @@ "@types/ws": "8.5.12",

"tiny-secp256k1": "2.2.3",
"type-fest": "4.23.0"
"type-fest": "4.24.0"
},

@@ -58,3 +58,3 @@ "description": "Lightning Network client library",

"types": "index.d.ts",
"version": "10.17.0"
"version": "10.18.0"
}

@@ -204,2 +204,4 @@ # Lightning

permissions required to use them.
- [getMinimumRelayFee](https://github.com/alexbosworth/ln-service#getminimumrelayfee):
Get the minimum relayable fee for publishing a chain transaction
- [getNetworkCentrality](https://github.com/alexbosworth/ln-service#getnetworkcentrality):

@@ -206,0 +208,0 @@ Calculate the graph centrality score of a node.

@@ -75,2 +75,19 @@ const {deepStrictEqual} = require('node:assert').strict;

},
{
args: makeArgs({
inbound_base_fee_msat: -1,
inbound_fee_per_mil: -1,
}),
description: 'RPC channel fees are mapped to inverse channel fees',
expected: {
base_fee: 0,
base_fee_mtokens: '1',
fee_rate: 0,
id: '0x0x1',
inbound_base_discount_mtokens: '1',
inbound_rate_discount: 1,
transaction_id: Buffer.alloc(32).toString('hex'),
transaction_vout: 0,
},
},
];

@@ -77,0 +94,0 @@

Sorry, the diff of this file is not supported yet

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