mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-24 22:25:48 +00:00
Simplify getServerInfo response
This commit is contained in:
@@ -23,11 +23,11 @@ function isConnected() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getServerInfo(callback) {
|
function getServerInfo(callback) {
|
||||||
this.remote.requestServerInfo((error, info) => {
|
this.remote.requestServerInfo((error, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
callback(new common.errors.RippledNetworkError(error.message));
|
callback(new common.errors.RippledNetworkError(error.message));
|
||||||
} else {
|
} else {
|
||||||
callback(null, info);
|
callback(null, response.info);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"info": {
|
|
||||||
"build_version": "0.24.0-rc1",
|
"build_version": "0.24.0-rc1",
|
||||||
"complete_ledgers": "32570-6595042",
|
"complete_ledgers": "32570-6595042",
|
||||||
"hostid": "ARTS",
|
"hostid": "ARTS",
|
||||||
@@ -21,4 +20,3 @@
|
|||||||
},
|
},
|
||||||
"validation_quorum": 3
|
"validation_quorum": 3
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user