add version to networking

This commit is contained in:
Matias Alejo Garcia 2014-05-14 21:02:01 -03:00
commit 2e99d9a8ea
12 changed files with 46 additions and 25 deletions

View file

@ -18,7 +18,7 @@ function Wallet(opts) {
//required params
['storage', 'network', 'blockchain',
'requiredCopayers', 'totalCopayers', 'spendUnconfirmed',
'publicKeyRing', 'txProposals', 'privateKey'
'publicKeyRing', 'txProposals', 'privateKey', 'version'
].forEach(function(k) {
if (typeof opts[k] === 'undefined') throw new Error('missing key:' + k);
self[k] = opts[k];
@ -146,6 +146,7 @@ Wallet.prototype._optsToObj = function() {
totalCopayers: this.totalCopayers,
name: this.name,
netKey: this.netKey,
version: this.version,
};
return obj;