Marko and GitHub
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
2021-05-28 14:22:31 +00:00
JayT106 and GitHub
711a718162
config/indexer: custom event indexing ( #6411 )
2021-05-27 10:44:46 -04:00
Greg Morrison and GitHub
692f23d589
events: Add block_id to NewBlockEvent ( #6478 )
...
Adds `block_id` to the `newblock` websocket event
Closes #6028
2021-05-27 07:43:24 +00:00
Marko and GitHub
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.
2021-05-25 16:25:31 +00:00
JayT106 and GitHub
e334555393
node/state: graceful shutdown in the consensus state ( #6370 )
2021-05-10 21:45:26 +02:00
Callum Waters and GitHub
a91680efee
test: create common functions for easily producing tm data structures ( #6435 )
2021-05-07 17:00:02 +02:00
Aleksandr Bezobchuk and GitHub
09a6ad7b1e
types: Refactor EventAttribute ( #6408 )
2021-04-30 09:27:51 -04:00
Callum Waters and GitHub
20610be98c
state: keep a cache of block verification results ( #6402 )
2021-04-29 08:31:38 +02:00
Ismail Khoffi and GitHub
ee70430255
libs: remove most of libs/rand ( #6364 )
2021-04-23 16:00:35 +02:00
JayT106 and GitHub
43eacd159f
state/indexer: reconstruct indexer, move txindex into the indexer package ( #6382 )
2021-04-21 16:37:44 -04:00
Aleksandr Bezobchuk and GitHub
46e06c9732
state: fix block event indexing reserved key check ( #6314 )
...
copy 🍝 bug when porting similar logic from the tx indexing code.
2021-04-03 16:18:54 +00:00
Marko and GitHub
32ee737d42
change index block log to info ( #6290 )
...
## Description
Change log from error to info for indexing blocks
2021-03-29 13:50:12 +00:00
Aleksandr Bezobchuk and GitHub
d43a79ddf6
state: cleanup block indexing logs and null ( #6263 )
2021-03-22 13:25:42 -04:00
Aleksandr Bezobchuk and GitHub
003f394512
rpc: index block events to support block event queries ( #6226 )
2021-03-22 11:47:35 -04:00
Marko and GitHub
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.
2021-03-16 14:41:03 +00:00
colin axnér and GitHub
5a7ac0abdb
update outdated comment in state.go ( #6214 )
...
I couldn't find any references to `state.NextState(...)`. Looks like `updateState` replaced that function
2021-03-05 13:36:07 +00:00
Marko and GitHub
0d0181856b
indexer: remove info log ( #6194 )
...
## Description
Replace info log with Debug.
2021-03-02 17:18:39 +00:00
Aleksandr Bezobchuk and GitHub
c21f4c6fde
state executor: groom logs ( #6152 )
...
ref: #5912
2021-02-23 15:57:27 +00:00
githubsands and GitHub
d5cf7831f1
state: save in batches within the state store ( #6067 )
2021-02-23 16:37:46 +01:00
9498cd80bd
Normalise GenesisDoc before saving to state ( #6059 )
...
Co-authored-by: Callum <cmwaters19@gmail.com >
2021-02-23 13:27:42 +01:00
Callum Waters and GitHub
162f67cf26
correct spelling to US english ( #6077 )
2021-02-11 18:59:18 +01:00
Callum Waters and GitHub
90d3f56797
store: fix deadlock in pruning ( #6007 )
2021-02-02 11:36:52 +01:00
Marko and GitHub
2a2279e010
types: cleanup protobuf.go ( #6023 )
...
## Description
- remove unused functions
- remove a function used in tests.
Closes: #XXX
2021-02-01 12:02:45 +00:00
Marko and GitHub
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
2021-01-28 13:47:24 +00:00
Marko and GitHub
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
2021-01-27 20:14:27 +00:00
d76add65a6
libs/log: format []byte as hexidecimal string (uppercased) ( #5960 )
...
Closes : #5806
Co-authored-by: Lanie Hei <heixx011@umn.edu >
2021-01-25 16:25:29 +04:00
Callum and Tess Rinearson
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.
2021-01-19 16:00:02 +01:00
Callum Waters and GitHub
bada08c50c
state sync: last consensus params height is not set ( #5889 )
2021-01-12 14:41:16 +01:00
Callum Waters and GitHub
5b698ed13b
tx indexer: use different field separator for keys ( #5865 )
2021-01-12 10:55:47 +01:00
Callum Waters and GitHub
03a6fb2777
state: prune states using an iterator ( #5864 )
2021-01-08 17:05:27 +01:00
Callum Waters and GitHub
9b9222f461
store: order-preserving varint key encoding ( #5771 )
2021-01-05 16:53:26 +01:00
Anton Kaliaev and GitHub
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
2020-11-30 16:46:16 +04:00
Callum Waters and GitHub
3922dde05d
evidence: structs can independently form abci evidence ( #5610 )
2020-11-04 17:14:48 +01:00
Callum Waters and GitHub
d1ef5028a0
block: fix max commit sig size ( #5567 )
2020-10-26 10:18:59 +01:00
Callum Waters and GitHub
55e8ccab21
block: use commit sig size instead of vote size ( #5490 )
2020-10-13 17:21:37 +02:00
Marko and GitHub
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
2020-10-13 10:33:21 +00:00
Marko and GitHub
346aa14db5
fix lint failures with 1.31 ( #5489 )
2020-10-13 10:22:53 +02:00
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 >
2020-10-12 14:13:45 +02:00
82e4693cc5
abci: remove setOption ( #5447 )
...
Remove Response/Request SetOption from ABCI.
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com >
2020-10-08 19:12:12 +02:00
Callum Waters and GitHub
302aec6dcc
evidence: use bytes instead of quantity to limit size ( #5449 )
...
## Description
Closes : #5432
2020-10-07 09:29:52 +00:00
Anton Kaliaev and GitHub
1635d1339c
state: more test cases for block validation ( #5415 )
...
Closes #2589
2020-09-28 11:57:35 +00:00
Anton Kaliaev and GitHub
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
2020-09-23 12:24:45 +04:00
Erik Grinaker and GitHub
58b4deca86
blockstore: fix race conditions when loading data ( #5382 )
...
Fixes #5377 and comments in #4588 (review).
2020-09-23 10:13:43 +04:00
Callum Waters and GitHub
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 )
2020-09-22 10:22:54 +02:00
Marko and GitHub
56911ee352
state: define interface for state store ( #5348 )
...
## Description
Make an interface for the state store.
Closes : #5213
2020-09-15 07:45:48 +00:00
Marko and GitHub
0ed8dba991
lint: enable errcheck ( #5336 )
...
## Description
Enable errcheck linter throughout the codebase
Closes : #5059
2020-09-07 15:03:18 +00:00
Marko and GitHub
b8d08b9ef4
lint: add errchecks ( #5316 )
...
## Description
Work towards enabling errcheck
ref #5059
2020-09-04 11:58:03 +00:00
Marko and GitHub
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
2020-08-26 15:28:46 +00:00
Callum Waters and GitHub
b7f6e47a42
evidence: modularise evidence by moving verification function into evidence package ( #5234 )
2020-08-20 18:11:21 +02:00
Erik Grinaker and GitHub
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.
2020-08-12 08:24:44 +00:00