Browse Source

Merge JoinMarket-Org/joinmarket-clientserver#1040: use btc.amount_to_str for potentially earned

d7d2de3f7c use btc.amount_to_str for potentially earned (unofficial bisq contributor)

Pull request description:

  Example result:
  `[INFO]  potentially earned = 0.00000123 BTC (123 sat)`

ACKs for top commit:
  kristapsk:
    utACK d7d2de3f7c

Tree-SHA512: 618ff01a295ed4596329e5ab1cf7ddb07f78b6e05b176af608e7e9a1a898222ed2ceb001699700bf338ba8dc098cca96af37d13122379a27ae8ec11a3a1042fb
master
Kristaps Kaupe 4 years ago
parent
commit
1b5a814b3a
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 2
      jmclient/jmclient/maker.py

2
jmclient/jmclient/maker.py

@ -215,7 +215,7 @@ class Maker(object):
my_total_in = sum([va['value'] for va in utxos.values()])
real_cjfee = calc_cj_fee(ordertype, cjfee, amount)
expected_change_value = (my_total_in - amount - txfee + real_cjfee)
jlog.info('potentially earned = {}'.format(real_cjfee - txfee))
jlog.info('potentially earned = {}'.format(btc.amount_to_str(real_cjfee - txfee)))
jlog.info('mycjaddr, mychange = {}, {}'.format(cjaddr, changeaddr))
#The remaining checks are needed to ensure

Loading…
Cancel
Save