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.
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 thecontinue
signal to core-lightning to pass the htlc to the next processor/handler in line.Resolves #541