mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Fix wrong handling of mainnet RECIPIENT_BTC_ADDRESSes
We must not add main net addresses if not on mainnet
This commit is contained in:
parent
1c0bef787a
commit
1c41db4a76
1 changed files with 7 additions and 4 deletions
|
@ -73,6 +73,7 @@ import bisq.core.dao.state.model.governance.Vote;
|
|||
|
||||
import bisq.asset.Asset;
|
||||
|
||||
import bisq.common.config.Config;
|
||||
import bisq.common.handlers.ErrorMessageHandler;
|
||||
import bisq.common.handlers.ExceptionHandler;
|
||||
import bisq.common.handlers.ResultHandler;
|
||||
|
@ -768,10 +769,12 @@ public class DaoFacade implements DaoSetupService {
|
|||
// If Dao is deactivated we need to add the default address as getAllPastParamValues will not return us any.
|
||||
allPastParamValues.add(Param.RECIPIENT_BTC_ADDRESS.getDefaultValue());
|
||||
|
||||
// If Dao is deactivated we need to add the past addresses used as well.
|
||||
// This list need to be updated once a new address gets defined.
|
||||
allPastParamValues.add("3EtUWqsGThPtjwUczw27YCo6EWvQdaPUyp"); // burning man 2019
|
||||
allPastParamValues.add("3A8Zc1XioE2HRzYfbb5P8iemCS72M6vRJV"); // burningman2
|
||||
if (Config.baseCurrencyNetwork().isMainnet()) {
|
||||
// If Dao is deactivated we need to add the past addresses used as well.
|
||||
// This list need to be updated once a new address gets defined.
|
||||
allPastParamValues.add("3EtUWqsGThPtjwUczw27YCo6EWvQdaPUyp"); // burning man 2019
|
||||
allPastParamValues.add("3A8Zc1XioE2HRzYfbb5P8iemCS72M6vRJV"); // burningman2
|
||||
}
|
||||
|
||||
return allPastParamValues;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue