From 25b3983deb1d2c76772610cedd7ff83b04edc159 Mon Sep 17 00:00:00 2001 From: Marcelo Salhab Brogliato Date: Fri, 20 Oct 2023 16:40:53 -0500 Subject: [PATCH] fix(mining): Wrong timestamp sent to _make_block_template --- hathor/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hathor/manager.py b/hathor/manager.py index 149adbf3a..5d0d1b38e 100644 --- a/hathor/manager.py +++ b/hathor/manager.py @@ -756,7 +756,7 @@ def make_block_template(self, parent_block_hash: VertexId, timestamp: Optional[i assert isinstance(parent_block, Block) parent_txs = self.generate_parent_txs(parent_block.timestamp + self._settings.MAX_DISTANCE_BETWEEN_BLOCKS) if timestamp is None: - current_timestamp = int(max(self.tx_storage.latest_timestamp, self.reactor.seconds())) + current_timestamp = int(self.reactor.seconds()) else: current_timestamp = timestamp return self._make_block_template(parent_block, parent_txs, current_timestamp)