config:
target: 'http://localhost:3000'
phases:
- duration: 60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2019 LNBIG.com | |
* All rights reserved. | |
*/ | |
const PromisePool = require('es6-promise-pool') | |
const util = require('util'); | |
const nodeStorage = require('../global/nodeStorage'); | |
const {Mutex} = require('await-semaphore') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sub = lnd.sendPayment(); | |
sub.on('error', err => { | |
console.log("ERR", err); | |
}) | |
sub.on('end', () => console.log("END")); | |
sub.on('status', status => console.log("STATUS", status)); | |
sub.on('data', data => { | |
console.log("PAYMENT", data); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Logger = use('Logger') | |
const bech32 = require('bech32') | |
const Hash = use('Hash') | |
const lnService = require('ln-service') | |
const NonceHashMap = {}; | |
const k1HashMap = {}; | |
async requestWithdrawal ({auth, response}) { | |
try{ |