fix: blockchain status

This commit is contained in:
Sérgio Salgado 2022-01-24 15:56:43 +00:00
parent 2819b8a519
commit 9411b2ea69
6 changed files with 25 additions and 8 deletions

View file

@ -126,7 +126,7 @@ function supportsBatching (cryptoCode) {
function checkBlockchainStatus (cryptoCode) {
return checkCryptoCode(cryptoCode)
.then(() => fetch('getblockchaininfo'))
.then(res => !!res['initialblockdownload'] ? 'ready' : 'syncing')
.then(res => !!res['initialblockdownload'] ? 'syncing' : 'ready')
}
module.exports = {