Skip to content
This repository was archived by the owner on Sep 18, 2022. It is now read-only.

Commit 7f149c6

Browse files
update bitcoind.js
1 parent 141e0ad commit 7f149c6

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

logic/bitcoind.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,13 @@ async function getLocalSyncInfo() {
7171

7272
var blockCount = blockChainInfo.blocks;
7373
var headerCount = blockChainInfo.headers;
74-
var blockchainDifficulty = blockChainInfo.difficulty;
75-
var blockchainSize = blockChainInfo.sizeOnDisk;
7674

7775
const percentSynced = (Math.trunc(blockCount / headerCount * 10000) / 10000).toFixed(4); // eslint-disable-line no-magic-numbers, max-len
7876

7977
return {
8078
percent: percentSynced,
8179
currentBlock: blockCount,
82-
headerCount: headerCount, // eslint-disable-line object-shorthand,
83-
difficulty: blockchainDifficulty,
84-
size: blockchainSize
80+
headerCount: headerCount // eslint-disable-line object-shorthand,
8581
};
8682
}
8783

@@ -169,10 +165,9 @@ async function nodeStatusSummary() {
169165
const miningInfo = await bitcoindService.getMiningInfo();
170166

171167
return {
172-
blocks: blockchainInfo.result.blocks,
173168
difficulty: blockchainInfo.result.difficulty,
174169
size: blockchainInfo.result.sizeOnDisk,
175-
mempool: mempoolInfo.result,
170+
mempool: mempoolInfo.result.bytes,
176171
connections: networkInfo.result.connections,
177172
networkhashps: miningInfo.result.networkhashps
178173
}

0 commit comments

Comments
 (0)