JayT106
10fa151749
state/types: refactor makeBlock, makeBlocks and makeTxs ( #6567 )
Closes #3584
3 years ago
JayT106
a456b71f1f
state: move pruneBlocks from consensus/state to state/execution ( #6541 )
state: move pruneBlocks function from consensus/state to state/execution
Closes #5414
3 years ago
Callum Waters
32bc399bdd
node: fix genesis on start up ( #6563 )
3 years ago
JayT106
d2b78ec09b
indexer: use INSERT ... ON CONFLICT in the psql eventsink insert functions ( #6556 )
3 years ago
Callum Waters
d6b4bc267b
node/tests: clean up use of genesis doc and surrounding tests ( #6554 )
3 years ago
Callum Waters
6f6ac5c04e
state sync: reverse sync implementation ( #6463 )
3 years ago
Sam Kleinman
a855f96946
p2p: renames for reactors and routing layer internal moves ( #6547 )
3 years ago
Marko
1709e49813
version: revert version through ldflag only ( #6494 )
## Description
Add version back to versions, but allow it to be overridden via a ldflag.
Reason:
Many users are not setting the ldflag causing issues with tooling that relies on it (cosmjs)
closes #6488
cc @webmaster128
4 years ago
JayT106
711a718162
config/indexer: custom event indexing ( #6411 )
4 years ago
Greg Morrison
692f23d589
events: Add block_id to NewBlockEvent ( #6478 )
Adds `block_id` to the `newblock` websocket event
Closes #6028
4 years ago
Marko
719e028e00
libs: internalize some packages ( #6366 )
## Description
Internalize some libs. This reduces the amount ot public API tendermint is supporting. The moved libraries are mainly ones that are used within Tendermint-core.
4 years ago
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