Improved block fetching performance.

This commit is contained in:
softsimon committed 2020-12-30 01:47:07 +07:00
1 parent 8713d97c94
commit 881444c3a2
3 files changed
+14 -16

No files matched your search

+2 -2
View File
@@ -77,7 +77,7 @@ class WebsocketHandler {
}
if (parsedMessage.action === 'init') {
const _blocks = blocks.getBlocks();
const _blocks = blocks.getBlocks().slice(-8);
if (!_blocks) {
return;
}
@@ -119,7 +119,7 @@ class WebsocketHandler {
getInitData(_blocks?: BlockExtended[]) {
if (!_blocks) {
_blocks = blocks.getBlocks();
_blocks = blocks.getBlocks().slice(-8);
}
return {
'mempoolInfo': memPool.getMempoolInfo(),