Skip to content

Commit

Permalink
fix: for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Alok committed Jul 12, 2024
1 parent 123a295 commit 41f7bb1
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ job "{{ job.name }}" {
MEV_ORACLE_KEYSTORE_PATH="/local/data-{{ env "NOMAD_ALLOC_INDEX" }}/keystore"
MEV_ORACLE_KEYSTORE_FILENAME="{{ with secret "secret/data/mev-commit" }}{{ .Data.data.{% endraw %}{{ job.artifacts | selectattr('keystore', 'defined') | map(attribute='keystore.name') | first }}{% raw %}_filename }}{{ end }}"
MEV_ORACLE_KEYSTORE_PASSWORD="{{ with secret "secret/data/mev-commit" }}{{ .Data.data.{% endraw %}{{ job.artifacts | selectattr('keystore', 'defined') | map(attribute='keystore.name') | first }}{% raw %}_password }}{{ end }}"
MEV_ORACLE_REGISTER_PROVIDER_API_AUTH_TOKEN="{{ with secret "secret/data/mev-commit" }}{{ .Data.data.register_provider_auth_token }}{{ end }}"
# MEV_ORACLE_REGISTER_PROVIDER_API_AUTH_TOKEN="{{ with secret "secret/data/mev-commit" }}{{ .Data.data.register_provider_auth_token }}{{ end }}"
{{- range nomadService "mev-commit-oracle" }}
{{- if contains "http" .Tags }}
MEV_ORACLE_HTTP_PORT="{{ .Port }}"
Expand Down
6 changes: 3 additions & 3 deletions infrastructure/nomad/playbooks/variables/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,10 @@ profiles:
- *mev_commit_provider_node1_job
- *mev_commit_provider_node1_funder_job
- *mev_commit_oracle_job
- *mev_commit_bidder_node1_job
- *mev_commit_bidder_node1_funder_job
# - *mev_commit_bidder_node1_job
# - *mev_commit_bidder_node1_funder_job
- *mev_commit_provider_emulator_node1_job
- *mev_commit_bidder_emulator_node1_job
# - *mev_commit_bidder_emulator_node1_job
- *mev_commit_faucet_job
- *datadog_agent_metrics_collector_job

Expand Down
8 changes: 4 additions & 4 deletions oracle/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ var (
})

optionRegistrationAuthToken = altsrc.NewStringFlag(&cli.StringFlag{
Name: "register-provider-auth-token",
Usage: "Authorization token for provider registration",
EnvVars: []string{"MEV_ORACLE_REGISTER_PROVIDER_API_AUTH_TOKEN"},
Required: true,
Name: "register-provider-auth-token",
Usage: "Authorization token for provider registration",
EnvVars: []string{"MEV_ORACLE_REGISTER_PROVIDER_API_AUTH_TOKEN"},
Value: "test",
})
)

Expand Down
32 changes: 16 additions & 16 deletions oracle/pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,22 +206,22 @@ func NewNode(opts *Options) (*Node, error) {

if opts.OverrideWinners != nil && len(opts.OverrideWinners) > 0 {
listenerL1Client = &winnerOverrideL1Client{EthClient: listenerL1Client, winners: opts.OverrideWinners}
for _, winner := range opts.OverrideWinners {
nd.logger.Info("setting builder mapping", "builderName", winner, "builderAddress", winner)
err := setBuilderMapping(
ctx,
blockTrackerTransactor,
settlementClient,
winner,
winner,
nd.logger,
)
if err != nil {
nd.logger.Error("failed to set builder mapping", "error", err)
cancel()
return nil, err
}
}
// for _, winner := range opts.OverrideWinners {
// nd.logger.Info("setting builder mapping", "builderName", winner, "builderAddress", winner)
// err := setBuilderMapping(
// ctx,
// blockTrackerTransactor,
// settlementClient,
// winner,
// winner,
// nd.logger,
// )
// if err != nil {
// nd.logger.Error("failed to set builder mapping", "error", err)
// cancel()
// return nil, err
// }
// }
}

l1Lis := l1Listener.NewL1Listener(
Expand Down

0 comments on commit 41f7bb1

Please sign in to comment.