Merge pull request #2951 from sqrrm/dump-dao-data-fix

Don't dump blockchain data during initial parsing
This commit is contained in:
sqrrm 2019-07-12 08:53:39 +02:00 committed by GitHub
commit 64367b4b4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,7 +134,8 @@ public class ExportJsonFilesService implements DaoSetupService {
}
public void maybeExportToJson() {
if (dumpBlockchainData) {
if (dumpBlockchainData &&
daoStateService.isParseBlockChainComplete()) {
// We store the data we need once we write the data to disk (in the thread) locally.
// Access to daoStateService is single threaded, we must not access daoStateService from the thread.
List<JsonTxOutput> allJsonTxOutputs = new ArrayList<>();