mirror of
https://codeberg.org/r4v3r23/mysu.git
synced 2024-11-09 23:50:02 +00:00
Reduce new wallet restore height day offset from 4 days prior to 0
This commit is contained in:
parent
1247b67221
commit
5bbfd5f8b2
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue