REF: minor

This commit is contained in:
Overtorment
2020-03-11 16:01:35 +00:00
parent 6b67839414
commit f01c533899
5 changed files with 7 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ bitcoinclient.request('getblockchaininfo', false, function(err, info) {
process.exit(1);
}
} else {
console.error('bitcoind failure');
console.error('bitcoind failure:', err, info);
process.exit(2);
}
});
@@ -56,7 +56,7 @@ redis.info(function(err, info) {
const rateLimit = require('express-rate-limit');
const postLimiter = rateLimit({
windowMs: 30 * 60 * 1000,
max: 50,
max: 100,
});
router.post('/create', postLimiter, async function(req, res) {

View File

@@ -25,7 +25,7 @@ function updateLightning() {
lightningListChannels = response;
let channels = [];
for (let channel of lightningListChannels.channels) {
let divider = 524287;
let divider = 5242870;
let ascii_length1 = channel.local_balance / divider;
let ascii_length2 = channel.remote_balance / divider;
channel.ascii = '[';