@ -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();
});
@ -50,7 +50,7 @@ function WalletService() {
this.blockchainExplorerOpts = blockchainExplorerOpts;
this.messageBroker = messageBroker;
this.notifyTicker = 0;
this.version = Package.version;
this.serverVersion = Package.version;
};
@ -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);