Skip to content

Commit

Permalink
Update address.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Dec 19, 2024
1 parent 02833e7 commit 44b4434
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eth_portfolio/_ledgers/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 44b4434

Please sign in to comment.