Fix onion messages of size BIG_PACKET_HOP_DATA_LEN
authorValentine Wallace <vwallace@protonmail.com>
Mon, 8 May 2023 18:23:56 +0000 (14:23 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Mon, 8 May 2023 19:02:42 +0000 (15:02 -0400)
commitf18661f6f6c51e67c4eac1443a50f4be72356386
tree8d3605a2c94f9523dab1028859fa9d4d18a59dac
parent408b12f0341e03db5ea61cdcdc8ed2be1af47076
Fix onion messages of size BIG_PACKET_HOP_DATA_LEN

This was previously broken and would result in an invalid HMAC error, because
we had a hardcoded assumption that OM hop data would always be of size 1300.
lightning/src/ln/onion_utils.rs
lightning/src/onion_message/functional_tests.rs
pending_changelog/big-om-error.txt [new file with mode: 0644]