Use new burningman accounting file from full accounting node

PR #6740 was a diff against master (instead against the release/v1.9.11
branch). The previous merge into the release branch corrupted the
acounting file.
This commit is contained in:
Alejandro García 2023-06-30 23:43:25 +03:00
parent da9caf56a2
commit 0c3e5a8c5e
No known key found for this signature in database
GPG key ID: F806F422E222AA02
2 changed files with 2 additions and 1 deletions

View file

@ -48,7 +48,7 @@ import lombok.extern.slf4j.Slf4j;
@Slf4j
@Singleton
public class BurningManAccountingStoreService extends StoreService<BurningManAccountingStore> {
private static final String FILE_NAME = "BurningManAccountingStore_v2";
private static final String FILE_NAME = "BurningManAccountingStore_v3";
@Inject
public BurningManAccountingStoreService(ResourceDataStoreService resourceDataStoreService,
@ -66,6 +66,7 @@ public class BurningManAccountingStoreService extends StoreService<BurningManAcc
try {
// Delete old BurningManAccountingStore file which was missing some data.
FileUtil.deleteFileIfExists(Path.of(absolutePathOfStorageDir, "BurningManAccountingStore").toFile());
FileUtil.deleteFileIfExists(Path.of(absolutePathOfStorageDir, "BurningManAccountingStore_v2").toFile());
} catch (IOException e) {
throw new RuntimeException(e);
}