From ef5b088032338c1c8645623d3060ba74b49a6d85 Mon Sep 17 00:00:00 2001 From: Mika Lindqvist Date: Sun, 13 Dec 2020 09:45:04 +0200 Subject: [PATCH] [Talleo] Discard block templates with 0 transactions starting from height 10000. --- lib/daemon.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/daemon.js b/lib/daemon.js index e30717a..7a875ab 100644 --- a/lib/daemon.js +++ b/lib/daemon.js @@ -73,6 +73,10 @@ function runInterval () { callback(null) return } + if (config.coin == 'talleo' && res.result.height >= 10000 && res.result.num_transactions == 0) { + callback(null) + return + } process.send({ type: 'BlockTemplate', block: res.result