Fix wrong handling of mainnet RECIPIENT_BTC_ADDRESSes

We must not add main net addresses if not on mainnet
This commit is contained in:
chimp1984 2020-09-17 13:46:00 -05:00
parent 1c0bef787a
commit 1c41db4a76
No known key found for this signature in database
GPG key ID: 9801B4EC591F90E3

View file

@ -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 (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;
}