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
|
||||
)
|
||||
|
||||
if not tx_rows:
|
||||
return []
|
||||
|
||||
txids, txs = [], []
|
||||
for row in tx_rows:
|
||||
txids.append(row[0])
|
||||
|
|
Loading…
Reference in a new issue