Simplify getServerInfo response

This commit is contained in:
Chris Clark
2015-07-17 15:47:11 -07:00
parent d9eca203ed
commit f42dd69b53
2 changed files with 22 additions and 24 deletions

View File

@@ -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);
} }
}); });
} }

View File

@@ -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
} }
}