Made Price feed update configurable (#751)

This commit is contained in:
Priyansh
2021-08-30 01:00:11 +05:30
committed by GitHub
parent fc28b06a0f
commit 2e8ecc7277
3 changed files with 6 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ interface IConfig {
BLOCK_WEIGHT_UNITS: number;
INITIAL_BLOCKS_AMOUNT: number;
MEMPOOL_BLOCKS_AMOUNT: number;
PRICE_FEED_UPDATE_INTERVAL: number;
};
ESPLORA: {
REST_API_URL: string;
@@ -75,6 +76,7 @@ const defaults: IConfig = {
'BLOCK_WEIGHT_UNITS': 4000000,
'INITIAL_BLOCKS_AMOUNT': 8,
'MEMPOOL_BLOCKS_AMOUNT': 8,
'PRICE_FEED_UPDATE_INTERVAL': 3600,
},
'ESPLORA': {
'REST_API_URL': 'http://127.0.0.1:3000',