]> git.bitcoin.ninja Git - rust-lightning/commit
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:54:21 +0000 (19:54 +0000)
commita2a2374cccb34420838746a6e17607d2bbef3fa8
tree1e0dc9bb2268c5797fff85cdde4465b6183560e6
parent5df414c25b1b710bea5e48e5183a28751b374659
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