From 126323584e603b72128b333f98b91ff5d1e42545 Mon Sep 17 00:00:00 2001
From: Matthew Fosse <matt@fosse.co>
Date: Fri, 31 May 2024 10:38:21 -0700
Subject: [PATCH] silent payment fixes [skip ci]

---
 cw_bitcoin/lib/bitcoin_receive_page_option.dart | 2 ++
 cw_bitcoin/lib/litecoin_wallet.dart             | 8 ++++----
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/cw_bitcoin/lib/bitcoin_receive_page_option.dart b/cw_bitcoin/lib/bitcoin_receive_page_option.dart
index ef2ab2866..8e72bc7b0 100644
--- a/cw_bitcoin/lib/bitcoin_receive_page_option.dart
+++ b/cw_bitcoin/lib/bitcoin_receive_page_option.dart
@@ -45,6 +45,8 @@ class BitcoinReceivePageOption implements ReceivePageOption {
         return P2shAddressType.p2wpkhInP2sh;
       case BitcoinReceivePageOption.silent_payments:
         return SilentPaymentsAddresType.p2sp;
+      case BitcoinReceivePageOption.mweb:
+        return SegwitAddresType.mweb;
       case BitcoinReceivePageOption.p2wpkh:
       default:
         return SegwitAddresType.p2wpkh;
diff --git a/cw_bitcoin/lib/litecoin_wallet.dart b/cw_bitcoin/lib/litecoin_wallet.dart
index 2b670600e..d4adb1035 100644
--- a/cw_bitcoin/lib/litecoin_wallet.dart
+++ b/cw_bitcoin/lib/litecoin_wallet.dart
@@ -152,10 +152,10 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
       if (syncStatus is FailedSyncStatus) return;
       final height = await electrumClient.getCurrentBlockChainTip() ?? 0;
       final resp = await stub.status(StatusRequest());
-      print("stats:");
-      print(resp.mwebHeaderHeight);
-      print(resp.mwebUtxosHeight);
-      print(height);
+      // print("stats:");
+      // print(resp.mwebHeaderHeight);
+      // print(resp.mwebUtxosHeight);
+      // print(height);
       if (resp.blockHeaderHeight < height) {
         int h = resp.blockHeaderHeight;
         syncStatus = SyncingSyncStatus(height - h, h / height);