Skip to content

Commit

Permalink
Fail to Boot if P2P Not Enabled for OCR
Browse files Browse the repository at this point in the history
OCR and OCR2 both require P2P.V2 to be enabled with valid listen addresses. In the case that one
or both are enabled, return an error if P2P is not enabled.
  • Loading branch information
EasterTheBunny committed Feb 12, 2024
1 parent 877f2f5 commit 6531d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/services/chainlink/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ func NewApplication(opts ApplicationOpts) (Application, error) {
peerWrapper = ocrcommon.NewSingletonPeerWrapper(keyStore, cfg.P2P(), cfg.OCR(), cfg.Database(), db, globalLogger)
srvcs = append(srvcs, peerWrapper)
} else {
globalLogger.Debug("P2P stack disabled")
return nil, fmt.Errorf("P2P stack required for OCR or OCR2")
}

if cfg.OCR().Enabled() {
Expand Down

0 comments on commit 6531d4d

Please sign in to comment.