Skip to content

Commit

Permalink
Added load mempool on connect config for monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
icellan committed Apr 20, 2022
1 parent 02f5c5f commit ad14e12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ type (
MonitorDays int `json:"monitor_days" mapstructure:"monitor_days"` // how many days in the past should we monitor an address (default: 7)
FalsePositiveRate float64 `json:"false_positive_rate" mapstructure:"false_positive_rate"` // how many false positives do we except (default: 0.01)
MaxNumberOfDestinations int `json:"max_number_of_destinations" mapstructure:"max_number_of_destinations"` // how many destinations can the filter hold (default: 100,000)
ProcessMempoolOnConnect bool `json:"process_mempool_on_connect" mapstructure:"process_mempool_on_connect"` // Whether to process all transactions in the mempool when connecting to centrifuge server
}

// NewRelicConfig is the configuration for New Relic
Expand Down
4 changes: 2 additions & 2 deletions config/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import (
"strings"
"time"

"github.com/BuxOrg/bux/chainstate"

"github.com/BuxOrg/bux"
"github.com/BuxOrg/bux/cachestore"
"github.com/BuxOrg/bux/chainstate"
"github.com/BuxOrg/bux/datastore"
"github.com/BuxOrg/bux/taskmanager"
"github.com/BuxOrg/bux/utils"
Expand Down Expand Up @@ -215,6 +214,7 @@ func (s *AppServices) loadBux(ctx context.Context, appConfig *AppConfig) (err er
MonitorDays: appConfig.Monitor.MonitorDays,
FalsePositiveRate: appConfig.Monitor.FalsePositiveRate,
MaxNumberOfDestinations: appConfig.Monitor.MaxNumberOfDestinations,
ProcessMempoolOnConnect: appConfig.Monitor.ProcessMempoolOnConnect,
}))
}

Expand Down

0 comments on commit ad14e12

Please sign in to comment.