Browse Source

allow non-zero starting mixdepth in tumbler

master
Adam Gibson 9 years ago
parent
commit
2424104c5a
No known key found for this signature in database
GPG Key ID: B3AE09F1E9A3197A
  1. 6
      jmclient/jmclient/schedule.py
  2. 2
      scripts/cli_options.py

6
jmclient/jmclient/schedule.py

@ -71,9 +71,9 @@ def get_tumble_schedule(options, destaddrs):
and zero as sweep (as before).
This is a modified version of tumbler.py/generate_tumbler_tx()
"""
if options['mixdepthsrc'] != 0:
raise NotImplementedError("Non-zero mixdepth source not supported; "
"restart the tumbler with --restart instead")
#if options['mixdepthsrc'] != 0:
# raise NotImplementedError("Non-zero mixdepth source not supported; "
# "restart the tumbler with --restart instead")
def lower_bounded_int(thelist, lowerbound):
return [int(l) if int(l) >= lowerbound else lowerbound for l in thelist]

2
scripts/cli_options.py

@ -25,7 +25,7 @@ def get_tumbler_parser():
type='int',
dest='mixdepthsrc',
help=
'Mixing depth to spend from. DEPRECATED, do not use.',
'Mixing depth to start tumble process from. default=0.',
default=0)
parser.add_option(
'-f',

Loading…
Cancel
Save