Don't check for enode, don't fail if no enode (#4495) (#4861)

This commit is contained in:
Nicolas Gotchac 2017-03-10 19:40:47 +01:00 committed by Gav Wood
parent 45414e6cfe
commit e2069d2e29
2 changed files with 3 additions and 3 deletions

View File

@ -284,7 +284,7 @@ export default class Status {
this._api.parity.netChain(),
this._api.parity.netPort(),
this._api.parity.rpcSettings(),
this._api.parity.enode(),
this._api.parity.enode().then((enode) => enode).catch(() => '-'),
this._upgradeStore.checkUpgrade()
])
.then(([

View File

@ -326,7 +326,7 @@ export default class SecureApi extends Api {
* the node is actually ready even when the client
* is connected).
*
* We check that the `parity_enode` RPC calls
* We check that the `parity_netChain` RPC calls
* returns successfully
*/
_waitUntilNodeReady (_timeleft) {
@ -344,7 +344,7 @@ export default class SecureApi extends Api {
const start = Date.now();
return this
.parity.enode()
.parity.netChain()
.then(() => true)
.catch((error) => {
if (!error) {