From 317976b34aafb6cde6a1130ffbbda4572579ec57 Mon Sep 17 00:00:00 2001 From: m2049r Date: Sun, 14 Jul 2019 12:49:18 +0200 Subject: [PATCH] decrease restore height on new wallet --- app/src/main/java/com/m2049r/xmrwallet/LoginActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/m2049r/xmrwallet/LoginActivity.java b/app/src/main/java/com/m2049r/xmrwallet/LoginActivity.java index 662776c..2913ae1 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/LoginActivity.java +++ b/app/src/main/java/com/m2049r/xmrwallet/LoginActivity.java @@ -940,8 +940,9 @@ public class LoginActivity extends BaseActivity @Override public boolean createWallet(File aFile, String password) { NodeInfo currentNode = getNode(); + // get it from the connected node if we have one, and go back ca. 4 days final long restoreHeight = - (currentNode != null) ? currentNode.getHeight() - 20 : -1; + (currentNode != null) ? currentNode.getHeight() - 2000 : -1; Wallet newWallet = WalletManager.getInstance() .createWallet(aFile, password, MNEMONIC_LANGUAGE, restoreHeight); return checkAndCloseWallet(newWallet);