Add wallet addresses index discovery on importing backup

This commit is contained in:
Yemel Jardi 2014-06-18 10:58:34 -03:00
commit 29920abdb3
7 changed files with 167 additions and 3 deletions

View file

@ -157,8 +157,6 @@ PublicKeyRing.prototype.getPubKeys = function(index, isChange) {
// TODO this could be cached
PublicKeyRing.prototype.getRedeemScript = function (index, isChange) {
this.indexes.checkRange(index, isChange);
var pubKeys = this.getPubKeys(index, isChange);
var script = Script.createMultisig(this.requiredCopayers, pubKeys);
return script;