Browse Source

account for unrecognized destination type

master
Adam Gibson 3 years ago
parent
commit
e281c14fa3
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  1. 5
      jmclient/jmclient/taker_utils.py

5
jmclient/jmclient/taker_utils.py

@ -117,6 +117,11 @@ def direct_send(wallet_service, amount, mixdepth, destination, answeryes=False,
# we don't recognize this type; best we can do is revert to default,
# even though it may be inaccurate:
change_type = txtype
if outtype is None:
# we don't recognize the destination script type,
# so set it as the same as the change (which will usually
# be the same as the spending wallet, but see above for custom)
outtype = change_type
outtypes = [change_type, outtype]
# not doing a sweep; we will have change.
# 8 inputs to be conservative; note we cannot account for the possibility

Loading…
Cancel
Save