From f5384ccc9816e6009d4986cb87155eec6bf43bf1 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 26 Nov 2016 20:02:24 +0900 Subject: [PATCH] Remove get_tx_hash Anything in the DB should be on the disk. Remove misleading comment. --- server/block_processor.py | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/server/block_processor.py b/server/block_processor.py index a1619cb..c9c86be 100644 --- a/server/block_processor.py +++ b/server/block_processor.py @@ -462,9 +462,6 @@ class BlockProcessor(server.db.DB): self.tx_counts.append(prior_tx_count + len(txs)) def advance_block(self, block, touched): - # We must update the FS cache before calling advance_txs() as - # the UTXO cache uses the FS cache via get_tx_hash() to - # resolve compressed key collisions header, tx_hashes, txs = self.coin.read_block(block) if self.tip != self.coin.header_prevhash(header): raise ChainReorg @@ -665,8 +662,9 @@ class BlockProcessor(server.db.DB): if len(candidates) > 1: tx_num, = unpack('