mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-22 14:34:33 +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
@@ -549,7 +549,7 @@ i.e. only definitively resolved HTLCs or confirmed bitcoin transactions.
|
||||
"tag":"deposit",
|
||||
"blockheight":102, // (`channel_mvt` type only. may be null)
|
||||
"timestamp":1585948198,
|
||||
"unit_of_account":"btc"
|
||||
"coin_type":"bc"
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -610,7 +610,7 @@ before confirmation.
|
||||
The `timestamp` is seconds since Unix epoch of the node's machine time
|
||||
at the time lightningd broadcasts the notification.
|
||||
|
||||
`unit_of_account` is the 'currency' this coin movememnt is denominated in.
|
||||
`coin_type` is the BIP173 name for the coin which moved.
|
||||
|
||||
|
||||
## Hooks
|
||||
|
||||
Reference in New Issue
Block a user