From: Matt Corallo Date: Fri, 17 Sep 2021 17:32:11 +0000 (+0000) Subject: Support de/ser of the new channel_type field in open_channel X-Git-Tag: v0.0.104~44^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=b7a8dd4a1d425059c332c87b6ca622bc77f9c9b1;p=rust-lightning Support de/ser of the new channel_type field in open_channel --- diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index c2e158627..3e2b05d08 100644 --- a/lightning/src/ln/channel.rs +++ b/lightning/src/ln/channel.rs @@ -4283,6 +4283,7 @@ impl Channel { Some(script) => script.clone().into_inner(), None => Builder::new().into_script(), }), + channel_type: None, } } diff --git a/lightning/src/ln/msgs.rs b/lightning/src/ln/msgs.rs index 122dd7737..87944ccae 100644 --- a/lightning/src/ln/msgs.rs +++ b/lightning/src/ln/msgs.rs @@ -30,7 +30,7 @@ use bitcoin::secp256k1; use bitcoin::blockdata::script::Script; use bitcoin::hash_types::{Txid, BlockHash}; -use ln::features::{ChannelFeatures, InitFeatures, NodeFeatures}; +use ln::features::{ChannelFeatures, ChannelTypeFeatures, InitFeatures, NodeFeatures}; use prelude::*; use core::{cmp, fmt}; @@ -148,6 +148,10 @@ pub struct OpenChannel { pub channel_flags: u8, /// Optionally, a request to pre-set the to-sender output's scriptPubkey for when we collaboratively close pub shutdown_scriptpubkey: OptionalField