short circuit adding annotations when get_transaction does not return anything
This commit is contained in:
parent
7f09405335
commit
d4f964ef8e
1 changed files with 3 additions and 0 deletions
|
@ -335,6 +335,9 @@ class BaseDatabase(SQLiteMixin):
|
||||||
**constraints
|
**constraints
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if not tx_rows:
|
||||||
|
return []
|
||||||
|
|
||||||
txids, txs = [], []
|
txids, txs = [], []
|
||||||
for row in tx_rows:
|
for row in tx_rows:
|
||||||
txids.append(row[0])
|
txids.append(row[0])
|
||||||
|
|
Loading…
Reference in a new issue