mirror of
https://github.com/JoinMarket-Org/joinmarket-clientserver.git
synced 2026-08-15 12:50:57 +02:00
Previous to this commit, the jmbitcoin package was accessed via a file in jmclient `btc.py` which was originally added as an interface to allow the client to use a non-jmbitcoin package to provide the implementation; while this idea is useful, the way it was implemented was not, moreover it is not currently used and contained duplicated code that was unmanaged. Also, the original usage of this was only by the electrum plugin, which has currently been abandoned. This simplifies the code and avoids spurious error messages. Note that most of the changes are a result of pulling the logging function directly from the jmbase package instead of indirectly via this interface (which was unnecessary and not connected with jmbitcoin).
26 lines
743 B
Python
26 lines
743 B
Python
#! /usr/bin/env python
|
|
from __future__ import (absolute_import, division,
|
|
print_function, unicode_literals)
|
|
from builtins import * # noqa: F401
|
|
|
|
from jmbase import get_log
|
|
from jmclient import YieldGeneratorBasic, ygmain
|
|
|
|
"""THESE SETTINGS CAN SIMPLY BE EDITED BY HAND IN THIS FILE:
|
|
"""
|
|
txfee = 100
|
|
cjfee_a = 500
|
|
cjfee_r = '0.00002'
|
|
ordertype = 'swreloffer' #'swreloffer' or 'swabsoffer'
|
|
nickserv_password = ''
|
|
max_minsize = 100000
|
|
gaplimit = 6
|
|
|
|
jlog = get_log()
|
|
|
|
if __name__ == "__main__":
|
|
ygmain(YieldGeneratorBasic, txfee=txfee, cjfee_a=cjfee_a,
|
|
cjfee_r=cjfee_r, ordertype=ordertype,
|
|
nickserv_password=nickserv_password,
|
|
minsize=max_minsize, gaplimit=gaplimit)
|
|
print('done')
|