Skip to content

state: more test cases for block validation#5415

Merged
mergify[bot] merged 3 commits intomasterfrom
anton/1410-document-service
Sep 28, 2020
Merged

state: more test cases for block validation#5415
mergify[bot] merged 3 commits intomasterfrom
anton/1410-document-service

Conversation

@melekes
Copy link
Contributor

@melekes melekes commented Sep 28, 2020

Closes #2589

@melekes melekes self-assigned this Sep 28, 2020
@melekes melekes added the S:automerge Automatically merge PR when requirements pass label Sep 28, 2020
@codecov
Copy link

codecov bot commented Sep 28, 2020

Codecov Report

Merging #5415 into master will increase coverage by 0.51%.
The diff coverage is 40.14%.

@@            Coverage Diff             @@
##           master    #5415      +/-   ##
==========================================
+ Coverage   60.83%   61.35%   +0.51%     
==========================================
  Files         203      259      +56     
  Lines       20526    23429    +2903     
==========================================
+ Hits        12488    14375    +1887     
- Misses       6961     7602     +641     
- Partials     1077     1452     +375     
Impacted Files Coverage Δ
abci/client/grpc_client.go 0.00% <0.00%> (ø)
abci/example/kvstore/persistent_kvstore.go 40.49% <0.00%> (-5.22%) ⬇️
blockchain/v0/pool.go 76.01% <0.00%> (-2.65%) ⬇️
blockchain/v1/reactor_fsm.go 70.81% <0.00%> (-3.62%) ⬇️
blockchain/v2/processor_context.go 68.00% <0.00%> (+4.84%) ⬆️
cmd/tendermint/commands/run_node.go 0.00% <0.00%> (ø)
config/toml.go 60.97% <ø> (-4.99%) ⬇️
consensus/replay_file.go 0.00% <0.00%> (ø)
consensus/replay_stubs.go 57.57% <ø> (-3.30%) ⬇️
consensus/wal.go 60.86% <0.00%> (-5.99%) ⬇️
... and 290 more

len(block.ProposerAddress),
)
}
// The length is checked in ValidateBasic above.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's probably better just to remove all commenting regarding checking the length of the proposer especially as this directly proceeds checking if the proposer is part of the current validator set. I feel like it might just be confusing

@mergify mergify bot merged commit 1635d13 into master Sep 28, 2020
@mergify mergify bot deleted the anton/1410-document-service branch September 28, 2020 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S:automerge Automatically merge PR when requirements pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

state: add more tests for block validation

3 participants