Skip to content

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

Merged
ebuchman merged 2 commits intodevelopfrom
bucky/2937-fix-empty-vals
Nov 28, 2018
Merged

types: NewValidatorSet doesn't panic on empty valz list#2938
ebuchman merged 2 commits intodevelopfrom
bucky/2937-fix-empty-vals

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

@ebuchman ebuchman requested a review from melekes as a code owner November 28, 2018 16:41
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.

3 participants