improve mix config retrieval

This commit is contained in:
Craig Raw 2021-09-02 11:39:33 +02:00
parent 67836b2b55
commit b4f4cc8726

View file

@ -235,7 +235,11 @@ public class Wallet extends Persistable {
return mixConfig; return mixConfig;
} }
public MixConfig getOrCreateMixConfig() { public MixConfig getMasterMixConfig() {
if(!isMasterWallet()) {
return getMasterWallet().getMasterMixConfig();
}
if(mixConfig == null) { if(mixConfig == null) {
mixConfig = new MixConfig(); mixConfig = new MixConfig();
} }