mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
raise minimum for min mixes before mixing out to 2
This commit is contained in:
parent
f4259642b8
commit
ddcb3e6f61
2 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ public class UtxosTreeTable extends CoinTreeTable {
|
||||||
});
|
});
|
||||||
dateCol.setCellFactory(p -> new DateCell());
|
dateCol.setCellFactory(p -> new DateCell());
|
||||||
dateCol.setSortable(true);
|
dateCol.setSortable(true);
|
||||||
dateCol.setComparator(TableColumnBase.DEFAULT_COMPARATOR.reversed());
|
dateCol.setComparator(dateCol.getComparator().reversed());
|
||||||
getColumns().add(dateCol);
|
getColumns().add(dateCol);
|
||||||
|
|
||||||
TreeTableColumn<Entry, Entry> outputCol = new TreeTableColumn<>("Output");
|
TreeTableColumn<Entry, Entry> outputCol = new TreeTableColumn<>("Output");
|
||||||
|
|
|
@ -95,9 +95,9 @@ public class MixToController implements Initializable {
|
||||||
});
|
});
|
||||||
|
|
||||||
int initialMinMixes = mixConfig.getMinMixes() == null ? Whirlpool.DEFAULT_MIXTO_MIN_MIXES : mixConfig.getMinMixes();
|
int initialMinMixes = mixConfig.getMinMixes() == null ? Whirlpool.DEFAULT_MIXTO_MIN_MIXES : mixConfig.getMinMixes();
|
||||||
minMixes.setValueFactory(new IntegerSpinner.ValueFactory(1, 10000, initialMinMixes));
|
minMixes.setValueFactory(new IntegerSpinner.ValueFactory(2, 10000, initialMinMixes));
|
||||||
minMixes.valueProperty().addListener((observable, oldValue, newValue) -> {
|
minMixes.valueProperty().addListener((observable, oldValue, newValue) -> {
|
||||||
if(newValue == null || newValue < 1 || newValue > 10000) {
|
if(newValue == null || newValue < 2 || newValue > 10000) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue