JayT106
e334555393
node/state: graceful shutdown in the consensus state ( #6370 )
4 years ago
Callum Waters
a91680efee
test: create common functions for easily producing tm data structures ( #6435 )
4 years ago
Aleksandr Bezobchuk
09a6ad7b1e
types: Refactor EventAttribute ( #6408 )
4 years ago
Callum Waters
20610be98c
state: keep a cache of block verification results ( #6402 )
4 years ago
Ismail Khoffi
ee70430255
libs: remove most of libs/rand ( #6364 )
4 years ago
JayT106
43eacd159f
state/indexer: reconstruct indexer, move txindex into the indexer package ( #6382 )
4 years ago
Aleksandr Bezobchuk
46e06c9732
state: fix block event indexing reserved key check ( #6314 )
copy 🍝 bug when porting similar logic from the tx indexing code.
4 years ago
Marko
32ee737d42
change index block log to info ( #6290 )
## Description
Change log from error to info for indexing blocks
4 years ago
Aleksandr Bezobchuk
d43a79ddf6
state: cleanup block indexing logs and null ( #6263 )
4 years ago
Aleksandr Bezobchuk
003f394512
rpc: index block events to support block event queries ( #6226 )
4 years ago
Marko
efd2fde474
privval: add ctx to privval interface ( #6240 )
## Description
- Add `context.Context` to Privval interface
This pr does not introduce context into our custom privval connection protocol because this will be removed in the next release. When this pr is released.
4 years ago
colin axnér
5a7ac0abdb
update outdated comment in state.go ( #6214 )
I couldn't find any references to `state.NextState(...)`. Looks like `updateState` replaced that function
4 years ago
Marko
0d0181856b
indexer: remove info log ( #6194 )
## Description
Replace info log with Debug.
4 years ago
Aleksandr Bezobchuk
c21f4c6fde
state executor: groom logs ( #6152 )
ref: #5912
4 years ago
githubsands
d5cf7831f1
state: save in batches within the state store ( #6067 )
4 years ago
Silas Davis
9498cd80bd
Normalise GenesisDoc before saving to state ( #6059 )
Co-authored-by: Callum <cmwaters19@gmail.com>
4 years ago
Callum Waters
162f67cf26
correct spelling to US english ( #6077 )
4 years ago
Callum Waters
90d3f56797
store: fix deadlock in pruning ( #6007 )
4 years ago
Marko
2a2279e010
types: cleanup protobuf.go ( #6023 )
## Description
- remove unused functions
- remove a function used in tests.
Closes: #XXX
4 years ago
Marko
1f01e5d726
params: remove blockTimeIota ( #5987 )
## Description
- removes blocktimeiota
- merges block params in abci and core state
- spec change: https://github.com/tendermint/spec/pull/248
Closes : #5939
4 years ago
Marko
70bb8cc8b7
proto: seperate native and proto types ( #5994 )
## Description
Separate protobuf and domain types. We should avoid using protobuf in our core logic.
ref #5460
4 years ago
Anton Kaliaev
d76add65a6
libs/log: format []byte as hexidecimal string (uppercased) ( #5960 )
Closes : #5806
Co-authored-by: Lanie Hei <heixx011@umn.edu>
4 years ago
Callum
af723eca8a
use correct source of evidence time
Conflicting votes are now sent to the evidence pool to form duplicate vote evidence only once
the height of the evidence is finished and the time of the block finalised.
4 years ago
Callum Waters
bada08c50c
state sync: last consensus params height is not set ( #5889 )
4 years ago
Callum Waters
5b698ed13b
tx indexer: use different field separator for keys ( #5865 )
4 years ago
Callum Waters
03a6fb2777
state: prune states using an iterator ( #5864 )
4 years ago
Callum Waters
9b9222f461
store: order-preserving varint key encoding ( #5771 )
4 years ago
Anton Kaliaev
e13b4386ff
abci: modify Client interface and socket client ( #5673 )
`abci.Client`:
- Sync and Async methods now accept a context for cancellation
* grpc client uses context to cancel both Sync and Async requests
* local client ignores context parameter
* socket client uses context to cancel Sync requests and to drop Async requests before sending them if context was cancelled prior to that
- Async methods return an error
* socket client returns an error immediately if queue is full for Async requests
* local client always returns nil error
* grpc client returns an error if context was cancelled before we got response or the receiving queue had a space for response (do not confuse with the sending queue from the socket client)
- specify clients semantics in [doc.go](https://raw.githubusercontent.com/tendermint/tendermint/27112fffa62276bc016d56741f686f0f77931748/abci/client/doc.go )
`mempool.TxInfo`
- add optional `Context` to `TxInfo`, which can be used to cancel `CheckTx` request
Closes #5190
4 years ago
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