File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ use bitcoin::secp256k1::PublicKey;
99use crate :: ln:: channelmanager;
1010use crate :: types:: features:: InitFeatures ;
1111use crate :: ln:: msgs:: DecodeError ;
12+ use crate :: util:: config:: UserConfig ;
1213use crate :: util:: ser:: { Readable , Writeable , Writer } ;
1314
1415use crate :: io;
@@ -128,7 +129,8 @@ impl TryFrom<ScriptBuf> for ShutdownScript {
128129 type Error = InvalidShutdownScript ;
129130
130131 fn try_from ( script : ScriptBuf ) -> Result < Self , Self :: Error > {
131- Self :: try_from ( ( script, & channelmanager:: provided_init_features ( & crate :: util:: config:: UserConfig :: default ( ) ) ) )
132+ let features = channelmanager:: provided_init_features ( & UserConfig :: default ( ) ) ;
133+ Self :: try_from ( ( script, & features) )
132134 }
133135}
134136
You can’t perform that action at this time.
0 commit comments