forked from Qortal/qortal
Fixed issue causing bootstrap validation to be ignored before creation.
This commit is contained in:
parent
a78af8f248
commit
eb991c6026
@ -52,7 +52,8 @@ public class BootstrapResource {
|
|||||||
try {
|
try {
|
||||||
bootstrap.checkRepositoryState();
|
bootstrap.checkRepositoryState();
|
||||||
} catch (DataException e) {
|
} 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();
|
bootstrap.validateBlockchain();
|
||||||
return bootstrap.create();
|
return bootstrap.create();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user