mirror of
https://codeberg.org/anoncontributorxmr/mysu.git
synced 2024-11-10 05:03:26 +01:00
Reduce new wallet restore height day offset from 4 days prior to 0
This commit is contained in:
parent
1247b67221
commit
5bbfd5f8b2
@ -122,7 +122,7 @@ public class WalletManager {
|
||||
final long oldHeight = wallet.getRestoreHeight();
|
||||
// Go back 4 days if we don't have a precise restore height
|
||||
Calendar restoreDate = Calendar.getInstance();
|
||||
restoreDate.add(Calendar.DAY_OF_MONTH, -4);
|
||||
restoreDate.add(Calendar.DAY_OF_MONTH, 0);
|
||||
final long restoreHeight =
|
||||
(height > -1) ? height : RestoreHeight.getInstance().getHeight(restoreDate.getTime());
|
||||
wallet.setRestoreHeight(restoreHeight);
|
||||
|
Loading…
Reference in New Issue
Block a user