Implement option_upfront_shutdown_script user-side
authorAntoine Riard <ariard@student.42.fr>
Tue, 9 Jul 2019 18:44:17 +0000 (14:44 -0400)
committerAntoine Riard <ariard@student.42.fr>
Mon, 22 Jul 2019 21:03:28 +0000 (17:03 -0400)
commit4769b944de50f3819b4252353345009b1d810e90
tree2c7002d3b178ae43fd5e80e874182fae11a4a547
parent675cf4ac1d02b2b558a0e041d6cd4bebac0e5108
Implement option_upfront_shutdown_script user-side

We use user config to decide to commit to closing script
in open_channel/accept_channel messages. We don't check
that other peer supporting the option as including
script without other peer public support is borne by
the protocol. If user opt-out, following protocol and
due to the fact we always signal, we provide a zero-length
script
src/ln/channel.rs
src/util/config.rs