Fix blinded path serialization in `Route`
authorMatt Corallo <git@bluematt.me>
Fri, 16 Feb 2024 18:41:54 +0000 (18:41 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 16 Feb 2024 19:53:28 +0000 (19:53 +0000)
commitde72542a6b8c2ab56d598b1ae96a98733574ffb3
tree364cd4790835285bfcb3326551352c525a03771c
parent4b81eb2c308e657b931bad58d863704e921b6c2a
Fix blinded path serialization in `Route`

`Route`'s blinded_path serialization logic writes a blinded path
`Option` per path hop, however on read we (correctly) only read one
blinded path `Option` per path. This causes serialization of
`Route`s with blinded paths to fail to round-trip.

Here we fix this by writing blinded paths per path.
lightning/src/routing/router.rs