From 83bcab9cd2e0723ff2a999aba9e2720c0b69b27f Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 9 Nov 2020 13:56:46 -0500 Subject: [PATCH] cleanup --- lbry/wallet/server/block_processor.py | 39 +++++++++------------------ 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/lbry/wallet/server/block_processor.py b/lbry/wallet/server/block_processor.py index 68c735265..72d72cef9 100644 --- a/lbry/wallet/server/block_processor.py +++ b/lbry/wallet/server/block_processor.py @@ -404,44 +404,36 @@ class BlockProcessor: self.tip = self.coin.header_hash(headers[-1]) def advance_txs(self, height, txs, header): - self.block_txs.append((b''.join(tx_hash for tx, tx_hash in txs), [tx for tx, _ in txs])) + self.block_txs.append((b''.join(tx_hash for tx, tx_hash in txs), [tx.raw for tx, _ in txs])) # Use local vars for speed in the loops undo_info = [] tx_num = self.tx_count - script_hashX = self.coin.hashX_from_script - s_pack = pack - put_utxo = self.utxo_cache.__setitem__ - spend_utxo = self.spend_utxo - undo_info_append = undo_info.append - update_touched = self.touched.update hashXs_by_tx = [] - append_hashXs = hashXs_by_tx.append for tx, tx_hash in txs: hashXs = [] append_hashX = hashXs.append - tx_numb = s_pack('