Disable LN historical import if not mainnet
This commit is contained in:
1 parent
2d07dea18f
commit
5d35f7519f
1 file changed
+4
@@ -19,6 +19,10 @@ class LightningStatsImporter {
|
||||
logger.info('Caching funding txs for currently existing channels');
|
||||
await fundingTxFetcher.$fetchChannelsFundingTxs(channels.map(channel => channel.short_id));
|
||||
|
||||
if (config.MEMPOOL.NETWORK !== 'mainnet' || config.DATABASE.ENABLED === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
await this.$importHistoricalLightningStats();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user