Skip to content

Commit

Permalink
Fix ocr2vrf scripts after new panic change. (smartcontractkit#7734)
Browse files Browse the repository at this point in the history
  • Loading branch information
vreff authored Oct 24, 2022
1 parent 60601e1 commit 3e622cd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/cmd/ocr2vrf_configure_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ func (cli *Client) ConfigureOCR2VRFNode(c *clipkg.Context) (*SetupOCR2VRFNodePay
return nil, cli.errorOut(err)
}

// Start application.
app.Start(rootCtx)

// Close application.
defer app.Stop()

// Initialize transmitter settings.
var sendingKeys []string
useForwarder := c.Bool("use-forwarder")
Expand Down Expand Up @@ -261,6 +267,7 @@ func (cli *Client) ConfigureOCR2VRFNode(c *clipkg.Context) (*SetupOCR2VRFNodePay
} else {
err = fmt.Errorf("unknown job type: %s", c.String("job-type"))
}

if err != nil {
return nil, err
}
Expand Down
4 changes: 4 additions & 0 deletions core/scripts/ocr2vrf/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,10 @@ func configureEnvironmentVariables(useForwarder bool) {
helpers.PanicErr(os.Setenv("ETH_USE_FORWARDERS", fmt.Sprintf("%t", useForwarder)))
helpers.PanicErr(os.Setenv("FEATURE_OFFCHAIN_REPORTING2", "true"))
helpers.PanicErr(os.Setenv("SKIP_DATABASE_PASSWORD_COMPLEXITY_CHECK", "true"))
helpers.PanicErr(os.Setenv("P2P_NETWORKING_STACK", "V2"))
helpers.PanicErr(os.Setenv("P2PV2_LISTEN_ADDRESSES", "127.0.0.1:8000"))
helpers.PanicErr(os.Setenv("ETH_HEAD_TRACKER_HISTORY_DEPTH", "1"))
helpers.PanicErr(os.Setenv("ETH_FINALITY_DEPTH", "1"))
}

func resetDatabase(client *cmd.Client, context *cli.Context, index int, databasePrefix string, databaseSuffixes string) {
Expand Down

0 comments on commit 3e622cd

Please sign in to comment.