core-lightning/wallet/test
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
..
.gitignore wallet: move tests into test/ dir like other unit tests. 2017-12-13 22:46:10 +01:00
Makefile wallet: Look up the db_config for the given driver in db_open 2019-09-05 23:41:05 +00:00
run-db.c log: make formatting more consistent. 2019-11-18 04:50:22 +00:00
run-wallet.c common: make sphinx code ignorant of payload format. 2019-12-09 14:33:31 +01:00
test_utils.c Add enable-autotor-v2 config variable 2019-09-28 00:31:02 +02:00
test_utils.h fix: a pr2444 introduced valgrind complaint 2019-03-14 16:51:18 +01:00