From b623092afba4a04b8d028b68fe656694a6f8314f Mon Sep 17 00:00:00 2001 From: sqrrm Date: Fri, 12 Jul 2019 00:17:32 +0200 Subject: [PATCH] Don't dump blockchain data during initial parsing --- .../bisq/core/dao/node/explorer/ExportJsonFilesService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/bisq/core/dao/node/explorer/ExportJsonFilesService.java b/core/src/main/java/bisq/core/dao/node/explorer/ExportJsonFilesService.java index d747395653f..2d0632435c9 100644 --- a/core/src/main/java/bisq/core/dao/node/explorer/ExportJsonFilesService.java +++ b/core/src/main/java/bisq/core/dao/node/explorer/ExportJsonFilesService.java @@ -134,7 +134,8 @@ public void shutDown() { } 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 allJsonTxOutputs = new ArrayList<>();