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 18:42:29 +0000 (18:42 +0000)
commit2ada7911b191f8761dde16b2c78eb5ba92bd4800
tree586205ec6d803407c17daca13e914726074a3869
parentf3067b84c676efd5d9b3122c884c4c764b919430
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