Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew K committed Mar 17, 2017
1 parent e812a19 commit 807cdac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 0 additions & 6 deletions joinmarket/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
import logging
import pprint
import random
import os
import json
import re

from decimal import Decimal

Expand Down Expand Up @@ -250,11 +247,8 @@ def pick_order(orders, n):


def choose_orders(db, cj_amount, n, chooseOrdersBy, ignored_makers=None):
log.debug("choose orders: cj_amount: "+str(cj_amount)+", n:"+str(n))
if ignored_makers is None:
ignored_makers = []
else:
log.debug("have ignored makers: "+str(len(ignored_makers)))
sqlorders = db.execute(
'SELECT * FROM orderbook WHERE minsize <= :cja AND :cja <= maxsize;',
{'cja': cj_amount}).fetchall()
Expand Down
3 changes: 2 additions & 1 deletion joinmarket/taker.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ def push(self):
log.debug('\n' + tx)
self.txid = btc.txhash(tx)
log.info('txid = ' + self.txid)

tx_broadcast = jm_single().config.get('POLICY', 'tx_broadcast')
if tx_broadcast == 'self':
pushed = jm_single().bc_interface.pushtx(tx)
Expand Down Expand Up @@ -653,7 +654,7 @@ def start_cj(self,
my_change_addr,
total_txfee,
finishcallback=None,
choose_orders_recover=None,
choose_orders_recover=None
):
self.cjtx = None
#needed during commitment preparation, self.cjtx.cj_amount
Expand Down

0 comments on commit 807cdac

Please sign in to comment.