Skip to content

abci: update evidence#5324

Merged
cmwaters merged 7 commits intomasterfrom
callum/abci-evidence
Sep 2, 2020
Merged

abci: update evidence#5324
cmwaters merged 7 commits intomasterfrom
callum/abci-evidence

Conversation

@cmwaters
Copy link
Copy Markdown
Contributor

@cmwaters cmwaters commented Sep 2, 2020

Description

Tried to cement the structure of the abci evidence for the cosmos-sdk

Used an enum for the evidence type of which there are two:

DUPLICATE_VOTE
LIGHT_CLIENT_ATTACK

@cmwaters cmwaters added C:abci Component: Application Blockchain Interface C:evidence Component: Evidence labels Sep 2, 2020
Comment thread types/protobuf.go
var evType abci.EvidenceType
switch ev.(type) {
case *DuplicateVoteEvidence:
evType = ABCIEvidenceTypeDuplicateVote
Copy link
Copy Markdown
Contributor

@tac0turtle tac0turtle Sep 2, 2020

Choose a reason for hiding this comment

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

lines 17-19 in this file should be removed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

lol you couldn't write the message there so you did it here. Ahh the faults in github. Thanks for the heads up though

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 2, 2020

Codecov Report

Merging #5324 into master will increase coverage by 1.52%.
The diff coverage is 59.40%.

@@            Coverage Diff             @@
##           master    #5324      +/-   ##
==========================================
+ Coverage   60.83%   62.36%   +1.52%     
==========================================
  Files         203      259      +56     
  Lines       20526    26213    +5687     
==========================================
+ Hits        12488    16348    +3860     
- Misses       6961     8471    +1510     
- Partials     1077     1394     +317     
Impacted Files Coverage Δ
abci/example/kvstore/persistent_kvstore.go 45.71% <0.00%> (ø)
blockchain/v2/processor_context.go 63.15% <0.00%> (ø)
cmd/tendermint/commands/run_node.go 0.00% <0.00%> (ø)
config/toml.go 65.95% <ø> (ø)
consensus/replay_stubs.go 58.69% <0.00%> (-2.18%) ⬇️
crypto/crypto.go 0.00% <ø> (ø)
crypto/sr25519/pubkey.go 37.93% <ø> (-6.90%) ⬇️
evidence/pool.go 73.71% <ø> (+6.82%) ⬆️
evidence/reactor.go 61.20% <ø> (+0.52%) ⬆️
evidence/services.go 66.66% <ø> (ø)
... and 126 more

Copy link
Copy Markdown
Contributor

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

LGTM.

@cmwaters cmwaters merged commit c752e2e into master Sep 2, 2020
@cmwaters cmwaters deleted the callum/abci-evidence branch September 2, 2020 16:18
iKapitonau pushed a commit to scrtlabs/tendermint that referenced this pull request Oct 16, 2025
…nt#5324) (tendermint#5407)

---
Updates the consensus reactor to validate that a received proposal will
not contain more parts than the amount of chunks that it would take to
build a block whos size is equal to `ConsensusParams.Block.MaxBytes`.

Original PR is here cometbft/cometbft#5309, but
reopened since the contributor stopped replying.

#### PR checklist

- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments
<hr>This is an automatic backport of pull request tendermint#5324 done by
[Mergify](https://mergify.com).

Co-authored-by: Alex | Interchain Labs <alex@cosmoslabs.io>
Co-authored-by: arsushi <richie@asymmetric.re>
Co-authored-by: Abdul Malek <me@almk.dev>
Co-authored-by: Matt Acciai <matt@skip.money>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Tyler <48813565+technicallyty@users.noreply.github.com>
Co-authored-by: maradini77 <140460067+maradini77@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C:abci Component: Application Blockchain Interface C:evidence Component: Evidence

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants