File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1037,7 +1037,7 @@ impl DefiniteDescriptorKey {
10371037 ///
10381038 /// Returns `None` if the key contains a wildcard
10391039 fn new ( key : DescriptorPublicKey ) -> Option < Self > {
1040- if key. has_wildcard ( ) {
1040+ if key. has_wildcard ( ) || key . is_multipath ( ) {
10411041 None
10421042 } else {
10431043 Some ( Self ( key) )
@@ -1071,7 +1071,7 @@ impl FromStr for DefiniteDescriptorKey {
10711071 fn from_str ( s : & str ) -> Result < Self , Self :: Err > {
10721072 let inner = DescriptorPublicKey :: from_str ( s) ?;
10731073 DefiniteDescriptorKey :: new ( inner) . ok_or ( DescriptorKeyParseError (
1074- "cannot parse key with a wilcard as a DerivedDescriptorKey" ,
1074+ "cannot parse multi-path keys or keys with a wilcard as a DerivedDescriptorKey" ,
10751075 ) )
10761076 }
10771077}
You can’t perform that action at this time.
0 commit comments