@@ -54,29 +54,6 @@ class ChannelTypesSpec extends TestKitBaseClass with AnyFunSuiteLike with Channe
5454 assert(! anchorOutputsChannel.paysDirectlyToWallet)
5555 }
5656
57- test(" pick channel features based on local and remote features" ) {
58- case class TestCase (localFeatures : Features , remoteFeatures : Features , expectedChannelFeatures : ChannelFeatures )
59- val testCases = Seq (
60- TestCase (Features .empty, Features .empty, ChannelFeatures ()),
61- TestCase (Features (StaticRemoteKey -> Optional ), Features .empty, ChannelFeatures ()),
62- TestCase (Features .empty, Features (StaticRemoteKey -> Optional ), ChannelFeatures ()),
63- TestCase (Features .empty, Features (StaticRemoteKey -> Mandatory ), ChannelFeatures ()),
64- TestCase (Features (StaticRemoteKey -> Optional , Wumbo -> Mandatory ), Features (Wumbo -> Mandatory ), ChannelFeatures (Wumbo )),
65- TestCase (Features (StaticRemoteKey -> Optional ), Features (StaticRemoteKey -> Optional ), ChannelFeatures (StaticRemoteKey )),
66- TestCase (Features (StaticRemoteKey -> Optional ), Features (StaticRemoteKey -> Mandatory ), ChannelFeatures (StaticRemoteKey )),
67- TestCase (Features (StaticRemoteKey -> Optional , Wumbo -> Optional ), Features (StaticRemoteKey -> Mandatory , Wumbo -> Mandatory ), ChannelFeatures (StaticRemoteKey , Wumbo )),
68- TestCase (Features (StaticRemoteKey -> Optional , AnchorOutputs -> Optional ), Features (StaticRemoteKey -> Optional ), ChannelFeatures (StaticRemoteKey )),
69- TestCase (Features (StaticRemoteKey -> Mandatory , AnchorOutputs -> Optional ), Features (StaticRemoteKey -> Optional , AnchorOutputs -> Optional ), ChannelFeatures (StaticRemoteKey , AnchorOutputs )),
70- TestCase (Features (OptionUpfrontShutdownScript -> Optional ), Features .empty, ChannelFeatures ()),
71- TestCase (Features (OptionUpfrontShutdownScript -> Optional ), Features (OptionUpfrontShutdownScript -> Optional ), ChannelFeatures (OptionUpfrontShutdownScript )),
72- TestCase (Features (StaticRemoteKey -> Optional , AnchorOutputs -> Optional , OptionUpfrontShutdownScript -> Optional ), Features (StaticRemoteKey -> Optional , AnchorOutputs -> Optional , OptionUpfrontShutdownScript -> Optional ), ChannelFeatures (StaticRemoteKey , AnchorOutputs , OptionUpfrontShutdownScript )),
73- )
74-
75- for (testCase <- testCases) {
76- assert(ChannelFeatures .pickChannelFeatures(testCase.localFeatures, testCase.remoteFeatures) === testCase.expectedChannelFeatures)
77- }
78- }
79-
8057 test(" pick channel type based on local and remote features" ) {
8158 case class TestCase (localFeatures : Features , remoteFeatures : Features , expectedChannelType : ChannelType )
8259 val testCases = Seq (
0 commit comments