Skip to content

Instantly share code, notes, and snippets.

@LNBIG-COM
LNBIG-COM / Stats_60_days_2023-09-23.md
Last active September 28, 2023 09:08
Statistics from LNBiG for 60 days up to 2023-09-23

Statistics from LNBiG for 60 days up to 2023-09-23

Statistics for the last 60 days by method described here

Alias K_Median Volume, BTC
speedupln.com 3.9293247 69.81979231
carlslight 0.5193301 18.43480067
[Tachyon]
@LNBIG-COM
LNBIG-COM / LNBiG_PGP_Key.txt
Last active September 22, 2023 17:30
PGP Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBF1oCSQBDACh2Ph+8vWEEUYU4e0wrMQ76XUYMNksaOTUSf5b0Pj3nqKvvt+r
fl4TvHtVsyrnwgmIsA7YDj4euwwRu3GG1Yj3e8qOm8xORPW214fp+DJ+Imt/z83z
tFvLr8ccCHzXwjtxtV2uthZVprcOqBx8E1aozXH1cn1mjUt0KG92iJNHaS/F0mra
ztLxgYIRS9aYcNCX6AFKCzhGYn2tMSSBupMgTAs4IOiU8BxkDBTJwq6CLll9sK6M
Qh7M9Zxq3gW+C/GNpApfec9eYgRDkObzLbdF9/LzVBdPjjoloqiDudeC3iFwVitd
JHFKy5+2PPwfG97P+pGSnXgPx7PMBdfOs8FTcWl/GKv+8AcEpYPdOxGkpohIeahU
kOjtVgHHzWsPzKRotHui/QYeou3mfDQeXEp+KcuiU0uXQKG0wpXdf6gSvbQ+/re7
cJp4j2Bu8QsihN2W0qe3hrgcq5MIcd5/xBvnEknwVt33+pz7QWcTqAZGJ1drzyGm
@LNBIG-COM
LNBIG-COM / lnbig_contacts.txt
Last active September 22, 2023 17:39
LNBIG / My contacts
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Contacts:
Telegram: https://t.me/LNBIG (Prefered contact!)
Email: [email protected] (This to be read rarely!)
Nostr: npub1ngumlqmus6xkrmvvee4yc7swh9h4uk7vpq4ddt7a2jtvkc22y0asrse3pv
PGP key: keyid CD284982316979CD3BC005F5E8AB6A7BAE4C2DA2
@LNBIG-COM
LNBIG-COM / rebalanceThroughOutside.js
Last active January 24, 2020 23:54
Rebalance script through outside network (not all modules but the core code). With russian-languiage comments
/*
* 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')
@LNBIG-COM
LNBIG-COM / rebalanceOfOurChannels.js
Created October 30, 2019 18:04
It's main code (w/o other submodules) for rebalancing of channels between LNBIG nodes (50% / 50%)
/*
* Copyright (c) 2019 LNBIG.com
* All rights reserved.
*/
// Должен быть первым - загружает переменные
require('dotenv').config()
let program = require('commander')
var PromisePool = require('es6-promise-pool')
var _ = require('lodash')
@LNBIG-COM
LNBIG-COM / openNewChannels-v2.js
Last active October 30, 2019 20:50
JavaScript BOA algorithm with debug info from previous autopilot script
/*
* Copyright (c) 2019 LNBIG.com
* All rights reserved.
*/
// To see algorithm here: https://gist.github.com/LNBIG-COM/dfe5d25bcea25612c559e02fd7698660
// In this file there are many debugging info now. And russian-language comments for me
// Должен быть первым - загружает переменные
require('dotenv').config()
@LNBIG-COM
LNBIG-COM / BOA.md
Last active September 14, 2020 09:48
Balance-Oriented Autopilot

Balance-Oriented Autopilot

Preamble

I want to bring to your attention the autopilot algorithm, built on simple principles, but which is effective (from my point of view). There is no need to qualify network nodes by types such as for example: Merchant, Router, Useless (i used Vampire term) and so on. The algorithm is very simple and here is its description.

Description

  1. With some nodes we already have channels. We need to decide when we need to open new channels and with what capacity. We get a list of already open channels and create counters (accumulators) (newCapacity) with zero initialization for each node with which we have a channel.
@LNBIG-COM
LNBIG-COM / openNewChannels.js
Last active June 5, 2019 09:59
My autopilot code (sorry for russian language comments) - as example
// Должен быть первым - загружает переменные
require('dotenv').config()
var program = require('commander')
var _ = require('lodash');
program
.version('0.1.0')
.option('-n, --dry-run', 'Проверочный запуск без действий')
.parse(process.argv);
@LNBIG-COM
LNBIG-COM / gist:f3f541b537bff2c483f855829e001b9f
Created April 3, 2019 14:43
2019-04-03 - Report about balanced channels (by fee changing)
Report about balanced channels (by fee changing)
================================================
Today is 2019-04-03
I wrote the script which changes a channel fees by certain scheme
Scheme described here:
https://twitter.com/lnbig_com/status/1109035044377645056
@LNBIG-COM
LNBIG-COM / gist:f2e2804fe5cf7a10184ae909392aa5f4
Last active March 25, 2019 19:47
The goal to get balanced channels can be reached through fees!
2019-03-22 i wrote the script which changes a channel fees by certain scheme
Scheme described here:
https://twitter.com/lnbig_com/status/1109035044377645056
After three days (present time is 2019-03-25 19:40 UTC) i have a following amount changings of balanced/unbalanced channels.
Below an each line is hourly amount of balanced/unbalanced channels:
Amount of balanced (30%-60%) ones: 148