From ffa9e508e908e707e593f2b825db5943e9a8d170 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sun, 7 Apr 2019 21:51:42 -0400 Subject: [PATCH] block_processor passes height on to advance_txs --- torba/server/block_processor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torba/server/block_processor.py b/torba/server/block_processor.py index b575d9123..2501c606f 100644 --- a/torba/server/block_processor.py +++ b/torba/server/block_processor.py @@ -377,7 +377,7 @@ class BlockProcessor: for block in blocks: height += 1 - undo_info = self.advance_txs(block.transactions) + undo_info = self.advance_txs(block.transactions, height) if height >= min_height: self.undo_infos.append((undo_info, height)) self.db.write_raw_block(block.raw, height) @@ -387,7 +387,7 @@ class BlockProcessor: self.headers.extend(headers) self.tip = self.coin.header_hash(headers[-1]) - def advance_txs(self, txs): + def advance_txs(self, txs, height): self.tx_hashes.append(b''.join(tx_hash for tx, tx_hash in txs)) # Use local vars for speed in the loops