From aa93b94b61e2f1c287acebd863e1827345c7f939 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 25 Mar 2019 22:27:52 -0400 Subject: [PATCH] fix unit tests --- torba/client/basedatabase.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/torba/client/basedatabase.py b/torba/client/basedatabase.py index d914ce9d6..d161c8120 100644 --- a/torba/client/basedatabase.py +++ b/torba/client/basedatabase.py @@ -445,14 +445,14 @@ class BaseDatabase(SQLiteMixin): if 'order_by' not in constraints: constraints['order_by'] = ["tx.height=0 DESC", "tx.height DESC", "tx.position DESC"] rows = await self.select_txos( - "raw, txo.position, chain, account", **constraints + "raw, tx.height, tx.position, tx.is_verified, txo.position, chain, account", **constraints ) txos = [] for row in rows: - tx = self.ledger.transaction_class(row[0]) - txo = tx.outputs[row[1]] - txo.is_change = row[2] == 1 - txo.is_my_account = row[3] == my_account + tx = self.ledger.transaction_class(row[0], height=row[1], position=row[2], is_verified=row[3]) + txo = tx.outputs[row[4]] + txo.is_change = row[5] == 1 + txo.is_my_account = row[6] == my_account txos.append(txo) return txos