mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-26 10:06:45 +00:00
improve mix config retrieval
This commit is contained in:
parent
67836b2b55
commit
b4f4cc8726
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue