From fa2014af861c8bfa3b7d10fd2e1c69fb6edc8388 Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Sat, 21 Dec 2024 03:44:21 -0400 Subject: [PATCH] Update utils.py --- eth_portfolio/_db/utils.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/eth_portfolio/_db/utils.py b/eth_portfolio/_db/utils.py index 5c9372a3..95e3c5cd 100644 --- a/eth_portfolio/_db/utils.py +++ b/eth_portfolio/_db/utils.py @@ -294,9 +294,6 @@ async def get_transaction(sender: ChecksumAddress, nonce: int) -> Optional[Trans @a_sync(default="async", executor=_transaction_read_executor) @robust_db_session def __get_transaction_bytes_from_db(sender: ChecksumAddress, nonce: int) -> Optional[bytes]: - transactions = transactions_known_at_startup(chain.id, sender, sync=True) - if data := in transactions: - return transactions.pop(nonce) entity: entities.Transaction if entity := entities.Transaction.get(from_address=(chain.id, sender), nonce=nonce): return entity.raw