remove invariant check

This commit is contained in:
GroovieGermanikus 2023-12-18 13:00:28 +01:00
parent a6381f157d
commit 0856fcaf87
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 1 additions and 4 deletions

View File

@ -69,6 +69,7 @@ def find_transaction_details_by_sig(tx_sig: str):
# * in this case the accounts are show but without the infos like prio fee
# * accounts linked via amt have no slot relation and thus appear redundantly for all slots
# * see tx ACQLVWCGhLurkcPp8a2QfaK9rpoe3opcbWa1TBtijhbQ3X6rMYpDcUaa9usY4b4fwj5pgTWj85wew7WhCEyTHBN for example
# * is_write_locked and is_account_write_locked must be the same
accountinfos_per_slot = (
invert_by_slot(
postgres_connection.query(
@ -84,10 +85,6 @@ def find_transaction_details_by_sig(tx_sig: str):
""", args=[list(relevant_slots), transaction_id]))
)
for row in accountinfos_per_slot:
if row['is_write_locked'] is not None:
assert row['is_write_locked'] == row['is_account_write_locked']
write_lock_info = dict()
read_lock_info = dict()
for relevant_slot in relevant_slots: