Skip to content

Commit

Permalink
Fix TrialTestJMDaemonProto
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Gibson <[email protected]>
  • Loading branch information
kristapsk and AdamISZ committed Nov 28, 2023
1 parent 2502ee4 commit 09eea1b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/jmdaemon/test_daemon_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ def __init__(self, factory):
@JMRequestOffers.responder
def on_JM_REQUEST_OFFERS(self):
for o in t_orderbook:
#counterparty, oid, ordertype, minsize, maxsize,txfee, cjfee):
self.on_order_seen(o["counterparty"], o["oid"], o["ordertype"],
o["minsize"], o["maxsize"],
o["txfee"], o["cjfee"])
o["txfee"], o["cjfee"],
o["minimum_tx_fee_rate"])
return super().on_JM_REQUEST_OFFERS()

@JMInit.responder
Expand All @@ -228,7 +228,8 @@ def on_JM_INIT(self, bcsource, network, chan_configs, minmakers,
#note it must happen before callign set_msgchan for OrderbookWatch
self.mcc.on_order_seen = None
for c in [o['counterparty'] for o in t_orderbook]:
self.mcc.on_order_seen_trigger(mcs[0], c, "a", "b", "c", "d", "e", "f")
self.mcc.on_order_seen_trigger(mcs[0], c, "a", "b", "c", "d",
"e", "f", "g")
OrderbookWatch.set_msgchan(self, self.mcc)
#register taker-specific msgchan callbacks here
self.mcc.register_taker_callbacks(self.on_error, self.on_pubkey,
Expand Down

0 comments on commit 09eea1b

Please sign in to comment.