chainqueue

Blockchain transaction queue control
Log | Files | Refs | LICENSE

commit f9e6e7aeec1b167a31e881931eebc59fab8841c5
parent 70cbbcc7deedc40efe443b429ffa3238d3931d57
Author: nolash <dev@holbrook.no>
Date:   Fri, 27 Aug 2021 14:38:58 +0200

Fix typo in chainqueue sql query count_tx

Diffstat:
Mchainqueue/sql/query.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chainqueue/sql/query.py b/chainqueue/sql/query.py @@ -489,8 +489,8 @@ def count_tx(chain_spec, sender=None, status=None, status_target=None, session=N if status_target == None: status_target = status q = q.filter(Otx.status.op('&')(status)==status_target) - if address != None: - q = q.filter(TxCache.sender==address) + if sender != None: + q = q.filter(TxCache.sender==sender) result = q.count() SessionBase.release_session(session) return result