]> git.bitcoin.ninja Git - rust-lightning/commit
Refactor: move channel checks for HTLC adds into Channel
authorValentine Wallace <vwallace@protonmail.com>
Fri, 5 Jun 2020 19:27:30 +0000 (15:27 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Thu, 11 Jun 2020 13:05:30 +0000 (09:05 -0400)
commit283c94727ff9d291bb188be94891b8427a75096f
tree20a0b6c6a34f8652aaf5f15ce7a6b5343d4babeb
parentf08d61027023fe843cb47951f0b05e5f44fdb1ed
Refactor: move channel checks for HTLC adds into Channel

This also includes adding a closure that creates a new pending HTLC status
as a parameter for Channel's update_add_htlc. This will later be useful
when we add the check for fee spike buffer violations, which will also result
in changing an HTLC's pending status to failing.

Co-authored-by: Jeffrey Czyz <jkczyz@gmail.com>
Co-authored-by: Valentine Wallace <vwallace@protonmail.com>
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs