store mix indexes in mixconfig

This commit is contained in:
Craig Raw 2021-09-02 14:11:51 +02:00
parent b4f4cc8726
commit 94d22b8758

View file

@ -8,16 +8,20 @@ public class MixConfig extends Persistable {
private File mixToWalletFile; private File mixToWalletFile;
private String mixToWalletName; private String mixToWalletName;
private Integer minMixes; private Integer minMixes;
private int receiveIndex;
private int changeIndex;
public MixConfig() { public MixConfig() {
} }
public MixConfig(String scode, Boolean mixOnStartup, File mixToWalletFile, String mixToWalletName, Integer minMixes) { public MixConfig(String scode, Boolean mixOnStartup, File mixToWalletFile, String mixToWalletName, Integer minMixes, int receiveIndex, int changeIndex) {
this.scode = scode; this.scode = scode;
this.mixOnStartup = mixOnStartup; this.mixOnStartup = mixOnStartup;
this.mixToWalletFile = mixToWalletFile; this.mixToWalletFile = mixToWalletFile;
this.mixToWalletName = mixToWalletName; this.mixToWalletName = mixToWalletName;
this.minMixes = minMixes; this.minMixes = minMixes;
this.receiveIndex = receiveIndex;
this.changeIndex = changeIndex;
} }
public String getScode() { public String getScode() {
@ -60,7 +64,23 @@ public class MixConfig extends Persistable {
this.minMixes = minMixes; this.minMixes = minMixes;
} }
public int getReceiveIndex() {
return receiveIndex;
}
public void setReceiveIndex(int receiveIndex) {
this.receiveIndex = receiveIndex;
}
public int getChangeIndex() {
return changeIndex;
}
public void setChangeIndex(int changeIndex) {
this.changeIndex = changeIndex;
}
public MixConfig copy() { public MixConfig copy() {
return new MixConfig(scode, mixOnStartup, mixToWalletFile, mixToWalletName, minMixes); return new MixConfig(scode, mixOnStartup, mixToWalletFile, mixToWalletName, minMixes, receiveIndex, changeIndex);
} }
} }