Skip to content

check the result of PeerState.peer.Send before calling PeerState.setHasVote#2787

Merged
ebuchman merged 1 commit intodevelopfrom
2615-sethasvote_after_sending
Nov 11, 2018
Merged

check the result of PeerState.peer.Send before calling PeerState.setHasVote#2787
ebuchman merged 1 commit intodevelopfrom
2615-sethasvote_after_sending

Conversation

@liamsi
Copy link
Contributor

@liamsi liamsi commented Nov 8, 2018

fixes #2615

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

- actually call `ps.SetHasVote` instead to avoid carrying around
`votes.Height()`, `votes.Round()`, `types.SignedMsgType(votes.Type())`
@codecov-io
Copy link

Codecov Report

Merging #2787 into develop will decrease coverage by 0.01%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #2787      +/-   ##
===========================================
- Coverage    62.37%   62.35%   -0.02%     
===========================================
  Files          212      212              
  Lines        17210    17212       +2     
===========================================
- Hits         10734    10732       -2     
- Misses        5578     5583       +5     
+ Partials       898      897       -1
Impacted Files Coverage Δ
consensus/reactor.go 67.67% <100%> (-0.63%) ⬇️
privval/ipc_server.go 64.15% <0%> (-5.67%) ⬇️
consensus/state.go 80.02% <0%> (+0.23%) ⬆️
p2p/pex/pex_reactor.go 73.37% <0%> (+0.32%) ⬆️
libs/autofile/autofile.go 78.94% <0%> (+2.63%) ⬆️

Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

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

💎

@ebuchman ebuchman merged commit 7a4b62d into develop Nov 11, 2018
@ebuchman ebuchman deleted the 2615-sethasvote_after_sending branch November 11, 2018 12:57
maxim-levy pushed a commit to maxim-levy/tendermint that referenced this pull request Nov 13, 2018
* 'master' of https://github.com/tendermint/tendermint: (330 commits)
  Release/v0.26.1 (tendermint#2803)
  fix amino overhead computation for Tx (tendermint#2792)
  p2p: re-check after sleeps (tendermint#2664)
  check the result of `ps.peer.Send` before calling `ps.setHasVote` (tendermint#2787)
  p2p: AddressBook requires addresses to have IDs; Do not close conn immediately after sending pex addrs in seed mode (tendermint#2797)
  test AutoFile#Size (happy path)
  [autofile/group] do not panic when checking size
  openFile creates a file if not exist => ErrNotExist is not possible
  use our logger in autofile/group
  Add tests for ValidateBasic methods (tendermint#2754)
  [docs] improve organization of ABCI docs & fix links (tendermint#2749)
  p2p: peer-id -> peer_id (tendermint#2771)
  mempool: print postCheck error (tendermint#2762)
  Fix crypto/merkle ProofOperators.Verify to check bounds on keypath pa… (tendermint#2756)
  Mempool WAL is still created by default in home directory, leads to permission errors (tendermint#2758)
  mempool: ErrPreCheck and more log info (tendermint#2724)
  Release/v0.26.0 (tendermint#2726)
  [ADR] [DRAFT] pubsub 2.0 (tendermint#2532)
  validate reactor messages (tendermint#2711)
  TMHASH is 32 bytes. Closes tendermint#1990 (tendermint#2732)
  ...
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.

4 participants