From 3b9d6c4f8e6ce25a894f699130593966dd1ebc02 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 14 Dec 2018 16:29:46 -0300 Subject: [PATCH] Instantiate resolver before the request to hold the selected height --- lbrynet/extras/wallet/ledger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lbrynet/extras/wallet/ledger.py b/lbrynet/extras/wallet/ledger.py index 40bbe295e..6171678b0 100644 --- a/lbrynet/extras/wallet/ledger.py +++ b/lbrynet/extras/wallet/ledger.py @@ -65,8 +65,9 @@ class MainNetLedger(BaseLedger): except Exception as e: return {'error': str(e)} try: + resolver = self.resolver resolutions = await self.network.get_values_for_uris(self.headers.hash().decode(), *uris) - return await self.resolver._handle_resolutions(resolutions, uris, page, page_size) + return await resolver._handle_resolutions(resolutions, uris, page, page_size) except Exception as e: return {'error': str(e)}