Reduce new wallet restore height day offset from 4 days prior to 0

This commit is contained in:
pokkst 2022-09-20 11:21:48 -05:00
parent 1247b67221
commit 5bbfd5f8b2
No known key found for this signature in database
GPG Key ID: 90C2ED85E67A50FF

View File

@ -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);