Browse Source

Show fidelity bond value in manual order picking

master
Kristaps Kaupe 4 years ago
parent
commit
0e80b2dee7
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 5
      scripts/sendpayment.py

5
scripts/sendpayment.py

@ -31,8 +31,9 @@ log = get_log()
def pick_order(orders, n): #pragma: no cover def pick_order(orders, n): #pragma: no cover
jmprint("Considered orders:", "info") jmprint("Considered orders:", "info")
for i, o in enumerate(orders): for i, o in enumerate(orders):
jmprint(" %2d. %20s, CJ fee: %6s, tx fee: %6d" % jmprint(" %2d. %20s, CJ fee: %6s, tx fee: %6d, FB value: %f" %
(i, o[0]['counterparty'], str(o[0]['cjfee']), o[0]['txfee']), "info") (i, o[0]['counterparty'], str(o[0]['cjfee']), o[0]['txfee'],
o[0]['fidelity_bond_value']), "info")
pickedOrderIndex = -1 pickedOrderIndex = -1
if i == 0: if i == 0:
jmprint("Only one possible pick, picking it.", "info") jmprint("Only one possible pick, picking it.", "info")

Loading…
Cancel
Save