working towards new AddressIndex obj
This commit is contained in:
parent
cf5e61cfcb
commit
88df346c51
3 changed files with 94 additions and 44 deletions
|
|
@ -81,12 +81,12 @@ PrivateKey.prototype.get = function(index,isChange) {
|
|||
return this.getForPath(path);
|
||||
};
|
||||
|
||||
PrivateKey.prototype.getAll = function(addressIndex, changeAddressIndex) {
|
||||
PrivateKey.prototype.getAll = function(receiveIndex, changeIndex) {
|
||||
var ret = [];
|
||||
for(var i=0;i<addressIndex; i++) {
|
||||
for(var i=0;i<receiveIndex; i++) {
|
||||
ret.push(this.get(i,false));
|
||||
}
|
||||
for(var i=0; i<changeAddressIndex; i++) {
|
||||
for(var i=0; i<changeIndex; i++) {
|
||||
ret.push(this.get(i,true));
|
||||
}
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue