silent payment fixes [skip ci]

This commit is contained in:
Matthew Fosse 2024-05-31 10:38:21 -07:00
parent 6edf0f8186
commit 126323584e
2 changed files with 6 additions and 4 deletions

View file

@ -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;

View file

@ -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);