Don't dump blockchain data during initial parsing

This commit is contained in:
sqrrm 2019-07-12 00:17:32 +02:00
parent 3c1e236ed0
commit b623092afb
No known key found for this signature in database
GPG key ID: 45235F9EF87089EC

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