소스 검색

call wallet init_db() function when cashier daemon start

ghassmo 5 년 전
부모
커밋
af8851aaa4
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/service/cashier.rs

+ 2 - 0
src/service/cashier.rs

@@ -73,6 +73,8 @@ impl CashierService {
 
 
         let (send, recv) = protocol.start().await?;
         let (send, recv) = protocol.start().await?;
 
 
+        self.wallet.init_db()?;
+
         let wallet = self.wallet.clone();
         let wallet = self.wallet.clone();
         let btc_client = self.btc_client.clone();
         let btc_client = self.btc_client.clone();