Merge pull request #963 from mempool/simon/liquid-handle-database-disabled

This commit is contained in:
wiz 2021-11-30 10:50:19 +00:00 committed by GitHub
commit 73f558db6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,7 @@ class Server {
if (this.wss) {
websocketHandler.setWebsocketServer(this.wss);
}
if (config.MEMPOOL.NETWORK === 'liquid') {
if (config.MEMPOOL.NETWORK === 'liquid' && config.DATABASE.ENABLED) {
blocks.setNewBlockCallback(async () => {
try {
await elementsParser.$parse();
@ -270,7 +270,7 @@ class Server {
;
}
if (config.MEMPOOL.NETWORK === 'liquid') {
if (config.MEMPOOL.NETWORK === 'liquid' && config.DATABASE.ENABLED) {
this.app
.get(config.MEMPOOL.API_URL_PREFIX + 'liquid/pegs/month', routes.$getElementsPegsByMonth)
;