mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-23 16:14:20 +01:00
summary: Add fees_collected info to output
This commit is contained in:
@@ -30,6 +30,7 @@ num_connected=2
|
|||||||
num_gossipers=1
|
num_gossipers=1
|
||||||
avail_out=0.27095103btc (USD $1009.16)
|
avail_out=0.27095103btc (USD $1009.16)
|
||||||
avail_in=2.05851379btc (USD $7666.93)
|
avail_in=2.05851379btc (USD $7666.93)
|
||||||
|
fees_collected=0.00000012341btc
|
||||||
channels_key=P=private O=offline
|
channels_key=P=private O=offline
|
||||||
channels= ├────────────╢ (O):02ac05912f89e43b88de3472e8c3003b
|
channels= ├────────────╢ (O):02ac05912f89e43b88de3472e8c3003b
|
||||||
├───────────╢ (O):02dd4cef0192611bc34cd1c3a0a7eb0f
|
├───────────╢ (O):02dd4cef0192611bc34cd1c3a0a7eb0f
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ def summary(plugin, exclude=''):
|
|||||||
|
|
||||||
reply['avail_out'] = avail_out.to_btc_str()
|
reply['avail_out'] = avail_out.to_btc_str()
|
||||||
reply['avail_in'] = avail_in.to_btc_str()
|
reply['avail_in'] = avail_in.to_btc_str()
|
||||||
|
reply['fees_collected'] = info['fees_collected_msat'].to_btc_str()
|
||||||
|
|
||||||
if plugin.fiat_per_btc > 0:
|
if plugin.fiat_per_btc > 0:
|
||||||
reply['utxo_amount'] += ' ({})'.format(to_fiatstr(utxo_amount))
|
reply['utxo_amount'] += ' ({})'.format(to_fiatstr(utxo_amount))
|
||||||
|
|||||||
Reference in New Issue
Block a user