UNPKG

ln-service

Version:

Interaction helper for your Lightning Network daemon

20 lines (12 loc) 513 B
const {equal} = require('node:assert').strict; const test = require('node:test'); const {spawnLightningCluster} = require('ln-docker-daemons'); const {getChainFeeRate} = require('./../../'); // Getting the chain fee rate should return the fee rate estimate test(`Get chain fee rate`, async () => { const [{kill, lnd}] = (await spawnLightningCluster({})).nodes; const feeRate = await getChainFeeRate({lnd}); equal(feeRate.tokens_per_vbyte, 50, 'Fee rate is returned'); await kill({}); return; });