diff --git a/backend/src/api/websocket-handler.ts b/backend/src/api/websocket-handler.ts index 400649b26..3b3ce881a 100644 --- a/backend/src/api/websocket-handler.ts +++ b/backend/src/api/websocket-handler.ts @@ -1,3 +1,5 @@ +const config = require('../../mempool-config.json'); + import * as WebSocket from 'ws'; import * as fs from 'fs'; import { Block, TransactionExtended, Statistic } from '../interfaces'; @@ -68,7 +70,7 @@ class WebsocketHandler { client.send(JSON.stringify({ 'mempoolInfo': memPool.getMempoolInfo(), 'vBytesPerSecond': memPool.getVBytesPerSecond(), - 'blocks': _blocks, + 'blocks': _blocks.slice(config.INITIAL_BLOCK_AMOUNT), 'conversions': fiatConversion.getTickers()['BTCUSD'], 'mempool-blocks': mempoolBlocks.getMempoolBlocks(), 'git-commit': this.latestGitCommitHash diff --git a/frontend/src/app/components/block/block.component.html b/frontend/src/app/components/block/block.component.html index 89b1769e6..be1d1f4d2 100644 --- a/frontend/src/app/components/block/block.component.html +++ b/frontend/src/app/components/block/block.component.html @@ -48,11 +48,11 @@