core-lightning/tests
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
..
data pytest: test db upgrade. 2019-09-06 14:19:14 +02:00
plugins pytest: demonstrate failing rpc_command hook rewrite to plugin. 2019-12-07 21:26:31 +01:00
benchmark.py py-tests: rename 'announce' to 'wait_for_announce' 2018-12-08 15:15:55 -08:00
conftest.py pytest: Pass result to fixtures and keep directories of failed tests 2018-08-07 00:54:19 +00:00
db.py pytest: Have the DB provider search for the postgres binary 2019-09-22 02:03:43 +00:00
fixtures.py pyln: Allow users to override the LightningNode class 2019-11-12 21:23:55 +01:00
requirements.txt tests: update requirements 2019-12-02 14:41:13 +01:00
test_closing.py logging: remove spaces from subsystem names. 2019-11-18 04:50:22 +00:00
test_connection.py connectd: make failure message more descriptive 2019-12-04 15:32:31 -06:00
test_db.py lightningd: don't start if bitcoind is behind. 2019-11-21 05:18:29 +00:00
test_gossip.py Add basic tests 2019-12-03 23:35:18 +01:00
test_invoices.py pytest: Mark some tests as skippable that are too bitcoin-specific 2019-10-03 04:32:57 +00:00
test_misc.py pylightning - allow unicode symbols in the description to be passed as-is to the daemon 2019-11-29 21:38:17 +01:00
test_pay.py common: make sphinx code ignorant of payload format. 2019-12-09 14:33:31 +01:00
test_plugin.py lightningd: make sure rpc_command replacement is well-formed. 2019-12-07 21:26:31 +01:00
test_wallet.py hsm: Stabilize the hsm encryption and decryption tests 2019-11-29 15:06:39 +01:00
utils.py common/features: add payment_secret feature if EXPERIMENTAL. 2019-11-24 23:33:17 +00:00