mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-31 16:09:49 +00:00
force set restore height
This commit is contained in:
parent
38006b6380
commit
ed07a3972a
2 changed files with 7 additions and 1 deletions
|
@ -91,7 +91,7 @@ void restoreWalletFromSeedSync(
|
|||
required String passphrase,
|
||||
required String seed,
|
||||
int nettype = 0,
|
||||
int restoreHeight = 0}) {
|
||||
int restoreHeight = 0}) async {
|
||||
txhistory = null;
|
||||
final newWptr = monero.WalletManager_recoveryWallet(
|
||||
wmPtr,
|
||||
|
@ -111,9 +111,13 @@ void restoreWalletFromSeedSync(
|
|||
}
|
||||
wptr = newWptr;
|
||||
|
||||
setRefreshFromBlockHeight(height: restoreHeight);
|
||||
|
||||
monero.Wallet_setCacheAttribute(wptr!, key: "cakewallet.passphrase", value: passphrase);
|
||||
|
||||
openedWalletsByPath[path] = wptr!;
|
||||
|
||||
store();
|
||||
}
|
||||
|
||||
void restoreWalletFromKeysSync(
|
||||
|
|
|
@ -132,6 +132,8 @@ void restoreWalletFromSeedSync(
|
|||
wownero.Wallet_setCacheAttribute(wptr!, key: "cakewallet.passphrase", value: passphrase);
|
||||
|
||||
openedWalletsByPath[path] = wptr!;
|
||||
|
||||
store();
|
||||
}
|
||||
|
||||
void restoreWalletFromKeysSync(
|
||||
|
|
Loading…
Reference in a new issue