Skip to content
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

Support for new endpoint /node/waiting-epochs-left/:key #407

Merged
merged 4 commits into from
Nov 23, 2023

Conversation

sstanculeanu
Copy link
Contributor

No description provided.

@sstanculeanu sstanculeanu self-assigned this Nov 16, 2023
@ssd04 ssd04 self-requested a review November 17, 2023 07:23
Comment on lines 246 to 248
func (ngp *NodeGroupProcessor) GetWaitingEpochsLeftForPublicKey(publicKey string) (*data.WaitingEpochsLeftApiResponse, error) {
observers, err := ngp.proc.GetAllObservers()
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check for nil/empty publicKey before trying to get all observers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed

sasurobert
sasurobert previously approved these changes Nov 20, 2023
iulianpascalau
iulianpascalau previously approved these changes Nov 20, 2023
ssd04
ssd04 previously approved these changes Nov 20, 2023
sasurobert
sasurobert previously approved these changes Nov 20, 2023
@sstanculeanu sstanculeanu merged commit 1e229e0 into rc/v1.7.0 Nov 23, 2023
4 checks passed
@sstanculeanu sstanculeanu deleted the endpoint_epochs_left_as_eligible branch November 23, 2023 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants