From 0793acfe7f04aa9bfd66c95104bdb08c17f3e139 Mon Sep 17 00:00:00 2001 From: joswinter Date: Sun, 19 Jun 2016 15:58:15 +0200 Subject: [PATCH] Incorrect parameter type for MultiChainPayment The BitcoinAddress value is still incorrect. The BitcoinAddress value should be retrieved through Electrum (#38) --- Tribler/community/market/core/transaction_manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tribler/community/market/core/transaction_manager.py b/Tribler/community/market/core/transaction_manager.py index 1ecae27e8bb..a0d5b4124fd 100644 --- a/Tribler/community/market/core/transaction_manager.py +++ b/Tribler/community/market/core/transaction_manager.py @@ -1,6 +1,7 @@ import logging from payment import MultiChainPayment, BitcoinPayment +from bitcoin_address import BitcoinAddress from price import Price from quantity import Quantity from timeout import Timeout @@ -64,7 +65,8 @@ def create_from_start_transaction(self, start_transaction, price, quantity, time def create_multi_chain_payment(self, message_id, transaction): payment = transaction.next_payment() - multi_chain_payment = MultiChainPayment(message_id, transaction.transaction_id, '', payment[0], payment[1], + multi_chain_payment = MultiChainPayment(message_id, transaction.transaction_id, BitcoinAddress(''), payment[0], + payment[1], Timestamp.now()) transaction.add_payment(multi_chain_payment) self.transaction_repository.update(transaction)