]> git.bitcoin.ninja Git - rust-lightning/commit
Move PendingHTLCStatus construction inside channel lock
authorValentine Wallace <vwallace@protonmail.com>
Tue, 16 May 2023 20:14:40 +0000 (16:14 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 20 Jun 2023 21:57:35 +0000 (17:57 -0400)
commita2a7fef4d73c7746d9040a49e3d88789882a15d6
treebad893caea612f947f191ae477d543091797e295
parentae9e96e2772d2aaa3d6fbd1d17b83bb44f5ae07a
Move PendingHTLCStatus construction inside channel lock

We need the channel lock for constructing a pending HTLC's status because we
need to know if the channel accepts underpaying HTLCs in upcoming commits.
lightning/src/ln/channelmanager.rs