-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add workflow key to standardcapabilities keystore #18917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| workflowKeys, err := node.KeyStore.Workflow().GetAll() | ||
| require.NoError(t, err) | ||
|
|
||
| // Workflow nodes should ony have at most 1 workflow key. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only
| keystore, err = core.NewSingleAccountSigner(&core.P2PAccountKey, key) | ||
| if err != nil { | ||
| return nil, fmt.Errorf("failed to create single account signer for P2P key: %w", err) | ||
| if len(workflowKeys) > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we log a warning if the number of keys is more than 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is handled by the keystore itself: https://github.com/smartcontractkit/chainlink/blob/PRIV-126-workflow-key/core/services/keystore/workflow.go#L67
e7001bb
|




This PR:
workflowKeyto its Keystore, if it is present.GetWorkflowPublicKeys(used in downstream tests).JIRA