Merge branch 'master' into nymkappa/bugfix/cleanup-logs

This commit is contained in:
softsimon
2023-01-05 00:46:21 +04:00
committed by GitHub
40 changed files with 1238 additions and 449 deletions

View File

@@ -309,6 +309,11 @@ class LightningStatsImporter {
* Import topology files LN historical data into the database
*/
async $importHistoricalLightningStats(): Promise<void> {
if (!config.LIGHTNING.TOPOLOGY_FOLDER) {
logger.info(`Lightning topology folder is not set. Not importing historical LN stats`);
return;
}
logger.debug('Run the historical importer');
try {
let fileList: string[] = [];