Blockstream / greenlight

Build apps using self-custodial lightning nodes in the cloud
https://blockstream.github.io/greenlight/getting-started/
MIT License
117 stars 27 forks source link

Make onion fields optional on lsp client hook handler #544

Open nepet opened 1 day ago

nepet commented 1 day ago

This PR makes all of the onion payload fields for the lsp clients htlc_accepted hook handler optional. We can not assume that all fields are set and we need to act to what we get. If the handler processes an onion payload that is missing essential fields it will stop executing and return the continue signal to core-lightning to pass the htlc to the next processor/handler in line.

Resolves #541