Skip to content

Commit

Permalink
fix(ob-watcher): consistent orderbook.json response
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Aug 18, 2022
1 parent 4f66c72 commit 2b277b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/obwatch/ob-watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,9 @@ def create_orderbook_obj(self):
with self.taker.dblock:
rows = self.taker.db.execute('SELECT * FROM orderbook;').fetchall()
fbonds = self.taker.db.execute("SELECT * FROM fidelitybonds;").fetchall()
if not rows or not fbonds:
return []

fidelitybonds = []
if jm_single().bc_interface != None:
if fbonds and jm_single().bc_interface != None:
(fidelity_bond_data, fidelity_bond_values, bond_outpoint_conf_times) =\
get_fidelity_bond_data(self.taker)
fidelity_bond_values_dict = dict([(bond_data.maker_nick, bond_value)
Expand Down

0 comments on commit 2b277b0

Please sign in to comment.