Fix CI unit test circular dependency
This commit is contained in:
parent
512589dc79
commit
16b9ca6c40
@ -1,8 +1,10 @@
|
|||||||
import { MempoolBlock } from '../mempool.interfaces';
|
import { MempoolBlock } from '../mempool.interfaces';
|
||||||
import { Common } from './common';
|
import config from '../config';
|
||||||
import mempool from './mempool';
|
import mempool from './mempool';
|
||||||
import projectedBlocks from './mempool-blocks';
|
import projectedBlocks from './mempool-blocks';
|
||||||
|
|
||||||
|
const isLiquid = config.MEMPOOL.NETWORK === 'liquid' || config.MEMPOOL.NETWORK === 'liquidtestnet';
|
||||||
|
|
||||||
interface RecommendedFees {
|
interface RecommendedFees {
|
||||||
fastestFee: number,
|
fastestFee: number,
|
||||||
halfHourFee: number,
|
halfHourFee: number,
|
||||||
@ -14,8 +16,8 @@ interface RecommendedFees {
|
|||||||
class FeeApi {
|
class FeeApi {
|
||||||
constructor() { }
|
constructor() { }
|
||||||
|
|
||||||
defaultFee = Common.isLiquid() ? 0.1 : 1;
|
defaultFee = isLiquid ? 0.1 : 1;
|
||||||
minimumIncrement = Common.isLiquid() ? 0.1 : 1;
|
minimumIncrement = isLiquid ? 0.1 : 1;
|
||||||
|
|
||||||
public getRecommendedFee(): RecommendedFees {
|
public getRecommendedFee(): RecommendedFees {
|
||||||
const pBlocks = projectedBlocks.getMempoolBlocks();
|
const pBlocks = projectedBlocks.getMempoolBlocks();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user