From 44b443419db1c1c73e27960e4d9ab84bf69543d2 Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Thu, 19 Dec 2024 03:19:35 -0400 Subject: [PATCH] Update address.py --- eth_portfolio/_ledgers/address.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eth_portfolio/_ledgers/address.py b/eth_portfolio/_ledgers/address.py index 4892af36..8814aac2 100644 --- a/eth_portfolio/_ledgers/address.py +++ b/eth_portfolio/_ledgers/address.py @@ -465,6 +465,7 @@ async def _load_new_objects(self, _: Block, end_block: Block) -> AsyncIterator[T self._ensure_workers(min(len_nonces, self._num_workers)) transactions = [] + exclude_zero = self.exclude_zero_value transaction: Optional[Transaction] for _ in tqdm(range(len_nonces), desc=f"Transactions {self.address}"): nonce, transaction = await self._ready.get() @@ -521,7 +522,7 @@ async def __worker_fn( while True: nonce = await queue_get() try: - put_ready(await load_transaction(address, nonce, load_prices)) + put_ready(await load_transaction(address, nonce, load_prices, exclude_zero)) except Exception as e: put_ready((nonce, e)) except Exception as e: