Callum Waters
3922dde05d
evidence: structs can independently form abci evidence ( #5610 )
4 years ago
Callum Waters
d1ef5028a0
block: fix max commit sig size ( #5567 )
4 years ago
Callum Waters
55e8ccab21
block: use commit sig size instead of vote size ( #5490 )
4 years ago
Marko
e1644d00c5
mempool: length prefix txs when getting them from mempool ( #5483 )
## Description
In protobuf `[]byte` is varint encoded. When adding txs to the block we were not taking this into account.
Closes: #XXX
4 years ago
Marko
346aa14db5
fix lint failures with 1.31 ( #5489 )
4 years ago
dependabot[bot]
710ed63f55
build(deps): Bump technote-space/get-diff-action from v3 to v4 ( #5485 )
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marko Baricevic <marbar3778@yahoo.com>
4 years ago
Marko
82e4693cc5
abci: remove setOption ( #5447 )
Remove Response/Request SetOption from ABCI.
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
4 years ago
Callum Waters
302aec6dcc
evidence: use bytes instead of quantity to limit size ( #5449 )
## Description
Closes : #5432
4 years ago
Anton Kaliaev
1635d1339c
state: more test cases for block validation ( #5415 )
Closes #2589
4 years ago
Anton Kaliaev
4b99502d5b
config: set time_iota_ms to timeout_commit in test genesis ( #5386 )
also, document consensus parameters.
https://forum.cosmos.network/t/consensus-timeouts-explained/1421
Closes #4489
4 years ago
Erik Grinaker
58b4deca86
blockstore: fix race conditions when loading data ( #5382 )
Fixes #5377 and comments in #4588 (review).
4 years ago
Callum Waters
ed002cea7e
evidence: introduction of LightClientAttackEvidence and refactor of evidence lifecycle ( #5361 )
evidence: modify evidence types (#5342 )
light: detect light client attacks (#5344 )
evidence: refactor evidence pool (#5345 )
abci: application evidence prepared by evidence pool (#5354 )
4 years ago
Marko
56911ee352
state: define interface for state store ( #5348 )
## Description
Make an interface for the state store.
Closes : #5213
4 years ago
Marko
0ed8dba991
lint: enable errcheck ( #5336 )
## Description
Enable errcheck linter throughout the codebase
Closes : #5059
4 years ago
Marko
b8d08b9ef4
lint: add errchecks ( #5316 )
## Description
Work towards enabling errcheck
ref #5059
4 years ago
Marko
fbdf8b098e
mocks: update with 2.2.1 ( #5294 )
## Description
When downloading mockery I ran into an issue where we were using the old version. This PR updates to a more recent version.
changelog?
Closes: #XXX
4 years ago
Callum Waters
b7f6e47a42
evidence: modularise evidence by moving verification function into evidence package ( #5234 )
4 years ago
Erik Grinaker
feaa1ed17e
state: don't save genesis state in database when loaded ( #5231 )
Fixes #5138 . I don't have a strong opinion on this, but find it sort of odd that `Load` functions actually save as well.
4 years ago
Erik Grinaker
cc247c091b
genesis: add support for arbitrary initial height ( #5191 )
Adds a genesis parameter `initial_height` which specifies the initial block height, as well as ABCI `RequestInitChain.InitialHeight` to pass it to the ABCI application, and `State.InitialHeight` to keep track of the initial height throughout the code. Fixes #2543 , based on [RFC-002](https://github.com/tendermint/spec/pull/119 ). Spec changes in https://github.com/tendermint/spec/pull/135 .
4 years ago
Callum Waters
312c4f8fe1
evidence: change evidence time to block time ( #5219 )
adds blockstore interface to evidence and adds fix to byzantine test
4 years ago
Callum Waters
68468fb024
evidence: fix usage of time field in abci evidence ( #5201 )
* fix usage of time in abci evidence
* update changelong and upgrading
* add test cases
4 years ago
Callum Waters
3c21c3546c
evidence: remove phantom validator evidence ( #5181 )
4 years ago
Anton Kaliaev
4d43bfe3bd
state: revert event hashing ( #5159 )
See ADR 058
Closes #5113
Spec PR: https://github.com/tendermint/spec/pull/122
4 years ago
Marko
dc71f265aa
types: check if nil or empty valset ( #5167 )
Solves #5138 in the way that if a validatorSet is nil or empty it will not try to transform it to protobug
Co-authored-by: Callum Michael Waters <cmwaters19@gmail.com>
4 years ago
Callum Waters
b5a5f9274d
evidence: minor correction to potential amnesia ev validate basic ( #5151 )
ValidateBasic() for PotentialAmnesiaEvidence checks that the rounds of the two votes are different and does not check Vote Type
ValidateBasic() now also ensures that the first block is not a nil block (else the validator hasn't actually locked onto a block)
4 years ago
Marko
7c8c356f71
ci: version linter fix ( #5128 )
## Description
linter version fix and run make format to have all ci run
Closes: #XXX
4 years ago
Marko
6ccccb0933
lint: errcheck ( #5091 )
## Description
add more error checks to tests
gonna do a third PR that tackles the non test cases
4 years ago
Callum Waters
37545bab88
evidence: new evidence event subscription ( #5108 )
4 years ago
Callum Waters
a97d05be4d
evidence: check lunatic vote matches header ( #5093 )
4 years ago
Marko
7e2cc1db5e
linter: (1/2) enable errcheck ( #5064 )
## Description
partially cleanup in preparation for errcheck
i ignored a bunch of defer errors in tests but with the update to go 1.14 we can use `t.Cleanup(func() { if err := <>; err != nil {..}}` to cover those errors, I will do this in pr number two of enabling errcheck.
ref #5059
4 years ago
Erik Grinaker
04b8cf7879
deps: bump tm-db to 0.6.0 ( #5058 )
4 years ago
Callum Waters
3ecc0ffe7e
evidence: replace mock evidence with mocked duplicate vote evidence ( #5036 )
4 years ago
Marko
5412426ae8
indexer: remove index filtering ( #5006 )
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
4 years ago
Callum Waters
65d7ce9c9c
evidence: improve amnesia evidence handling ( #5003 )
fix bug so that PotentialAmnesiaEvidence is being gossiped
handle inbound amnesia evidence correctly
add method to check if potential amnesia evidence is on trial
fix a bug with the height when we upgrade to amnesia evidence
change evidence to using just pointers.
More logging in the evidence module
Co-authored-by: Marko <marbar3778@yahoo.com>
4 years ago
Anton Kaliaev
ceac02b891
types: add AppVersion to ConsensusParams ( #5031 )
Co-authored-by: JamesRay <66258875@qq.com>
making it possible to change app version via EndBlock
4 years ago
Marko
dedf0d2350
proto: folder structure adhere to buf ( #5025 )
4 years ago
Marko
51da4fe356
types: rename partsheader to partsetheader ( #5029 )
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
4 years ago
Marko
b8b50733f0
encoding: remove codecs ( #4996 )
## Description
This pr removes amino from tendermint.
Closes : #4278
5 years ago
Marko
74cae49c3b
proto: leftover amino ( #4986 )
5 years ago
Anton Kaliaev
a8d8600308
[block#LastResultsHash] add Events + GasWanted/Used ( #4845 )
Closes #1007
5 years ago
Marko
bdac0818ac
p2p: proto leftover ( #4995 )
## Description
removing codec.go from p2p pkg and some leftover amino encoding
Closes: #XXX
5 years ago
Marko
f6243d8b9e
privval: migrate to protobuf ( #4985 )
5 years ago
Marko
31a361d119
proto: move keys to oneof ( #4983 )
5 years ago
Callum Waters
5697e144a7
evidence: adr56 form amnesia evidence ( #4821 )
Creates Amnesia Evidence which is formed from Potential Amnesia Evidence with either a matching proof or after a period of time denoted as the Amnesia Trial Period. This also adds the code necessary so that Amnesia Evidence can be validated and committed on a block
5 years ago
Anton Kaliaev
6ec58f1560
rpc: support EXISTS operator in /tx_search query ( #4979 )
Closes #4763
* check for Error after for loop ends
so we don't silently ignore errors, which would lead to clients getting
incomplete results
Refs https://github.com/tendermint/tendermint/pull/4979/files#r436511572
5 years ago
Marko
7a8224f8a3
state: proto migration ( #4972 )
## Description
the second part of state proto migration
Closes: #XXX
5 years ago
Marko
9ef266b88f
types: migrate params to protobuf ( #4962 )
5 years ago
Marko
b9af87c4ea
state: proto migration ( #4951 )
5 years ago
Marko
a88537bb88
ints: stricter numbers ( #4939 )
5 years ago
Marko
0da7d87351
proto: move mempool to proto ( #4940 )
* proto: move mempool to proto
- changes according to moving the mempool reactor to proto
Signed-off-by: Marko Baricevic <marbar3778@yahoo.com>
Closes : #2883
5 years ago