162 Commits

Author SHA1 Message Date
nymkappa
bd677e9ba8 Only scan for closed channels when there is a new block 2022-09-06 11:42:19 +02:00
Erik Arvstedt
a4d54dec47 backend: Read mtgox-weekly.json from dist 2022-09-02 11:10:47 +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
wiz
4138d69c5e Merge branch 'master' into nymkappa/feature/config-pools-json 2022-08-10 22:40:04 +09:00
wiz
c909653ade Merge branch 'master' into nymkappa/bugfix/index-blocks-prices-often 2022-08-10 22:23:35 +09:00
nymkappa
6ba7d5c9ad Make mining pools url configurable 2022-08-09 15:52:24 +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
nymkappa
34f581e8eb Convert to short_id before fetching the funding tx 2022-08-09 09:21:31 +02:00
nymkappa
295f0dd8ff Refactor the LN backend and add more logs 2022-08-09 09:20:25 +02:00
wiz
9075651897 Merge pull request #2251 from mempool/nymkappa/bugfix/clightning-crash
Don't throw an exception when cln connection is down
2022-08-08 17:28:50 +09:00
wiz
4bc587a483 Merge branch 'master' into nymkappa/bugfix/missing-last-data-charts 2022-08-08 15:59:34 +09:00
wiz
23b42355f7 Merge branch 'master' into nymkappa/bugfix/unique-lightning-stats 2022-08-08 15:40:46 +09:00
nymkappa
e8c982f815 Fix CLN channel short_id conversion 2022-08-08 07:50:50 +02:00
nymkappa
b0b0beca22 Don't insert stats in the future 2022-08-05 12:43:26 +02:00
nymkappa
bd69cee118 Make sure lightning stats are not duplicated in db 2022-08-05 12:32:20 +02:00