]> 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>
Tue, 9 Apr 2024 15:01:41 +0000 (15:01 +0000)
commitd429065d2d01594fc6f38e41028a29bad1fd7c73
treecc4e4dd4333d60bf3c0514844d26eabfc09a1c2c
parentf8b080028ad57d09c6f89e3e1999f42b90e44dbb
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