-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[KS-340] Stop hardcoding DON ID in workflow engine #13549
Conversation
core/capabilities/reader.go
Outdated
} | ||
} | ||
|
||
if len(dons) > 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.
how would this situation arise OOI?
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.
It shouldn't -- @DeividasK is modifying the contract so that each node has only one WorkflowDON so I've removed the log and just fetching the first one in the list
236fd7e
to
8920823
Compare
8920823
to
8e5d649
Compare
I see you updated files related to
|
core/capabilities/reader.go
Outdated
|
||
var workflowDON capabilities.DON | ||
if len(workflowDONs) > 0 { | ||
workflowDON = workflowDONs[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.
Is that possible? Should we at least log a warning?
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.
@bolekk We discussed with @DeividasK that it shouldn't be possible; there should be exactly one workflowDON
let me tighten up this logic a bit though
95ff92f
Quality Gate passedIssues Measures |
Ticket
https://smartcontract-it.atlassian.net/browse/KS-340
Requires Dependencies
Resolves Dependencies