fix: blockchain status
This commit is contained in:
parent
2819b8a519
commit
9411b2ea69
6 changed files with 25 additions and 8 deletions
|
|
@ -219,7 +219,10 @@ function checkBlockchainStatus (cryptoCode) {
|
|||
}
|
||||
|
||||
return jsonRpc.fetchDigest(rpcConfig, 'get_info')
|
||||
.then(res => !!res.synchronized ? 'ready' : 'syncing')
|
||||
.then(res => {
|
||||
console.log('res XMR', res)
|
||||
return !!res.synchronized ? 'ready' : 'syncing'
|
||||
})
|
||||
} catch (err) {
|
||||
throw new Error('XMR daemon is currently not installed')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue