Skip to content

Commit 6c93c02

Browse files
authored
Wire confidential relay service into CRE startup (#22043)
* wire confidential relay service into CRE startup Register confidentialrelay.NewService as a CRE subservice so the relay DON handler starts alongside the gateway connector. * fix changeset: remove stale fetcher reference * gate confidential relay service behind CRE.ConfidentialRelay.Enabled Allows disabling the relay handler without code changes. Default is false (opt-in); E2E tests already set it via the ConfidentialRelay feature in system-tests/lib.
1 parent bd5e9a8 commit 6c93c02

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"chainlink": minor
3+
---
4+
5+
Wire confidential relay service into CRE startup #added

core/services/cre/cre.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import (
3232

3333
"github.com/smartcontractkit/chainlink/v2/core/capabilities"
3434
"github.com/smartcontractkit/chainlink/v2/core/capabilities/compute"
35+
"github.com/smartcontractkit/chainlink/v2/core/capabilities/confidentialrelay"
3536
gatewayconnector "github.com/smartcontractkit/chainlink/v2/core/capabilities/gateway_connector"
3637
"github.com/smartcontractkit/chainlink/v2/core/capabilities/localcapmgr"
3738
"github.com/smartcontractkit/chainlink/v2/core/capabilities/remote"
@@ -171,6 +172,16 @@ func (s *Services) newSubservices(
171172
}
172173
s.GatewayConnectorWrapper = gatewayConnectorWrapper
173174
srvs = append(srvs, gatewayConnectorWrapper)
175+
176+
if cfg.CRE().ConfidentialRelay().Enabled() {
177+
relayService := confidentialrelay.NewService(
178+
gatewayConnectorWrapper,
179+
opts.CapabilitiesRegistry,
180+
lggr,
181+
opts.LimitsFactory,
182+
)
183+
srvs = append(srvs, relayService)
184+
}
174185
}
175186

176187
if cfg.CRE().Linking().URL() != "" {

0 commit comments

Comments
 (0)