mirror of
https://github.com/JoinMarket-Org/joinmarket-clientserver.git
synced 2026-08-16 13:01:17 +02:00
This refactors YieldGeneratorBasic a bit. In particular, we move things that custom algorithms will most likely want to change to separate functions. That way, it is easy to define the behaviour of inputs and outputs for the join without the need to duplicate the other, more general logic of create_my_orders and oid_to_order.
24 lines
738 B
Python
24 lines
738 B
Python
#! /usr/bin/env python
|
|
from __future__ import (absolute_import, division,
|
|
print_function, unicode_literals)
|
|
from builtins import * # noqa: F401
|
|
|
|
from jmbase import jmprint
|
|
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
|
|
|
|
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)
|
|
jmprint('done', "success")
|