From 7b71ef6290a729f1e954889ec98da17c90ddd46d Mon Sep 17 00:00:00 2001 From: pavel-raykov Date: Tue, 17 Dec 2024 12:35:17 +0100 Subject: [PATCH] Minor --- core/services/chainlink/application.go | 10 ++++++++++ core/services/keystore/loop_manager.go | 4 ++++ plugins/cmd/chainlink-keystore-pavel/main.go | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/core/services/chainlink/application.go b/core/services/chainlink/application.go index 29473c4d932..9ed432c17d2 100644 --- a/core/services/chainlink/application.go +++ b/core/services/chainlink/application.go @@ -458,6 +458,13 @@ func NewApplication(opts ApplicationOpts) (Application, error) { loopRegistrarConfig := plugins.NewRegistrarConfig(opts.GRPCOpts, opts.LoopRegistry.Register, opts.LoopRegistry.Unregister) + keystoreManager := keystore.NewLOOPPKeystoreManager(loopRegistrarConfig, globalLogger) + keyStore.AddLOOPPManager(keystoreManager) + + //Just for development + keystoreManager.Register("someID", "chainlink-keystore-pavel") + srvcs = append(srvcs, keystoreManager) + var ( delegates = map[job.Type]job.Delegate{ job.DirectRequest: directrequest.NewDelegate( @@ -768,6 +775,9 @@ func (app *ChainlinkApplication) Start(ctx context.Context) error { app.started = true + m, _ := app.KeyStore.GetLOOPPManager() + m.TEST() + return nil } diff --git a/core/services/keystore/loop_manager.go b/core/services/keystore/loop_manager.go index 0cb22d129b0..7fbd90f20f8 100644 --- a/core/services/keystore/loop_manager.go +++ b/core/services/keystore/loop_manager.go @@ -77,3 +77,7 @@ func (m *Manager) HealthReport() map[string]error { func (m *Manager) Name() string { return "LOOPP-Keystore-Manager" } + +func (m *Manager) TEST() { + println("Called TEST") +} diff --git a/plugins/cmd/chainlink-keystore-pavel/main.go b/plugins/cmd/chainlink-keystore-pavel/main.go index 640ec3b86cd..1df3a7d2c8d 100644 --- a/plugins/cmd/chainlink-keystore-pavel/main.go +++ b/plugins/cmd/chainlink-keystore-pavel/main.go @@ -1,4 +1,4 @@ -package chainlink_keystore_pavel +package main import ( "context"