mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
coins: use the chain's BIP173 name instead of a 'unit of account'
Updates the unit of account to be the chain_id, which is the BIP173 name of the chain that the coins moved on. Suggested-By: @rustyrussell
This commit is contained in:
committed by
Rusty Russell
parent
de065580f6
commit
8acbbca05d
@@ -31,7 +31,7 @@ def notify_coin_movement(plugin, coin_movement, **kwargs):
|
||||
plugin.log("{} coins debit: {}".format(idx, coin_movement['debit']))
|
||||
plugin.log("{} coins tag: {}".format(idx, coin_movement['tag']))
|
||||
plugin.log("{} coins timestamp: {}".format(idx, coin_movement['timestamp']))
|
||||
plugin.log("{} coins unit_of_account: {}".format(idx, coin_movement['unit_of_account']))
|
||||
plugin.log("{} coins coin_type: {}".format(idx, coin_movement['coin_type']))
|
||||
|
||||
for f in ['payment_hash', 'utxo_txid', 'vout', 'txid', 'part_id', 'blockheight']:
|
||||
if f in coin_movement:
|
||||
|
||||
Reference in New Issue
Block a user