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

types: NewValidatorSet doesn't panic on empty valz list #2938

Merged
merged 2 commits into from Nov 28, 2018

Conversation

ebuchman
Copy link
Contributor

@ebuchman ebuchman commented Nov 28, 2018

Fixes regression in v0.26.4 #2937

We should backport this to v0.26.5 as well.

We should also write a test for the case where the genesis has no validators (allowed, since they can be set by InitChain), since this is what the SDK and more advanced apps will do ...

  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG_PENDING.md

Copy link
Contributor

@ValarDragon ValarDragon left a comment

Choose a reason for hiding this comment

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

🌠

needs changelog entry though

@codecov-io
Copy link

codecov-io commented Nov 28, 2018

Codecov Report

Merging #2938 into develop will decrease coverage by 0.03%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #2938      +/-   ##
===========================================
- Coverage    62.69%   62.65%   -0.04%     
===========================================
  Files          212      212              
  Lines        17327    17327              
===========================================
- Hits         10863    10857       -6     
- Misses        5552     5556       +4     
- Partials       912      914       +2
Impacted Files Coverage Δ
consensus/reactor.go 65.76% <0%> (-0.71%) ⬇️

@melekes melekes requested a review from jaekwon November 28, 2018 17:08
@ebuchman ebuchman merged commit b11788d into develop Nov 28, 2018
@ebuchman ebuchman deleted the bucky/2937-fix-empty-vals branch November 28, 2018 18:09
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.

None yet

3 participants