fix: blockchain status
This commit is contained in:
parent
2819b8a519
commit
9411b2ea69
6 changed files with 25 additions and 8 deletions
|
|
@ -121,7 +121,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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue