Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-raykov committed Dec 17, 2024
1 parent e1380f8 commit 7b71ef6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions core/services/chainlink/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -768,6 +775,9 @@ func (app *ChainlinkApplication) Start(ctx context.Context) error {

app.started = true

m, _ := app.KeyStore.GetLOOPPManager()
m.TEST()

return nil
}

Expand Down
4 changes: 4 additions & 0 deletions core/services/keystore/loop_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
2 changes: 1 addition & 1 deletion plugins/cmd/chainlink-keystore-pavel/main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package chainlink_keystore_pavel
package main

import (
"context"
Expand Down

0 comments on commit 7b71ef6

Please sign in to comment.