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

@ -30,7 +30,7 @@ AddressIndex.prototype.toObj = function() {
AddressIndex.prototype.checkRange = function(index, isChange) {
if ((isChange && index > this.changeIndex) ||
(!isChange && index > this.receiveIndex)) {
throw new Error('Out of bounds at index %d isChange: %d', index, isChange);
throw new Error('Out of bounds at index ' + index + ' isChange: ' + isChange);
}
};