Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit afc9cd1

Browse files
committed
Fix bug unsubscribing from libbitcoin
1 parent 853ba90 commit afc9cd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

market/contracts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,6 +1087,7 @@ def save(self):
10871087
self.db.listings.add_listing(data)
10881088

10891089
def process_refund(self, refund_json, blockchain, notification_listener):
1090+
self.blockchain = blockchain
10901091
if "refund" in self.contract:
10911092
raise Exception("Refund already processed for this order")
10921093
self.contract["refund"] = refund_json["refund"]
@@ -1121,7 +1122,7 @@ def process_refund(self, refund_json, blockchain, notification_listener):
11211122
signatures.append(signature_obj)
11221123

11231124
tx.multisign(signatures, redeem_script)
1124-
tx.broadcast(blockchain)
1125+
tx.broadcast(self.blockchain)
11251126
self.db.transactions.add_transaction(tx.to_raw_tx())
11261127
self.blockchain.unsubscribe_address(
11271128
self.contract["buyer_order"]["order"]["payment"]["address"], self.on_tx_received)

0 commit comments

Comments
 (0)