Commit Graph

1374 Commits

Author SHA1 Message Date
softsimon
a5c4f8e2f3
Adding migration to force rescan of closed channels 2022-10-21 23:42:37 +04:00
nymkappa
27c39ef557
Only show active nodes is isp page 2022-10-21 20:09:20 +02:00
softsimon
601a559784
Adding MEMPOOL.ENABLED config to Docker 2022-10-21 21:08:48 +04:00
softsimon
0e0ac363cf
Updating unit test 2022-10-21 21:08:48 +04:00
softsimon
b31642e554
Disable mempool config
fixes #2090
2022-10-21 21:08:48 +04:00
Mononaut
022785a555
Fix ln close classification logic 2022-10-20 17:59:36 +00:00
wiz
76764936f9
Merge branch 'master' into nymkappa/bugfix/log-counter 2022-10-17 04:25:27 +09:00
Mononaut
f4df51dd21
API method for node fee histogram data 2022-10-15 00:57:34 +00:00
nymkappa
0a4c1c24af
Fixes #2592 2022-09-30 19:10:11 +02:00
wiz
cc79b2b2a2
Merge branch 'master' into nymkappa/bugfix/incorrect-log 2022-09-25 08:03:40 +09:00
nymkappa
1ead34d42d
Show tor+clearnet node series in chart 2022-09-22 15:23:50 +02:00
junderw
5d1c5b51dd
Fix: Add hash and reverse search order 2022-09-19 16:44:53 +09:00
junderw
19467de809
Backend: Add block height from timestamp endpoint 2022-09-18 22:30:09 +09:00
softsimon
a43f0454f9
Mempool node group page 2022-09-17 11:06:49 +02:00
junderw
bd4cf980bd
Spelling fix 2022-09-10 16:09:43 +09:00
junderw
9b1fc1e000
Fix response codes for various error states 2022-09-10 16:03:31 +09:00
Felipe Knorr Kuhn
90db8c15f2
Merge branch 'master' into junderw/psbt-complete-inputs 2022-09-09 21:23:14 -07:00
wiz
0e090f940a
Merge pull request #2367 from mempool/simon/eslint-triple-equals
Tooling: Eslint force triple equals
2022-09-09 19:20:03 +02:00
wiz
b30483572d
Merge branch 'master' into nymkappa/feature/cltv 2022-09-09 18:06:44 +02:00
nymkappa
faec398cf0
Log correct maxmind mysql updates - fix stats import processed files counter 2022-09-09 14:59:49 +02:00
nymkappa
dcfcac2cc6
Show summary stats and world map in isp and country node list page 2022-09-09 14:56:18 +02:00
softsimon
249a65bb57
Merge pull request #2518 from mempool/nymkappa/feature/only-scan-closed-chan-new-block
Only scan for closed channels when there is a new block
2022-09-08 17:44:10 +02:00
softsimon
f015b165ee
Merge pull request #2512 from mempool/nymkappa/feature/closed-channel-info
If a channel is closed, show closing date instead of last update
2022-09-08 15:49:39 +02:00
wiz
d0b4d1da4a
Merge branch 'master' into nymkappa/feature/node-world-map 2022-09-07 15:03:46 +02:00
wiz
11d6b372ba
Merge pull request #2096 from erikarvstedt/backend-packaging
Simplify packaging for backend
2022-09-07 15:01:18 +02:00
wiz
01588305fc
Merge branch 'master' into nymkappa/bugfix/node-list-location-label 2022-09-06 22:58:59 +02:00
nymkappa
367c06dca6
Show clearnet nodes on world map 2022-09-06 19:33:07 +02:00
nymkappa
eb18625802
Only scan for closed channels when there is a new block 2022-09-06 11:42:19 +02:00
junderw
f062132636
Feature: Add endpoint for PSBT nonWitnessUtxo inclusion 2022-09-05 23:13:45 +09:00
nymkappa
5086f132f8
If a channel is closed, show closing date instead of last update 2022-09-04 19:12:01 +02:00
nymkappa
a75262d79e
Only show active channels on world map 2022-09-04 09:35:31 +02:00
nymkappa
dac3a43c1b
When using clightning, use listchannels.delay as cltv_delta 2022-09-04 09:23:49 +02:00
Erik Arvstedt
34c8ad614a
backend: Rename build variable DOCKER_COMMIT_HASH -> MEMPOOL_COMMIT_HASH
This var is useful for all build methods, not only Docker.

