Browse Source

add dryRun param

activeAddress
Ivan Socolsky 9 years ago
parent
commit
e346184339
  1. 5
      lib/server.js
  2. 2
      package.json
  3. 2
      test/integration/server.js

5
lib/server.js

@ -423,6 +423,11 @@ WalletService.prototype._addCopayerToWallet = function(wallet, opts, cb) {
if (err) return cb(err);
if (res) return cb(Errors.COPAYER_REGISTERED);
if (opts.dryRun) return cb(null, {
copayerId: null,
wallet: wallet
});
wallet.addCopayer(copayer);
self.storage.storeWalletAndUpdateCopayersLookup(wallet, function(err) {
if (err) return cb(err);

2
package.json

@ -2,7 +2,7 @@
"name": "bitcore-wallet-service",
"description": "A service for Mutisig HD Bitcoin Wallets",
"author": "BitPay Inc",
"version": "0.2.2",
"version": "0.2.3",
"keywords": [
"bitcoin",
"copay",

2
test/integration/server.js

@ -1078,7 +1078,7 @@ describe('Wallet service', function() {
});
});
it.only('should be able to get wallet info without actually joining', function(done) {
it('should be able to get wallet info without actually joining', function(done) {
var copayerOpts = helpers.getSignedCopayerOpts({
walletId: walletId,
name: 'me',

Loading…
Cancel
Save