rearrange static methods

This commit is contained in:
Ivan Socolsky 2015-10-19 12:32:29 -03:00
parent f5cb854b9a
commit 781f2c44b7
1 changed files with 9 additions and 6 deletions

View File

@ -52,12 +52,6 @@ function WalletService() {
this.notifyTicker = 0;
};
WalletService.getServiceVersion = function() {
if (!serviceVersion)
serviceVersion = 'bws-' + require('../package').version;
return serviceVersion;
};
// Time after which a Tx proposal can be erased by any copayer. in seconds
WalletService.DELETE_LOCKTIME = 24 * 3600;
@ -89,6 +83,15 @@ WalletService.FEE_LEVELS = [{
}];
/**
* Gets the current version of BWS
*/
WalletService.getServiceVersion = function() {
if (!serviceVersion)
serviceVersion = 'bws-' + require('../package').version;
return serviceVersion;
};
/**
* Initializes global settings for all instances.
* @param {Object} opts