]> git.bitcoin.ninja Git - rust-lightning/commit
Set HTLCPreviousHopData::blinded on intro node forward.
authorValentine Wallace <vwallace@protonmail.com>
Thu, 26 Oct 2023 22:18:28 +0000 (18:18 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 29 Nov 2023 22:18:39 +0000 (17:18 -0500)
commit21ae9fdd69bf1b72601c6c264a1c06c804909fb0
tree376aa81aae80d521b67ea4f98f15aab816f96495
parentae15ba84620f40ed5c80870d254d5eda341f1aba
Set HTLCPreviousHopData::blinded on intro node forward.

Useful so we know to fail back blinded HTLCs where we are the intro node with
the invalid_onion_blinding error per BOLT 4.

We don't set this field for blinded received HTLCs because we don't support
receiving to multi-hop blinded paths yet, and there's no point in setting it
for HTLCs received to 1-hop blinded paths because per the spec they should fail
back using an unblinded error code.
lightning/src/ln/channelmanager.rs