Skip to content

Commit ce19941

Browse files
committed
Merge #1332: fix(ob-watcher): consistent orderbook.json response
2b277b0 fix(ob-watcher): consistent orderbook.json response (theborakompanioni)
2 parents 4f66c72 + 2b277b0 commit ce19941

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/obwatch/ob-watcher.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,9 @@ def create_orderbook_obj(self):
210210
with self.taker.dblock:
211211
rows = self.taker.db.execute('SELECT * FROM orderbook;').fetchall()
212212
fbonds = self.taker.db.execute("SELECT * FROM fidelitybonds;").fetchall()
213-
if not rows or not fbonds:
214-
return []
215213

216214
fidelitybonds = []
217-
if jm_single().bc_interface != None:
215+
if fbonds and jm_single().bc_interface != None:
218216
(fidelity_bond_data, fidelity_bond_values, bond_outpoint_conf_times) =\
219217
get_fidelity_bond_data(self.taker)
220218
fidelity_bond_values_dict = dict([(bond_data.maker_nick, bond_value)

0 commit comments

Comments
 (0)