make lru_cache a power of two, following py docs

This commit is contained in:
Victor Shyba 2019-04-19 19:32:38 -03:00 committed by Lex Berezhny
parent 55116763e9
commit ebc9ed01c5

View file

@ -51,7 +51,7 @@ class Resolver:
results = await asyncio.gather(*futs)
return dict(list(map(lambda result: list(result.items())[0], results)))
@lru_cache(200)
@lru_cache(256)
def _fetch_tx(self, txid):
async def __fetch_parse(txid):
return self.transaction_class(unhexlify(await self.network.get_transaction(txid)))