]> git.bitcoin.ninja Git - rust-lightning/commit
Don't modify path when advance_path_by_one errors
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 14 Jun 2024 14:04:47 +0000 (09:04 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 18 Jun 2024 14:26:28 +0000 (09:26 -0500)
commitefc4647c6556ff2a41ef89994708277dac80875a
treefd8a20dae4e5ba2da81dec95f176e644f2f2f0b5
parent3bf84204e3a4c6772d231fa3b85f90a79e5b4871
Don't modify path when advance_path_by_one errors

When using advance_path_by_one when we are the introduction node, any
error will result having the first hop of the input blinded path
removed. Instead, only remove the first hop on success. Otherwise, the
path will be invalid.
lightning/src/blinded_path/message.rs