From 7e7b84bb1b8a03d17c9b4dd49932854b0ea36c11 Mon Sep 17 00:00:00 2001 From: Jordan Krage Date: Wed, 29 Nov 2023 10:38:08 -0600 Subject: [PATCH] core/services/chainlink: skip P2P Peer Wrapper when unused (#11411) --- core/services/chainlink/application.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/services/chainlink/application.go b/core/services/chainlink/application.go index 1ecf95d3a5e..3d06789e7bc 100644 --- a/core/services/chainlink/application.go +++ b/core/services/chainlink/application.go @@ -360,7 +360,9 @@ func NewApplication(opts ApplicationOpts) (Application, error) { } var peerWrapper *ocrcommon.SingletonPeerWrapper - if cfg.P2P().Enabled() { + if !cfg.OCR().Enabled() && !cfg.OCR2().Enabled() { + globalLogger.Debug("P2P stack not needed") + } else if cfg.P2P().Enabled() { if err := ocrcommon.ValidatePeerWrapperConfig(cfg.P2P()); err != nil { return nil, err }