|
|
@ -49,7 +49,11 @@ public class BootstrapResource { |
|
|
|
try (final Repository repository = RepositoryManager.getRepository()) { |
|
|
|
try (final Repository repository = RepositoryManager.getRepository()) { |
|
|
|
|
|
|
|
|
|
|
|
Bootstrap bootstrap = new Bootstrap(repository); |
|
|
|
Bootstrap bootstrap = new Bootstrap(repository); |
|
|
|
|
|
|
|
try { |
|
|
|
bootstrap.checkRepositoryState(); |
|
|
|
bootstrap.checkRepositoryState(); |
|
|
|
|
|
|
|
} catch (DataException e) { |
|
|
|
|
|
|
|
LOGGER.info("Not ready to create bootstrap: ", e.getMessage()); |
|
|
|
|
|
|
|
} |
|
|
|
bootstrap.validateBlockchain(); |
|
|
|
bootstrap.validateBlockchain(); |
|
|
|
return bootstrap.create(); |
|
|
|
return bootstrap.create(); |
|
|
|
|
|
|
|
|
|
|
|