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

View File

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