From 853e2fcb8fda13d25235e8673559bd71a4dfabe9 Mon Sep 17 00:00:00 2001 From: softsimon Date: Mon, 19 Jul 2021 00:50:09 +0300 Subject: [PATCH] Minor fixes to difficulty adjustment api. --- backend/src/index.ts | 2 +- frontend/src/app/components/api-docs/api-docs.component.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 5381790ac..0685b5e61 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -153,6 +153,7 @@ class Server { this.app .get(config.MEMPOOL.API_URL_PREFIX + 'transaction-times', routes.getTransactionTimes) .get(config.MEMPOOL.API_URL_PREFIX + 'cpfp/:txId', routes.getCpfpInfo) + .get(config.MEMPOOL.API_URL_PREFIX + 'difficulty-adjustment', routes.getDifficultyChange) .get(config.MEMPOOL.API_URL_PREFIX + 'fees/recommended', routes.getRecommendedFees) .get(config.MEMPOOL.API_URL_PREFIX + 'fees/mempool-blocks', routes.getMempoolBlocks) .get(config.MEMPOOL.API_URL_PREFIX + 'backend-info', routes.getBackendInfo) @@ -248,7 +249,6 @@ class Server { .get(config.MEMPOOL.API_URL_PREFIX + 'address/:address/txs', routes.getAddressTransactions) .get(config.MEMPOOL.API_URL_PREFIX + 'address/:address/txs/chain/:txId', routes.getAddressTransactions) .get(config.MEMPOOL.API_URL_PREFIX + 'address-prefix/:prefix', routes.getAddressPrefix) - .get(config.MEMPOOL.API_URL_PREFIX + 'difficulty-adjustment', routes.getDifficultyChange) ; } } diff --git a/frontend/src/app/components/api-docs/api-docs.component.ts b/frontend/src/app/components/api-docs/api-docs.component.ts index 21ca2d2ae..2d0948084 100644 --- a/frontend/src/app/components/api-docs/api-docs.component.ts +++ b/frontend/src/app/components/api-docs/api-docs.component.ts @@ -1139,7 +1139,6 @@ responseSample: `{ estimatedRetargetDate: 1627400849.2000492, remainingBlocks: 1642, remainingTime: 997456.3840492539 - }`, },