DevEnv: Add static getDevPrivilegePubKeys() method

This commit is contained in:
Alva Swanson 2023-12-23 15:19:54 +01:00
parent e7cb152e11
commit 8a978a2c14
No known key found for this signature in database
GPG Key ID: 004760E77F753090
2 changed files with 8 additions and 1 deletions

View File

@ -19,6 +19,9 @@ package bisq.common.app;
import bisq.common.config.Config;
import java.util.Collections;
import java.util.List;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
@ -35,6 +38,10 @@ public class DevEnv {
@Getter
private static final String DEV_PRIVILEGE_PRIV_KEY = "6ac43ea1df2a290c1c8391736aa42e4339c5cb4f110ff0257a13b63211977b7a";
public static List<String> getDevPrivilegePubKeys() {
return Collections.singletonList(DEV_PRIVILEGE_PUB_KEY);
}
public static void setup(Config config) {
DevEnv.setDevMode(config.useDevMode);
}

View File

@ -133,7 +133,7 @@ public class FilterManager {
this.ignoreDevMsg = ignoreDevMsg;
publicKeys = useDevPrivilegeKeys ?
Collections.singletonList(DevEnv.getDEV_PRIVILEGE_PUB_KEY()) :
DevEnv.getDevPrivilegePubKeys() :
List.of("0358d47858acdc41910325fce266571540681ef83a0d6fedce312bef9810793a27",
"029340c3e7d4bb0f9e651b5f590b434fecb6175aeaa57145c7804ff05d210e534f",
"034dc7530bf66ffd9580aa98031ea9a18ac2d269f7c56c0e71eca06105b9ed69f9");