This is an internal renaming that doesn't change the public Docker
backend image API.
2022-09-02 12:50:44 +02:00
Erik Arvstedt
be72c5109a
backend: Create npm script package
This script creates a directory `backend/package` which only contains the
files required by the backend at runtime:
- The contents of `dist`
- `node_modules` minus `typescript` and `@typescript-eslint`.
  These packages are build-only and are larger than the remaining whole package.

By using only `backend/package` in the Docker image,
the backend content size in the image is decreased by 70% to 31M.
This, along with the improved copying in the Dockerfile, reduces the
backend image size by 44% to 200M.
(Step `RUN chown -R 1000:1000 /backend ...` created a layer that effectively
duplicated the backend.)
2022-09-02 12:50:43 +02:00
Erik Arvstedt
d591f7c456
backend: Fetch package version at build time
Extract `fetch-version.ts` which is called at build time to create
file `dist/api/version.json`.
This file is read by `backend-info.ts` at runtime.

This also fixes handing over the Git commit hash to the backend app
in the Docker backend image, which was broken as of 2022-07-12.
(Reason: The commit hash was previously required at runtime, but was
only provided at build time.)
2022-09-02 12:50:43 +02:00
Erik Arvstedt
5683f639ed
backend: Read mtgox-weekly.json from dist 2022-09-02 11:10:47 +02:00
Erik Arvstedt
8f0fc3af57
backend: Add config file env var 2022-09-02 11:08:42 +02:00
nymkappa
ee23d1695d
Use shared component in node ranking list 2022-09-02 10:08:25 +02:00
Felipe Knorr Kuhn
1aad4f2926
Merge branch 'master' into simon/eslint-triple-equals 2022-09-01 22:51:07 -07:00
wiz
8a2925ab0c
Merge pull request #2474 from mempool/simon/search-results-greyed
Grey out inactive search results
2022-08-31 14:55:40 +02:00
wiz
38324575e8
Merge branch 'master' into simon/search-results-greyed 2022-08-31 14:45:04 +02:00
wiz
1a10acf8ce
Merge branch 'master' into nymkappa/bugfix/mysql-inject 2022-08-31 14:41:56 +02:00
wiz
78298d16d7
Merge branch 'master' into nymkappa/feature/closed-channels-sort 2022-08-31 14:22:25 +02:00
nymkappa
ff1aae853e
Save latest node channel update in node.updated_at field in db 2022-08-31 09:37:19 +02:00
nymkappa
08833b08a0
Fix possible mysql injectin in channels.api 2022-08-31 08:53:21 +02:00
nymkappa
434963e8a0
Sort closed channels by closing_date, updated_at 2022-08-31 07:44:18 +02:00
softsimon
c593ded864
Grey out inactive search results 2022-08-30 23:58:58 +02:00
nymkappa
c150129d74
CLN - Add brakets around ipv6 2022-08-30 20:31:04 +02:00
wiz
51d35ec7d2
Merge branch 'master' into nymkappa/bugfix/asn-mapping 2022-08-30 19:45:31 +02:00
wiz
d9320574d8
Merge branch 'master' into simon/da-api-handle-error 2022-08-30 19:35:57 +02:00
nymkappa
cd2ef20d5c
Harcode lunanode, FDCservers and cogent asn 2022-08-30 17:06:48 +02:00
wiz
af805f15c7
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
softsimon
89f93d23b6
Merge pull request #2445 from mempool/nymkappa/bugfix/dashboard-percentages
When there is no stats for the past 7 days, don't show % changes
2022-08-30 13:39:43 +02:00
nymkappa
aec6d57fc3
When there is no stats for the past 7 days, don't show % changes 2022-08-30 09:08:34 +02:00
nymkappa
1d571c284c
Fix wrong ASN for Lunanode ip ranges 2022-08-29 23:36:18 +02:00
wiz
1a5ee32565
Merge branch 'master' into nymkappa/bugfix/historical-node-decoding 2022-08-29 23:05:30 +02:00
nymkappa
0847e15d07
Update node sockets during historical import so we don't have to truncate 2022-08-29 09:01:07 +02:00
nymkappa
f25ec08f5e
Format historical node sockets with update topology outputs 2022-08-29 08:43:26 +02:00
wiz
6d027dd7ce
Merge pull request #2416 from mempool/nymkappa/feature/ln-logger-tag
Update <lightning> log tag to show the network if non mainnet
2022-08-28 17:06:46 +02:00
wiz
01e745e389
Merge branch 'master' into nymkappa/feature/ln-logger-tag 2022-08-28 16:46:05 +02:00
softsimon
9c09c00fab
Updated mempool debug log 2022-08-28 15:56:57 +02:00
wiz
1cd0796428
Merge branch 'master' into nymkappa/bugfix/disable-ln-import-testsignet 2022-08-28 14:24:05 +02:00
nymkappa
a65d54c549
Update <lightning> log tag to show the network if non mainnet 2022-08-28 08:37:25 +02:00
nymkappa
35de1d4d9a
Disable LN historical import if not mainnet 2022-08-28 08:24:29 +02:00
nymkappa
6b049f2c33
Manually delete some lightning_stats rows once the topology import is completed 2022-08-28 07:59:23 +02:00
nymkappa
7ba8a3da84
Hardcode some condition to invalidate imported topology files 2022-08-28 07:59:23 +02:00
softsimon
40dc476460
Fixes multiple bugs with outspends and channels
fixes #412
2022-08-27 16:01:08 +02:00
softsimon
936921781e
Fix for difficulty adjustment throwing error before in sync 2022-08-27 10:25:24 +02:00
softsimon
d051538c6a
Fix for broken SQL to load Lightning nodes on ISP page 2022-08-27 09:54:16 +02:00
wiz
738d1f8007
Merge branch 'master' into fix/difficulty-api 2022-08-27 09:35:53 +02:00
softsimon
ba7b65a978
Fetch capacity and channels from nodes table 2022-08-26 16:35:24 +04:00
softsimon
85c428be25
Store capacity and channels in nodes table 2022-08-26 02:31:14 +04:00
wiz
686cfb6d2f
Merge branch 'master' into simon/node-alias-search-numbers 2022-08-26 00:12:15 +09:00
wiz
a9e1ce42df
Merge branch 'master' into nymkappa/bugfix/useless-mysql-query-channel-tree 2022-08-25 23:32:18 +09:00
softsimon
b6bea12bca
Numbers not included in node alias search 2022-08-25 15:14:54 +04:00
wiz
00bd61e1d3
Merge branch 'master' into fix/difficulty-api 2022-08-24 20:01:52 +09:00
nymkappa
a151a90d2f
Import historical nodes 2022-08-24 12:12:16 +02:00
nymkappa
43cc9499b1
Check query input before running the mysql query 2022-08-24 08:35:02 +02:00
nymkappa
35512bef8d
Do not fetch node stats for channel tree graph 2022-08-23 22:47:18 +02:00
wiz
23fab65216
Merge branch 'master' into nymkappa/bugfix/db-deadlock 2022-08-24 00:08:17 +09:00
wiz
a30bb4e6c0
Merge branch 'master' into nymkappa/bugfix/handle-esplora-error 2022-08-23 23:08:13 +09:00
nymkappa
7d5ed66db1
Wrap esplora call into try/catch when scanning channel forensics 2022-08-23 15:53:15 +02:00
wiz
8c885e87d4
Merge branch 'master' into nymkappa/feature/channel-tree-map 2022-08-23 22:42:32 +09:00
wiz
4f009e0320
Merge branch 'master' into nymkappa/bugfix/db-deadlock 2022-08-23 22:36:07 +09:00
softsimon
2104570889
Tooling: Eslint force triple equals 2022-08-23 17:05:23 +04:00
wiz
f24d4124fb
Merge branch 'master' into nymkappa/bugfix/cannot-update-channel-list 2022-08-23 21:32:14 +09:00
nymkappa
08b04c3264
Create active channel tree map component 2022-08-23 11:26:00 +02:00
nymkappa
b3735328b7
Await mysql queries in order to avoid deadlock 2022-08-22 22:31:21 +02:00
nymkappa
73d2930230
Fix "cannot update channel list" error 2022-08-22 22:15:15 +02:00
nymkappa
bd1d9573d6
Reduce api size for channel world map in ln dashboard - added spinner - update cache warmer 2022-08-22 21:36:02 +02:00
wiz
0b3e8c3fef
Merge branch 'master' into nymkappa/feature/update-ranking-naming 2022-08-23 04:13:35 +09:00
nymkappa
0f6aec31fd
Update node ranking naming convention
Matches ln dashboard layout with mining dashboard
2022-08-22 16:55:54 +02:00
softsimon
63404edeec
Fix for closing missing closing reason in channels list 2022-08-22 18:18:17 +04:00
wiz
4727b4bade
Merge branch 'master' into simon/node-alias-fulltext-search 2022-08-21 22:29:18 +09:00
wiz
14bf256ab8
Merge branch 'master' into nymkappa/bugfix/missing-variable-ln 2022-08-21 22:18:09 +09:00
wiz
7c25fd61da
Merge branch 'master' into nymkappa/feature/stop-updating-closed-channels 2022-08-21 22:05:52 +09:00
wiz
9fd4adecb3
Merge branch 'master' into nymkappa/bugfix/isp-chart-ids 2022-08-21 21:12:31 +09:00
wiz
8c9ac01123
Merge branch 'master' into nymkappa/feature/improve-location 2022-08-21 18:51:06 +09:00
softsimon
de3e89ac33
Node alias fulltext search
fixes #2238
2022-08-20 22:10:25 +04:00
wiz
ea931da38b
Merge branch 'master' into nymkappa/bugfix/channel-list-pagination 2022-08-20 20:19:55 +09:00
wiz
406a65cfb6
Merge pull request #2335 from mempool/nymkappa/bugfix/most-connected-node-undefined
Fix undefined public_key
2022-08-20 20:18:30 +09:00
junderw
3a4982c5e6
Refactor Difficulty API logic 2022-08-20 13:02:22 +09:00
junderw
87c9f881c0
Refactor difficulty API logic 2022-08-20 11:24:48 +09:00
junderw
d700b5f145
Fix test setup 2022-08-20 09:53:02 +09:00
junderw
1bc2c18167
Fix tests 2022-08-20 09:53:02 +09:00
junderw
a00eb2736b
Refactor Difficulty Adjustment calc + unit test it 2022-08-20 09:53:02 +09:00
junderw
772765959b
Fix Difficulty API (REST) 2022-08-20 09:53:02 +09:00
nymkappa
2435d12181
Add missing lightning configuration variables where needed 2022-08-19 22:08:36 +02:00
nymkappa
5b9b717a93
Fix LN stats importer with new data "cleanupTopology" structure 2022-08-19 18:07:26 +02:00
nymkappa
48dcf01199
If a channel is closed, stop updating it 2022-08-19 16:43:37 +02:00
nymkappa
64c07cf2d2
Fix undefined public_key 2022-08-19 16:38:16 +02:00
nymkappa
e7d99e9653
Insert channels from historical data 2022-08-19 12:34:38 +02:00
nymkappa
1ef4485a26
Use timestamp instead of date in stats table 2022-08-19 12:09:58 +02:00
wiz
c9a8b91c0b
Merge branch 'master' into nymkappa/feature/import-json-topology 2022-08-19 18:54:03 +09:00
nymkappa
298edb6430
Reverted wrong fix in 2300 2022-08-19 08:55:45 +02:00
wiz
9fca8de52f
Merge pull request #2300 from slaninas/master
Fix difficulty adjustment
2022-08-19 05:46:14 +09:00
wiz
daf3e269f4
Merge branch 'master' into nymkappa/feature/node-ranking-page 2022-08-19 03:51:55 +09:00
wiz
d2240532c1
Merge pull request #2315 from mempool/nykappa/feature/node-ranking
Refactor top nodes widgets, create related top 100 nodes pages
2022-08-19 03:51:31 +09:00
junderw
5d22023d19
Fix times
Co-authored-by: slaninas <slaninas@pm.me>
2022-08-19 01:14:54 +09:00
nymkappa
0e3e62fee8
Fix missing isp ids on isp pie chart 2022-08-18 17:15:05 +02:00
nymkappa
e437f2125d
Create geolocation component to format geolocation data 2022-08-18 17:14:09 +02:00
nymkappa
0243769a02
Improve error logging in ln import 2022-08-18 11:14:34 +02:00
nymkappa
57e0980134
Import json topology 2022-08-18 11:06:20 +02:00
nymkappa
c37b4cadb1
Wrap LN importer into try/catch 2022-08-18 07:48:58 +02:00
nymkappa
9c8fd6431e
Create node rankings page with 3 different rankings 2022-08-17 21:20:11 +02:00
wiz
b1e8d0aab6
Merge branch 'master' into nymkappa/bugfix/stats-import 2022-08-18 00:35:48 +09:00
nymkappa
6421bc82f2
Create top 100 node per channel count component 2022-08-17 16:19:01 +02:00
nymkappa
2359e44b16
Create top 100 node per capacity component 2022-08-17 16:00:30 +02:00
nymkappa
7520e3beba
Refactor top nodes widgets 2022-08-17 12:53:26 +02:00
nymkappa
44cf47b86d
Fix node channel list pagination 2022-08-17 10:23:14 +02:00
nymkappa
8dc41257ce
Remove xml parser - Read only .topology file and assume json format 2022-08-16 21:47:52 +02:00
nymkappa
a71262f538
Assume topology file are in .json - trim log 2022-08-16 19:29:00 +02:00
nymkappa
264ce1222a
Remove "invalid data skipping fix" from stats importer 2022-08-16 19:00:08 +02:00
nymkappa
82f8bf6bb4
Refactor ISP pie chart to make it more consitent 2022-08-16 18:47:45 +02:00
dependabot[bot]
53bc616b1b
Bump bitcoinjs-lib from 6.0.1 to 6.0.2 in /backend
Bumps [bitcoinjs-lib](https://github.com/bitcoinjs/bitcoinjs-lib) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/bitcoinjs/bitcoinjs-lib/releases)
- [Changelog](https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bitcoinjs/bitcoinjs-lib/compare/v6.0.1...v6.0.2)

---
updated-dependencies:
- dependency-name: bitcoinjs-lib
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-13 11:05:43 +00:00
wiz
f855173b9b
Merge branch 'master' into knorrium/backend_unit_tests 2022-08-13 19:54:10 +09:00
nymkappa
ebb119aa90
Add 'websocket' type to nodes sockets 2022-08-13 11:01:46 +02:00
nymkappa
3e9543f0b6
Create and populate nodes_socket table 2022-08-13 11:01:46 +02:00
Felipe Knorr Kuhn
fad66c7266
Update tests to include the POOLS_JSON_TREE_URL and POOLS_JSON_URL fields 2022-08-12 22:53:37 -07:00
Felipe Knorr Kuhn
240394817f
Merge branch 'master' into knorrium/backend_unit_tests 2022-08-12 22:46:35 -07:00
Felipe Knorr Kuhn
d037ae2faf
Update config unit tests 2022-08-12 22:44:13 -07:00
Felipe Knorr Kuhn
53d1497ce8
Update backend config fixture to include automatic block reindexing 2022-08-12 22:44:05 -07:00
Felipe Knorr Kuhn
b7a8ac8343
Fix merge conflicts on package-lock 2022-08-12 22:37:15 -07:00
Felipe Knorr Kuhn
9a3929554b
Fix merge conflicts on gitignore 2022-08-12 22:35:50 -07:00
nymkappa
06453edc7c
Fix LN stats node per network count 2022-08-12 12:12:34 +02:00
nymkappa
7e356ef0a0
Fix recursive call in LN network updater 2022-08-11 16:51:09 +02:00
wiz
c85b6d53c5
Merge branch 'master' into nymkappa/bugfix/clightning-wrong-channel-id 2022-08-11 18:38:11 +09:00
nymkappa
1d71e26a12
Add ISP chart in the dashboard - Fix mobile layout - Start polishing 2022-08-11 10:19:13 +02:00
nymkappa
dc7231537f
Refactor channel id conversion utils 2022-08-10 16:58:29 +02:00
wiz
b0d4c9eac8
Merge branch 'master' into nymkappa/feature/channel-page-map 2022-08-10 23:10:44 +09:00
nymkappa
db41aed44b
Show channel on the map in channel page 2022-08-10 16:00:12 +02:00
wiz
8c21cc56d4
Merge branch 'master' into nymkappa/feature/config-pools-json 2022-08-10 22:40:04 +09:00
wiz
33cf69872b
Merge branch 'master' into nymkappa/bugfix/index-blocks-prices-often 2022-08-10 22:23:35 +09:00
nymkappa
48a0a6c7e3
Convert short_id to integer id with clightning backend before returning the graph 2022-08-10 15:09:34 +02:00
nymkappa
aed37afb3e
Add missing config in docker script and sample 2022-08-09 17:26:14 +02:00
nymkappa
a64cb4bbad
Make mining pools url configurable 2022-08-09 15:52:24 +02:00
nymkappa
9b974dfbd9
Add nodes.status db field to mark nodes as inactive if needed 2022-08-09 11:17:37 +02:00
nymkappa
61e512b8f7
Refactor the LN backend and add more logs 2022-08-09 11:12:05 +02:00
nymkappa
2a6f48d8c8
Handle core timeout during closed channel scan, using correct config variable 2022-08-09 11:07:13 +02:00
nymkappa
6a52725b63
Make sure we work with integer in the stats importer 2022-08-09 10:28:40 +02:00
nymkappa
abb078f7ee
Convert to short_id before fetching the funding tx 2022-08-09 09:21:31 +02:00
nymkappa
47363b477e
Refactor the LN backend and add more logs 2022-08-09 09:20:25 +02:00
wiz
c0e6b7af58
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
771d21e410
Merge branch 'master' into nymkappa/bugfix/missing-last-data-charts 2022-08-08 15:59:34 +09:00
wiz
78d1ef9b1c
Merge branch 'master' into nymkappa/bugfix/unique-lightning-stats 2022-08-08 15:40:46 +09:00
nymkappa
1d106a9851
Fix CLN channel short_id conversion 2022-08-08 07:50:50 +02:00
nymkappa
c01c610bb3
Don't insert stats in the future 2022-08-05 12:43:26 +02:00
nymkappa
5a50a0d973
Make sure lightning stats are not duplicated in db 2022-08-05 12:32:20 +02:00
wiz
f7cbe30a16
Merge branch 'master' into nymkappa/bugfix/missing-data-node-page 2022-08-05 07:55:11 +00:00
nymkappa
54669281de
Run node stats every 10 minutes, only keep the latest entry per day 2022-08-04 18:27:36 +02:00
nymkappa
d647edcae3
Re-applied missing fix from https://github.com/mempool/mempool/pull/2233 2022-08-04 17:50:49 +02:00
nymkappa
f6d6ea5d31
Gracefully attempt to reconnect to cln upon error 2022-08-04 13:05:15 +02:00
nymkappa
3c2e27f778
Fix node page and display real time data 2022-08-04 11:30:32 +02:00
nymkappa
99379d53bf
When LN backend crashed, catch the error and restart after 1 minute 2022-08-03 12:43:41 +02:00
nymkappa
6be2985b40
Fix daily LN stats crash 2022-08-03 12:13:55 +02:00
wiz
76600af698
Merge branch 'master' into nymkappa/bugfix/top-nodes-queries 2022-08-02 23:53:03 +00:00
wiz
215df5efed
Merge branch 'master' into nymkappa/feature/clightning 2022-08-02 22:57:25 +00:00
wiz
33f3b0006b
Move fast-xml-parser from devDeps to deps 2022-08-02 21:49:53 +02:00
nymkappa
a25af16f7c
Fetch funding tx for clightning channels 2022-08-02 18:34:20 +02:00
nymkappa
00cd3ee9bf
Don't run the ln network update if the graph is emtpy 2022-08-02 18:34:19 +02:00
nymkappa
80f1ee45b5
Rebased using the update lightning interfaces 2022-08-02 18:34:19 +02:00
nymkappa
eb90434c28
Delete historical generation code 2022-08-02 18:34:19 +02:00
nymkappa
a94403b3a1
Wrote some utility functions to convert clightning output to our db schema 2022-08-02 18:34:19 +02:00
nymkappa
3f83e517f0
Create CLightningClient class 2022-08-02 18:34:18 +02:00
nymkappa
82cef095fc
Rewrite queries to get top nodes by channels and capacity 2022-08-02 18:26:07 +02:00
nymkappa
b6ba3c5781
Ignore channels fee rate > 5000ppm or base fee > 5000 in stats 2022-08-02 18:15:34 +02:00
nymkappa
5b521cfc7c
Don't insert gapped gossip data upon restart 2022-08-02 17:56:46 +02:00
nymkappa
d7f2f4136c
Small cleanup 2022-08-02 16:00:40 +02:00
nymkappa
5d7e42195f
Reduce massive gaps in the imported historical LN data 2022-08-02 16:00:40 +02:00
nymkappa
7fdf95ad34
Remove buggy tx vout value fetching and improve performances 2022-08-02 16:00:40 +02:00
nymkappa
5287490894
Make sure to not count channels twice 2022-08-02 16:00:40 +02:00
nymkappa
b246c6f4c3
We don't need a synced node to import historical data 2022-08-02 16:00:39 +02:00
nymkappa
2daf94f65a
Re-use LN stats importer code to log daily LN stats 2022-08-02 16:00:39 +02:00
nymkappa
91ada9ce75
Integrate LN stats importer into the main process 2022-08-02 16:00:39 +02:00
nymkappa
4ea1e98547
Import LN historical statistics (network wide + per node) 2022-08-02 16:00:38 +02:00
nymkappa
4335ee8157
Set default values when pubkey, capacity and channels are missing from top nodes 2022-08-01 18:41:31 +02:00
wiz
3fd8af0c78
Merge branch 'master' into nymkappa/bugfix/node-null-link 2022-08-01 15:33:47 +00:00
nymkappa
f4670156a5
Fix missing pub key, capacity and channel count for node lists 2022-08-01 09:59:20 +02:00
Antoni Spaanderman
887fb13f34
use lnd rest api 2022-07-30 21:52:58 +02:00
nymkappa
98e5f78d5f
Convert nodes per network chart to stack style 2022-07-28 10:01:04 +02:00
wiz
d66cc8a213
Merge branch 'master' into feature/add-get-block-raw-route 2022-07-27 22:35:22 +00:00
wiz
a6663d7869
Merge pull request #2204 from mempool/nymkappa/bugfix/silence-ln-db-migration
Silence LN db migration is CONFIG.LIGHTNING.ENABLED = false
2022-07-27 22:35:02 +00:00
softsimon
b0fe879503
Update backend/src/api/bitcoin/bitcoin.routes.ts 2022-07-27 23:33:18 +02:00
nymkappa
f610699ef4
Remove useless notice message content 2022-07-27 23:01:57 +02:00
nymkappa
d2ece2993e
Silence LN db truncation messages is CONFIG.LIGHTNING.ENABLED = false 2022-07-27 22:53:09 +02:00
Leonardo Lima
a9248a5f13
feat: parse rpc full block from hex to binary representation 2022-07-27 17:12:33 -03:00
wiz
48496abbf4
Merge branch 'master' into nymkappa/bugfix/channels-update-status 2022-07-27 18:53:29 +00:00
wiz
88648da890
Merge pull request #2202 from mempool/nymkappa/bugfix/only-user-active-channel-for-stats
Ony consider channel stats = 1 for stats calculation
2022-07-27 18:53:18 +00:00
nymkappa
f57fa1286c
Don't mark closed channels as inactive 2022-07-27 17:24:31 +02:00
nymkappa
edfa0d6074
Don't set all channels to inactive when the updater runs 2022-07-27 17:21:24 +02:00
nymkappa
d6e9500bee
[LN stats] Ony consider channel stats = 1 for stats calculation 2022-07-27 16:19:47 +02:00
nymkappa
12eea0e4cc
[LN ISP chart] Adds toogle to order by nodes/capacity and show/hide Tor 2022-07-27 13:20:54 +02:00
wiz
ce9a4024b3
Merge branch 'master' into simon/new-eslint-rules 2022-07-26 23:15:52 +00:00
wiz
a49cb2d611
Merge branch 'master' into nymkappa/feature/order-by-date-not-by-id 2022-07-26 22:54:31 +00:00
nymkappa
68f288f69c
Order lightning_stats by added timestamp instead of id 2022-07-26 17:32:43 +02:00
nymkappa
6341839de4
[Node page] Add link to node list per country/isp in node page 2022-07-26 12:26:44 +02:00
softsimon
bc132e4337
A couple of new eslint rules 2022-07-26 02:38:23 +02:00
Leonardo Lima
46e63ca6cf
feat: add /block/:hash/raw api route 2022-07-25 17:08:42 -03:00
nymkappa
479f635754
[Node page] Update channels count when switching between open/closed 2022-07-24 11:51:05 +02:00
wiz
ad9e989598
Correct maxmind geoip-db GEOLITE2_ISP to GEOIP2_ISP 2022-07-23 23:53:28 +02:00
nymkappa
ffe22399d5
Integrate GeoIP2 ISP database 2022-07-23 23:33:13 +02:00
nymkappa
40f2b97075
Add channels map to the node page 2022-07-23 18:43:08 +02:00
Felipe Knorr Kuhn
2dc875bb33
Merge branch 'master' into nymkappa/bugfix/index-blocks-prices-often 2022-07-21 16:29:24 -07:00
wiz
181c13025d
Merge pull request #2109 from mempool/nymkappa/bugfix/block-audit-code-refactor
Block audit code refactor
2022-07-22 01:07:02 +02:00
wiz
7b3f5c378d
Merge pull request #2140 from mempool/simon/correct-gitignore-json-wildcard
Remove gitignore json wildcard
2022-07-22 01:05:37 +02:00
wiz
7bbfc7872b
Fix log msg in channels.api.ts
Co-authored-by: softsimon <softsimon@users.noreply.github.com>
2022-07-22 00:04:02 +02:00
nymkappa
c839abb479
Create world map of clearnet LN nodes and channels 2022-07-21 22:43:12 +02:00
Felipe Knorr Kuhn
f4bb927dbd
Merge branch 'master' into nymkappa/bugfix/index-blocks-prices-often 2022-07-20 20:59:27 -07:00
Felipe Knorr Kuhn
76b6d2a21b
Merge branch 'master' into nymkappa/bugfix/block-audit-code-refactor 2022-07-20 20:59:11 -07:00
softsimon
3e1e47c49a
Remove gitignore json wildcard 2022-07-20 18:29:19 +02:00
wiz
8c667a76a7
Merge pull request #2112 from mempool/nymkappa/bugfix/price-updater-incorrect-log
Ignore Kraken historical price without USD
2022-07-17 18:29:16 -05:00
nymkappa
681d9db900
Fix error 500 for Isle of Man nodes list 2022-07-18 01:11:20 +02:00
nymkappa
63ebace378
Add LN node per country graph 2022-07-17 23:48:57 +02:00
nymkappa
d7f0dc4c05
Fix naming convention "as" => "isp" 2022-07-17 23:29:40 +02:00
nymkappa
dbf60dd4d9
Nodes per ISP list component 2022-07-17 22:57:29 +02:00
nymkappa
93e93d44f4
Use country iso code in ln nodes per country page url 2022-07-17 09:53:02 +02:00
nymkappa
0902015264
Use correct country name in component title 2022-07-16 23:25:44 +02:00
nymkappa
376484a937
Nodes per country list component 2022-07-16 23:23:13 +02:00
nymkappa
fc5fd244d0
Get nodes per country list with /lightning/nodes/country/:country API 2022-07-16 23:22:53 +02:00
nymkappa
3edd6f23a5
Add capacity per AS 2022-07-16 11:32:48 +02:00
nymkappa
28cf0f71eb
Add nodes AS share chart and table component 2022-07-16 10:44:05 +02:00
nymkappa
2fd34cbd91
Get nodes count per AS by calling /lightning/nodes/asShare API 2022-07-16 09:34:45 +02:00
nymkappa
d6158060e7
Ignore Kraken historical price without USD 2022-07-16 09:27:07 +02:00
nymkappa
e0952a4c1d
Wait for the price updater to complete before saving blocks prices 2022-07-16 09:22:45 +02:00
nymkappa
2872d2e299
Refactor BlocksSummariesRepository::$saveSummary 2022-07-15 21:48:39 +02:00
nymkappa
1be7c953ea
Save current progress on the block audit page 2022-07-14 20:41:50 +02:00
softsimon
c6f33310e5
Merge pull request #2094 from mempool/nymkappa/debug/insert-once-channels-stats-init
Make sure we have initial channel stats to display after fresh run
2022-07-14 18:51:26 +02:00
nymkappa
681708ffa0
Re-add missing migration that was dropped during merge conflict 2022-07-13 07:56:17 +02:00
wiz
ee058deb74
Merge branch 'master' into nymkappa/feature/block-fee-usd-chart 2022-07-12 23:24:31 +02:00
nymkappa
6e09a1c96b
Show division and ASN number 2022-07-12 21:28:02 +02:00