]> git.bitcoin.ninja Git - rust-lightning/commit
Decode onion fail outside of outbound_payments lock
authorValentine Wallace <vwallace@protonmail.com>
Tue, 24 Jan 2023 19:26:57 +0000 (14:26 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 25 Jan 2023 19:44:07 +0000 (14:44 -0500)
commit6351a99935e81320abefb4c7e51c05c5fc8a62df
tree4fea8c2e7e78bc82466ee843dad5e6c90c06ab2f
parentc0a22f717432cbf7f0c0cf60f3a247588617b7ae
Decode onion fail outside of outbound_payments lock

It's not ideal to do all this computation while the lock is held. We also want
to decode the failure *before* taking the lock, so we can store the failed scid
in the relevant outbound for retry in the next commit(s).
lightning/src/ln/outbound_payment.rs