Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6bf74b9

Browse files
committedMar 4, 2016
Fix guid formatting in notifications
closes #262
1 parent d7d4d9a commit 6bf74b9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎market/contracts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def accept_receipt(self, notification_listener, blockchain, receipt_json=None):
693693
image_hash = unhexlify(self.contract["vendor_offer"]["listing"]["item"]["image_hashes"][0])
694694
else:
695695
image_hash = ""
696-
buyer_guid = self.contract["buyer_order"]["order"]["id"]["guid"]
696+
buyer_guid = unhexlify(self.contract["buyer_order"]["order"]["id"]["guid"])
697697
if "blockchain_id" in self.contract["buyer_order"]["order"]["id"]:
698698
handle = self.contract["buyer_order"]["order"]["id"]["blockchain_id"]
699699
else:

‎openbazaard.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from twisted.internet import reactor, task
3535
from twisted.python import log, logfile
3636
from txws import WebSocketFactory
37+
from threading import Thread
3738

3839

3940
def run(*args):
@@ -112,8 +113,9 @@ def on_bootstrap_complete(resp):
112113

113114
interface = "0.0.0.0" if ALLOWIP not in ("127.0.0.1", "0.0.0.0") else ALLOWIP
114115

115-
# websockets api
116116
authenticated_sessions = []
117+
ws_api = None
118+
# websockets api
117119
ws_api = WSFactory(mserver, kserver, only_ip=ALLOWIP)
118120
ws_factory = AuthenticatedWebSocketFactory(ws_api)
119121
ws_factory.authenticated_sessions = authenticated_sessions

0 commit comments

Comments
 (0)
This repository has been archived.