]> git.bitcoin.ninja Git - rust-lightning/commit
Add tests for responding to inbound channel reqs
authorViktor Tigerström <viktortigerstrom@hotmail.com>
Mon, 7 Feb 2022 23:54:41 +0000 (00:54 +0100)
committerViktor Tigerström <viktortigerstrom@hotmail.com>
Sun, 13 Feb 2022 20:15:35 +0000 (21:15 +0100)
commit1891b37b81879890c0549061df346501bc596b3b
treed306221b372fa0cdb245b2dabcf1d2c3afa4acf9
parent8dca0b47795db0eeee968d7a03ee0b1595484a52
Add tests for responding to inbound channel reqs

Add functional tests for manually responding to inbound channel requests.
Responding to inbound channel requests are required when the
`manually_accept_inbound_channels` config flag is set to true.

The tests cover the following cases:
* Accepting an inbound channel request
* Rejecting an inbound channel request
* FundingCreated message sent by the counterparty before accepting the
inbound channel request
* Attempting to accept an inbound channel request twice
* Attempting to accept an unkown inbound channel
lightning/src/ln/channel.rs
lightning/src/ln/functional_tests.rs