]> git.bitcoin.ninja Git - rust-lightning/commit
Lock pending inbound and outbound payments to before `channel_state`
authorViktor Tigerström <11711198+ViktorTigerstrom@users.noreply.github.com>
Wed, 12 Oct 2022 19:26:28 +0000 (21:26 +0200)
committerViktor Tigerström <11711198+ViktorTigerstrom@users.noreply.github.com>
Mon, 21 Nov 2022 20:49:21 +0000 (21:49 +0100)
commit6b12117782a06f759152741b9bf54802b50c7e58
tree6f6bd5e74782b51f29bc0eadeb11812d9fa25df0
parentf0c6dfbd80ea5a1166f711c919318a28e87e3c92
Lock pending inbound and outbound payments to before `channel_state`

As the `channel_state` lock will be removed, we prepare for that by
flipping the lock order for `pending_inbound_payments` and
`pending_outbound_payments` locks to before the `channel_state` lock.
lightning/src/ln/channelmanager.rs