From 03a643da5263b40eea7160b87710398e01fb2d01 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 6 Jul 2020 11:55:23 -0400 Subject: [PATCH] use block cache --- lbry/wallet/server/session.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbry/wallet/server/session.py b/lbry/wallet/server/session.py index 748060da2..8f3024665 100644 --- a/lbry/wallet/server/session.py +++ b/lbry/wallet/server/session.py @@ -1529,7 +1529,7 @@ class LBRYElectrumX(SessionBase): block_hash = tx_info.get('blockhash') if not block_hash: return raw_tx, {'block_height': -1} - merkle_height = (await self.daemon_request('deserialised_block', block_hash))['height'] + merkle_height = (await self.daemon.deserialised_block(block_hash))['height'] merkle = await self.transaction_merkle(tx_hash, merkle_height) return raw_tx, merkle @@ -1592,7 +1592,7 @@ class LBRYElectrumX(SessionBase): height = non_negative_integer(height) hex_hashes = await self.daemon_request('block_hex_hashes', height, 1) block_hash = hex_hashes[0] - block = await self.daemon_request('deserialised_block', block_hash) + block = await self.daemon.deserialised_block(block_hash) return block_hash, block['tx'] def _get_merkle_branch(self, tx_hashes, tx_pos):