diff --git a/lib/expressapp.js b/lib/expressapp.js index 0bb8536..02533f6 100644 --- a/lib/expressapp.js +++ b/lib/expressapp.js @@ -417,7 +417,7 @@ ExpressApp.prototype.start = function(opts, cb) { router.get('/v1/version/', function(req, res) { var server = getServer(req, res); - res.json( { version: server.version } ); + res.json( { version: server.serverVersion } ); res.end(); }); diff --git a/lib/server.js b/lib/server.js index 92397ba..3af9963 100644 --- a/lib/server.js +++ b/lib/server.js @@ -50,7 +50,7 @@ function WalletService() { this.blockchainExplorerOpts = blockchainExplorerOpts; this.messageBroker = messageBroker; this.notifyTicker = 0; - this.version = Package.version; + this.serverVersion = Package.version; }; diff --git a/test/integration/server.js b/test/integration/server.js index 096cc6e..da4c959 100644 --- a/test/integration/server.js +++ b/test/integration/server.js @@ -756,6 +756,7 @@ describe('Wallet service', function() { clientVersion: 'bwc-0.0.1', }); server.clientVersion.should.equal('bwc-0.0.1'); + should.exist(server.serverVersion); }); });