ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.81k stars 888 forks source link

Plugin notification for when UTXOs are spent? #3207

Open niftynei opened 4 years ago

niftynei commented 4 years ago

I'm not 100% sure this is a great idea since in theory you can tail the blockchain yourself, but it might be nice for audit logs or plugins to have a notification trigger when a wallet UTXO get spent.

Another idea: a notification for when a channel is closed. We send one on channel open, it'd be symmetric to have it on close also.

jb55 commented 4 years ago

I do this by importing my clightning keys into bitcoin-core with clightning-dumpkeys and have walletnotify send me pgp encrypted emails on wallet activity. a plugin would probably be easier :sweat_smile:

nosedam commented 1 month ago

I'm not totally sure but isn't this notification case covered by https://docs.corelightning.org/docs/event-notifications#coin_movement

Maybe its now already implemented