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