From 7d77beb29e65471432013c570f7d516e43ae83dc Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 21 Feb 2024 11:02:40 +0100 Subject: [PATCH] possible fix for missing address txs --- gsrest/db/cassandra.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gsrest/db/cassandra.py b/gsrest/db/cassandra.py index 8bf45f70..ae8a2c08 100644 --- a/gsrest/db/cassandra.py +++ b/gsrest/db/cassandra.py @@ -175,7 +175,8 @@ def merge_address_txs_subquery_results( if border_tx_id is None: border_tx_id = results[-1][tx_id_keys] continue - border_tx_id = min(border_tx_id, results[-1][tx_id_keys]) + order = min if ascending else max + border_tx_id = order(border_tx_id, results[-1][tx_id_keys]) # cut result_sets so that we only have the overlapping rows below/above # the border_tx_id