Skip to content

Commit

Permalink
fix TestMakerClientProtocol failing with py3 (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
undeath committed Dec 9, 2018
1 parent 12705b5 commit 3ae5bff
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion jmclient/test/test_client_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class DummyMaker(Maker):
def __init__(self):
self.aborted = False
self.wallet = DummyWallet()
self.offerlist = self.create_my_orders()

def try_to_create_my_orders(self):
pass
Expand All @@ -110,7 +111,14 @@ def import_new_addresses(self, addr_list):
pass

def create_my_orders(self):
return []
return [{
'cjfee': '0',
'maxsize': 100000000,
'minsize': 75000,
'oid': 0,
'ordertype': 'swreloffer',
'txfee': 0
}]

def oid_to_order(self, cjorder, oid, amount):
# utxos, cj_addr, change_addr
Expand Down

0 comments on commit 3ae5bff

Please sign in to comment.