mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 06:47:52 +01:00
Don't try to import LN historical stats if no topology folder is set
This commit is contained in:
parent
04006b8c98
commit
a975936d3c
1 changed files with 5 additions and 0 deletions
|
@ -310,6 +310,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[] = [];
|
||||
|
|
Loading…
Add table
Reference in a new issue