Skip to content

Commit 1cab659

Browse files
authored
fix(rewards): point prod AAO at anti-abuse-oracle.audius.engineering (#847)
1 parent d1136bd commit 1cab659

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

config/config.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func init() {
181181
if Cfg.DelegatePrivateKey == "" {
182182
log.Fatalf("Missing required %s env var: delegatePrivateKey", env)
183183
}
184-
Cfg.AntiAbuseOracles = []string{"https://discoveryprovider.audius.co"}
184+
Cfg.AntiAbuseOracles = []string{"https://anti-abuse-oracle.audius.engineering"}
185185
Cfg.ArchiverNodes = []string{"https://archiver.audius.engineering"}
186186
Cfg.DeadNodes = []string{
187187
"https://content.grassfed.network",
@@ -278,6 +278,11 @@ func init() {
278278
Cfg.ArchiverNodes = strings.Split(v, ",")
279279
}
280280

281+
// Override anti-abuse oracle endpoint(s) when set, so the URL can be rotated without a code deploy.
282+
if v := os.Getenv("antiAbuseOracles"); v != "" {
283+
Cfg.AntiAbuseOracles = strings.Split(v, ",")
284+
}
285+
281286
if v := os.Getenv("featuredAudienceUserId"); v != "" {
282287
parsed, err := strconv.ParseInt(v, 10, 32)
283288
if err != nil {

0 commit comments

Comments
 (0)