Merge pull request #29 from blockworks-foundation/reduce_limit_on_transaction_list_by_account

Reduce limit on transaction list by account
This commit is contained in:
galactus 2023-12-15 20:30:28 +01:00 committed by GitHub
commit 08226e55ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -55,9 +55,9 @@ def find_transaction_by_sig(tx_sig: str):
# return (rows, is_limit_exceeded)
def query_transactions_by_address(account_key: str) -> (list, bool):
maprows = run_query(transaction_row_limit=501, filter_account_address=account_key)
maprows = run_query(transaction_row_limit=100, filter_account_address=account_key)
if len(maprows) == 501:
if len(maprows) == 100:
print("limit exceeded while searching for transactions by address")
return maprows, True