force set restore height

This commit is contained in:
Czarek Nakamoto 2024-08-26 07:27:06 +02:00
parent 38006b6380
commit ed07a3972a
2 changed files with 7 additions and 1 deletions

View file

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

View file

@ -132,6 +132,8 @@ void restoreWalletFromSeedSync(
wownero.Wallet_setCacheAttribute(wptr!, key: "cakewallet.passphrase", value: passphrase);
openedWalletsByPath[path] = wptr!;
store();
}
void restoreWalletFromKeysSync(