rgb-cln/channeld
Rusty Russell f7ebbb2ec5 common: make sphinx code ignorant of payload format.
Now "raw_payload" is always the complete string (including realm or length
bytes at the front).

This has several effects:
1. We can receive an decrypt an onion which is grossly malformed.
2. We can still hand this to the htlc_accepted hook.
3. We then fail it unless the htlc_accepted accepts it manually.
4. The createonion API now takes the raw payload, and does not know
   anything about "style".

The only caveat is that the sphinx code needs to know the payload
length: we have a call for that, which simply tells it to copy the
entire onion (and treat us as the final node) if it's invalid.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-12-09 14:33:31 +01:00
..
test channeld: remove chainparams local parameter. 2019-11-20 20:41:53 +01:00
Makefile common: make sphinx code ignorant of payload format. 2019-12-09 14:33:31 +01:00
channel_wire.csv JSON-API: Allow `close` channel to specified address 2019-10-09 21:04:16 -05:00
channeld.c spec: update to experimental BOLTs with secret/total_amount. 2019-11-24 23:33:17 +00:00
channeld_htlc.h channeld: get current block height when an HTLC fails. 2019-08-29 09:01:48 +02:00
commit_tx.c channeld: remove chainparams local parameter. 2019-11-20 20:41:53 +01:00
commit_tx.h channeld: remove chainparams local parameter. 2019-11-20 20:41:53 +01:00
full_channel.c channeld: allow transient negative balance. 2019-11-22 23:31:54 +00:00
full_channel.h channeld: remove chainparams local parameter. 2019-11-20 20:41:53 +01:00
full_channel_error.h channeld: map htlc add/remove errors to names. 2018-02-19 02:56:51 +00:00