mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
fetch params from download.z.cash on demand to reduce app size (#2879)
add restore height to seed screen
This commit is contained in:
@@ -62,7 +62,9 @@ abstract class WalletKeysViewModelBase with Store {
|
||||
}
|
||||
|
||||
bool get isBitcoin => _wallet.type == WalletType.bitcoin;
|
||||
|
||||
|
||||
// this is incomplete, needs legacy seed toggle for XMR
|
||||
bool get shouldShowHeightBox => [WalletType.bitcoin, WalletType.zcash].contains(_wallet.type);
|
||||
final ObservableList<StandartListItem> items;
|
||||
|
||||
@observable
|
||||
@@ -318,6 +320,9 @@ abstract class WalletKeysViewModelBase with Store {
|
||||
if (_wallet.type == WalletType.wownero) {
|
||||
return wownero!.getRestoreHeight(_wallet)?.toString();
|
||||
}
|
||||
if (_wallet.type == WalletType.zcash) {
|
||||
return zcash!.getKeys(_wallet)["restoreHeight"]?.toString();
|
||||
}
|
||||
if (_restoreHeightByTransactions != 0)
|
||||
return getRoundedRestoreHeight(_restoreHeightByTransactions);
|
||||
if (_restoreHeight != 0) return _restoreHeight.toString();
|
||||
|
||||
Reference in New Issue
Block a user