93 Commits

Author SHA1 Message Date
Mononaut
741c1812a9 handle batched channel opens. infer funding balances in both directions. 2022-11-30 18:24:00 +09:00
Mononaut
ebb52d5e6e break long-running forensics tasks 2022-11-30 18:24:00 +09:00
Mononaut
6162660d84 detect channels opened from change outputs 2022-11-30 18:24:00 +09:00
Mononaut
be86057ed2 detect links between channel close and open txs 2022-11-30 18:23:59 +09:00
Mononaut
ef3330ed9a reduce forensics throttle delay from 100ms to 20ms 2022-11-23 19:32:14 +09:00
softsimon
8fba182db6 Update backend/src/tasks/lightning/forensics.service.ts 2022-11-23 19:24:41 +09:00
Mononaut
38fea03f94 move long-running forensics scans to separate service, throttle backend calls 2022-11-23 10:38:24 +09:00
softsimon
3b9e3c33f6 Support Maxmind Lite
fixes #2553
2022-11-22 16:13:27 +09:00
Mononaut
b152582d44 Store & expose node extension TLV data in backend 2022-11-21 20:27:03 +09:00
Mononaut
369b6f55d3 Rescan unresolved LN channel force closes 2022-11-19 17:30:56 +09:00
Mononaut
0550332d93 Fix ln close classification logic 2022-10-20 17:59:36 +00:00
nymkappa
f0ded96c22 Log correct maxmind mysql updates - fix stats import processed files counter 2022-09-09 14:59:49 +02:00
nymkappa
bd677e9ba8 Only scan for closed channels when there is a new block 2022-09-06 11:42:19 +02:00
nymkappa
207a2eb9b6 Save latest node channel update in node.updated_at field in db 2022-08-31 09:37:19 +02:00
nymkappa
24251843dc Harcode lunanode, FDCservers and cogent asn 2022-08-30 17:06:48 +02:00
wiz
dfbab0a6a6 Merge pull request #2441 from mempool/nymkappa/feature/ip-check
Fix wrong ASN for Lunanode ip ranges
2022-08-30 15:53:19 +02:00
nymkappa
6fba330263 Fix wrong ASN for Lunanode ip ranges 2022-08-29 23:36:18 +02:00
wiz
cacc9d72f1 Merge branch 'master' into nymkappa/bugfix/historical-node-decoding 2022-08-29 23:05:30 +02:00
nymkappa
094ee66bc0 Update node sockets during historical import so we don't have to truncate 2022-08-29 09:01:07 +02:00
nymkappa
ed6e79d86e Format historical node sockets with update topology outputs 2022-08-29 08:43:26 +02:00
wiz
ac125464c7 Merge branch 'master' into nymkappa/bugfix/disable-ln-import-testsignet 2022-08-28 14:24:05 +02:00
nymkappa
5d35f7519f Disable LN historical import if not mainnet 2022-08-28 08:24:29 +02:00
nymkappa
c5159105d5 Manually delete some lightning_stats rows once the topology import is completed 2022-08-28 07:59:23 +02:00
nymkappa
b66a87e50c Hardcode some condition to invalidate imported topology files 2022-08-28 07:59:23 +02:00
softsimon
cf662ca070 Store capacity and channels in nodes table 2022-08-26 02:31:14 +04:00
nymkappa
0f258f25d7 Import historical nodes 2022-08-24 12:12:16 +02:00
wiz
8b2f0b5a6e Merge branch 'master' into nymkappa/bugfix/db-deadlock 2022-08-24 00:08:17 +09:00
wiz
6e7b037b28 Merge branch 'master' into nymkappa/bugfix/handle-esplora-error 2022-08-23 23:08:13 +09:00
nymkappa
45e71d4fb0 Wrap esplora call into try/catch when scanning channel forensics 2022-08-23 15:53:15 +02:00
wiz
91a0752db7 Merge branch 'master' into nymkappa/bugfix/db-deadlock 2022-08-23 22:36:07 +09:00
nymkappa
3b6b93e5f2 Await mysql queries in order to avoid deadlock 2022-08-22 22:31:21 +02:00
nymkappa
68fac0ebe9 Fix "cannot update channel list" error 2022-08-22 22:15:15 +02:00
wiz
96c4ef200e Merge branch 'master' into nymkappa/feature/stop-updating-closed-channels 2022-08-21 22:05:52 +09:00
nymkappa
eb87828fc0 Fix LN stats importer with new data "cleanupTopology" structure 2022-08-19 18:07:26 +02:00
nymkappa
addddca3b4 If a channel is closed, stop updating it 2022-08-19 16:43:37 +02:00
nymkappa
b9664e1c3e Insert channels from historical data 2022-08-19 12:34:38 +02:00
nymkappa
f6e1ee8017 Use timestamp instead of date in stats table 2022-08-19 12:09:58 +02:00
nymkappa
dcff15c219 Improve error logging in ln import 2022-08-18 11:14:34 +02:00
nymkappa
678bf009ea Import json topology 2022-08-18 11:06:20 +02:00
nymkappa
440683f994 Wrap LN importer into try/catch 2022-08-18 07:48:58 +02:00
nymkappa
51c3d8a5a3 Remove xml parser - Read only .topology file and assume json format 2022-08-16 21:47:52 +02:00
nymkappa
b71d90d749 Assume topology file are in .json - trim log 2022-08-16 19:29:00 +02:00
nymkappa
d61af09b74 Remove "invalid data skipping fix" from stats importer 2022-08-16 19:00:08 +02:00
nymkappa
34bd21aa8f Create and populate nodes_socket table 2022-08-13 11:01:46 +02:00
nymkappa
3e43a6750b Fix LN stats node per network count 2022-08-12 12:12:34 +02:00
nymkappa
6b8a7ef693 Fix recursive call in LN network updater 2022-08-11 16:51:09 +02:00
nymkappa
0576f35ede Add nodes.status db field to mark nodes as inactive if needed 2022-08-09 11:17:37 +02:00
nymkappa
e720f70235 Refactor the LN backend and add more logs 2022-08-09 11:12:05 +02:00
nymkappa
4036573a09 Handle core timeout during closed channel scan, using correct config variable 2022-08-09 11:07:13 +02:00
nymkappa
8a09a94453 Make sure we work with integer in the stats importer 2022-08-09 10:28:40 +02:00