mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 06:25:57 +00:00
extract node name and version (so it displays just like in 2.6.0)
This commit is contained in:
parent
044759ef52
commit
9d261472f9
@ -216,7 +216,11 @@ class Engine {
|
|||||||
if (err) {
|
if (err) {
|
||||||
return cb({name: "Ethereum node (version unknown)", status: 'on'});
|
return cb({name: "Ethereum node (version unknown)", status: 'on'});
|
||||||
}
|
}
|
||||||
return cb({name: version, status: 'on'});
|
let nodeName = version.split("/")[0];
|
||||||
|
let versionNumber = version.split("/")[1].split("-")[0];
|
||||||
|
let name = nodeName + " " + versionNumber + " (Ethereum)";
|
||||||
|
|
||||||
|
return cb({name: name, status: 'on'});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user