Browse Source

Fixed issue causing bootstrap validation to be ignored before creation.

v2.0-beta
CalDescent 3 years ago
parent
commit
eb991c6026
  1. 3
      src/main/java/org/qortal/api/resource/BootstrapResource.java

3
src/main/java/org/qortal/api/resource/BootstrapResource.java

@ -52,7 +52,8 @@ public class BootstrapResource {
try {
bootstrap.checkRepositoryState();
} catch (DataException e) {
LOGGER.info("Not ready to create bootstrap: ", e.getMessage());
LOGGER.info("Not ready to create bootstrap: {}", e.getMessage());
throw ApiExceptionFactory.INSTANCE.createCustomException(request, ApiError.REPOSITORY_ISSUE, e.getMessage());
}
bootstrap.validateBlockchain();
return bootstrap.create();

Loading…
Cancel
Save