mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-23 07:38:45 +00:00
silent payment fixes [skip ci]
This commit is contained in:
parent
6edf0f8186
commit
126323584e
2 changed files with 6 additions and 4 deletions
cw_bitcoin/lib
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue