Skip to content

Adds checks for nil keys and signatures (backport #1855)#1867

Merged
lasarojc merged 3 commits intov0.38.xfrom
mergify/bp/v0.38.x/pr-1855
Dec 19, 2023
Merged

Adds checks for nil keys and signatures (backport #1855)#1867
lasarojc merged 3 commits intov0.38.xfrom
mergify/bp/v0.38.x/pr-1855

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Dec 19, 2023

This is an automatic backport of pull request #1855 done by Mergify.
Cherry-pick of c88a25f has failed:

On branch mergify/bp/v0.38.x/pr-1855
Your branch is up to date with 'origin/v0.38.x'.

You are currently cherry-picking commit c88a25f85.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	new file:   .changelog/unreleased/bug-fixes/1825-false-on-nil-key.md
	modified:   crypto/batch/batch.go
	modified:   types/validator_set_test.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   types/validation.go

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

* Check for nil keys.

* Check for nil signatures and complement test

* Check that the validator does not have an empty pub key.

* Add and move tests

* improve error message

* Add changelog

(cherry picked from commit c88a25f)

# Conflicts:
#	types/validation.go
@mergify mergify bot requested a review from a team as a code owner December 19, 2023 15:02
@mergify mergify bot added the conflicts label Dec 19, 2023
@lasarojc lasarojc self-assigned this Dec 19, 2023
@lasarojc lasarojc merged commit 73aab64 into v0.38.x Dec 19, 2023
@lasarojc lasarojc deleted the mergify/bp/v0.38.x/pr-1855 branch December 19, 2023 15:39
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.

2 participants