Bump bwc version 2.3.1 (#4184)
* bump new bwc version 2.3.1 * check incorrect derivation
This commit is contained in:
parent
775ff4684f
commit
f8705a2f72
2 changed files with 8 additions and 3 deletions
|
|
@ -42,7 +42,7 @@
|
|||
"url": "https://github.com/bitpay/copay/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"bitcore-wallet-client": "2.3.0",
|
||||
"bitcore-wallet-client": "2.3.1",
|
||||
"express": "^4.11.2",
|
||||
"fs": "0.0.2",
|
||||
"grunt": "^0.4.5",
|
||||
|
|
|
|||
|
|
@ -75,6 +75,11 @@ angular.module('copayApp.services')
|
|||
|
||||
var client = bwcService.getClient(JSON.stringify(credentials));
|
||||
root.walletClients[credentials.walletId] = client;
|
||||
if(client.incorrectDerivation) {
|
||||
storageService.clearLastAddress(credentials.walletId, function(err) {
|
||||
if (err) $log.warn(err);
|
||||
});
|
||||
}
|
||||
client.removeAllListeners();
|
||||
client.on('report', function(n) {
|
||||
$log.info('BWC Report:'+ n);
|
||||
|
|
@ -678,10 +683,10 @@ angular.module('copayApp.services')
|
|||
$log.debug('Wallet is encrypted');
|
||||
$rootScope.$emit('Local/NeedsPassword', false, function(err2, password) {
|
||||
|
||||
if (err2)
|
||||
if (err2)
|
||||
return cb(err2);
|
||||
|
||||
if (!password)
|
||||
if (!password)
|
||||
return cb(gettext('Password needed'));
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue