Merge pull request #2883 from mempool/nymkappa/bugfix/empty-topology-folder
Don't try to import LN historical stats if no topology folder is set
This commit is contained in:
		
						commit
						a51b4e88d8
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user