Skip to content

Commit

Permalink
Updated name changes from Bux
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Apr 21, 2022
1 parent 1d48851 commit df1ba46
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
11 changes: 6 additions & 5 deletions config/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,18 +212,19 @@ func (s *AppServices) loadBux(ctx context.Context, appConfig *AppConfig) (err er
// Load the monitor
if appConfig.Monitor != nil && appConfig.Monitor.Enabled {
if appConfig.Monitor.BuxAgentURL == "" {
return errors.New("CentrifugeServerURL is required for monitoring to work")
return errors.New("BuxAgentURL is required for monitoring")
}
options = append(options, bux.WithMonitoring(ctx, &chainstate.MonitorOptions{
CentrifugeServer: appConfig.Monitor.BuxAgentURL,
AuthToken: appConfig.Monitor.AuthToken,
BuxAgentURL: appConfig.Monitor.BuxAgentURL,
Debug: appConfig.Monitor.Debug,
FalsePositiveRate: appConfig.Monitor.FalsePositiveRate,
LoadMonitoredDestinations: appConfig.Monitor.LoadMonitoredDestinations,
MaxNumberOfDestinations: appConfig.Monitor.MaxNumberOfDestinations,
MonitorDays: appConfig.Monitor.MonitorDays,
ProcessMempoolOnConnect: appConfig.Monitor.ProcessMempoolOnConnect,
ProcessorType: appConfig.Monitor.ProcessorType,
SaveTransactionDestinations: appConfig.Monitor.SaveTransactionDestinations,
Token: appConfig.Monitor.AuthToken,
}))
}

Expand Down Expand Up @@ -291,7 +292,8 @@ func (s *AppServices) loadTestBux(ctx context.Context, appConfig *AppConfig) (er
return errors.New("BUX Agent URL is required for monitoring")
}
options = append(options, bux.WithMonitoring(ctx, &chainstate.MonitorOptions{
CentrifugeServer: appConfig.Monitor.BuxAgentURL,
AuthToken: appConfig.Monitor.AuthToken,
BuxAgentURL: appConfig.Monitor.BuxAgentURL,
Debug: appConfig.Monitor.Debug,
FalsePositiveRate: appConfig.Monitor.FalsePositiveRate,
LoadMonitoredDestinations: appConfig.Monitor.LoadMonitoredDestinations,
Expand All @@ -300,7 +302,6 @@ func (s *AppServices) loadTestBux(ctx context.Context, appConfig *AppConfig) (er
ProcessMempoolOnConnect: appConfig.Monitor.ProcessMempoolOnConnect,
ProcessorType: appConfig.Monitor.ProcessorType,
SaveTransactionDestinations: appConfig.Monitor.SaveTransactionDestinations,
Token: appConfig.Monitor.AuthToken,
}))
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit df1ba46

Please sign in to comment.