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:55:00 +0000 (19:55 +0000)
commit2e12d6baa47dd08f8243075281672062b3196995
tree9095439302feea63ce9a2cfb50eb8e6e92c05ced
parentc57cd653556d079f4ba43fad773e9d9423c51f6f
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