Revamping configuration file.

fixes #141
This commit is contained in:
softsimon
2020-10-19 11:57:02 +07:00
parent 0abe62128e
commit 45efb604c1
17 changed files with 218 additions and 146 deletions

View File

@@ -1,11 +1,11 @@
const config = require('../../mempool-config.json');
import config from '../config';
import { MempoolBlock } from '../interfaces';
import projectedBlocks from './mempool-blocks';
class FeeApi {
constructor() { }
defaultFee = config.NETWORK === 'liquid' ? 0.1 : 1;
defaultFee = config.MEMPOOL.NETWORK === 'liquid' ? 0.1 : 1;
public getRecommendedFee() {
const pBlocks = projectedBlocks.getMempoolBlocks();