Hack to make it possible to load the Coinbase transaction from Bitcoin Core.

This commit is contained in:
softsimon
2021-01-02 04:40:10 +07:00
parent 89b4de2484
commit a25125091d
4 changed files with 19 additions and 2 deletions

View File

@@ -119,6 +119,7 @@ class Server {
} else {
logger.debug(loggerMsg);
}
logger.debug(JSON.stringify(e));
setTimeout(this.runMainUpdateLoop.bind(this), 1000 * this.retryOnElectrsErrorAfterSeconds);
this.retryOnElectrsErrorAfterSeconds *= 2;
this.retryOnElectrsErrorAfterSeconds = Math.min(this.retryOnElectrsErrorAfterSeconds, 60);