소스 검색

feat: bolt12 ws (#1052)

thesimplekid 1 개월 전
부모
커밋
166b902833
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      crates/cdk-mintd/src/lib.rs

+ 5 - 1
crates/cdk-mintd/src/lib.rs

@@ -609,6 +609,9 @@ async fn configure_backend_for_unit(
                     Arc::clone(&backend),
                 )
                 .await?;
+
+            let nut17_supported = SupportedMethods::default_bolt12(unit.clone());
+            mint_builder = mint_builder.with_supported_websockets(nut17_supported);
         }
     }
 
@@ -630,7 +633,8 @@ async fn configure_backend_for_unit(
         feature = "lnbits",
         feature = "lnd",
         feature = "fakewallet",
-        feature = "grpc-processor"
+        feature = "grpc-processor",
+        feature = "ldk-node"
     ))]
     {
         let nut17_supported = SupportedMethods::default_bolt11(unit);