Only return "initial block amount" on init, and treat high fees in empty blocks as overpaid.

This commit is contained in:
softsimon committed 2020-03-16 02:25:14 +07:00
1 parent e8a74ab8eb
commit 5cdb593a7d
2 files changed
+10 -3

No files matched your search

+1 -1
View File
@@ -70,7 +70,7 @@ class WebsocketHandler {
client.send(JSON.stringify({
'mempoolInfo': memPool.getMempoolInfo(),
'vBytesPerSecond': memPool.getVBytesPerSecond(),
'blocks': _blocks.slice(config.INITIAL_BLOCK_AMOUNT),
'blocks': _blocks.slice(Math.max(_blocks.length - config.INITIAL_BLOCK_AMOUNT, 0)),
'conversions': fiatConversion.getTickers()['BTCUSD'],
'mempool-blocks': mempoolBlocks.getMempoolBlocks(),
'git-commit': this.latestGitCommitHash