Skip to content

Commit

Permalink
Merge pull request #611 from m2049r/fix_heightfix
Browse files Browse the repository at this point in the history
reduce restore height some more for new wallets
  • Loading branch information
m2049r authored Jul 14, 2019
2 parents 6ad4235 + 317976b commit 7553d3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/m2049r/xmrwallet/LoginActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,9 @@ public boolean isLedger() {
@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);
Expand Down

0 comments on commit 7553d3c

Please sign in to comment.