]> git.bitcoin.ninja Git - rust-lightning/commit - src/ln/channel.rs
Add various checking when handling open and accept
authorYuntai Kyong <yuntai.kyong@gmail.com>
Tue, 14 Aug 2018 16:12:40 +0000 (01:12 +0900)
committerMatt Corallo <git@bluematt.me>
Fri, 17 Aug 2018 17:18:28 +0000 (13:18 -0400)
commit0fece38b19e78c390916dfc44a9192c52573db98
treeb7ab28fd8cc4294373ba15b112d96e813862b116
parentada2154b40237d22edc72ab553ca4a4d42d4a2c1
Add various checking when handling open and accept

Add `derive_minimum_depth()` and `derive_maximum_minimum_depth()` and hide
CONF_TARGET constant behind these functions.

Replace `DisconnectPeer` error with `HandleError` with `ErrorAction::SendErrorMessage`
src/ln/channel.rs