]> git.bitcoin.ninja Git - rust-lightning/commit
Provide peer local_features to handle_open_channel/accept_channel
authorAntoine Riard <ariard@student.42.fr>
Tue, 9 Jul 2019 18:38:30 +0000 (14:38 -0400)
committerAntoine Riard <ariard@student.42.fr>
Mon, 22 Jul 2019 17:13:01 +0000 (13:13 -0400)
commit0052b2c5c3017aec1a80b6476fad441b63a67a8c
treeb2a3c27124c5f4ee7daa1f53b95bfa348dbdf98f
parent8470e60415eceecf9abcb518130f08bb06b91640
Provide peer local_features to handle_open_channel/accept_channel

Peer may send us a shutdown_scriptpubkey in open_channel or
accept_channel messages. Before to enforce this policy on channel
closing, we want to be sure that our peer has opt-in to it.

Extend LocalFeatures new method visibilty from crate to public
for fuzz tests
fuzz/fuzz_targets/chanmon_fail_consistency.rs
src/ln/channel.rs
src/ln/channelmanager.rs
src/ln/functional_test_utils.rs
src/ln/functional_tests.rs
src/ln/msgs.rs
src/ln/peer_handler.rs
src/util/test_utils.rs