Merge pull request #1133 from chaotixkilla/fix-blockchain-installation

Remove plugin dependency from blockchain status checking
This commit is contained in:
Rafael Taranto 2022-03-01 12:11:00 +00:00 committed by GitHub
commit e6194e8d04
4 changed files with 23 additions and 27 deletions

View file

@ -196,10 +196,7 @@ function checkBlockchainStatus (cryptoCode) {
}
return jsonRpc.fetchDigest(rpcConfig, 'get_info')
.then(res => {
console.log('res XMR', res)
return !!res.synchronized ? 'ready' : 'syncing'
})
.then(res => !!res.synchronized ? 'ready' : 'syncing')
} catch (err) {
throw new Error('XMR daemon is currently not installed')
}