Marko
eaa0468190
types: revert breaking change ( #6538 )
...
## Description
revert #5523 to avoid breaking changes
cc @greg-szabo
2021-06-07 08:26:47 +00:00
Sam Kleinman
663c0bba9c
rpc: decouple test fixtures from node implementation ( #6533 )
2021-06-04 09:10:38 -04:00
Callum Waters
618c945d54
simplify initialization of light client ( #6530 )
2021-06-03 15:57:55 +02:00
Callum Waters
c0fcc5f6bb
fix net_info call on light rpc ( #6514 )
2021-05-31 15:46:49 +02:00
Sam Kleinman
e9928f6186
p2p: limit rate of dialing new peers ( #6485 )
2021-05-26 14:39:04 -04:00
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.
2021-05-25 16:25:31 +00:00
Callum Waters
72ee5aab26
evidence: separate abci specific validation ( #6473 )
2021-05-25 16:53:14 +02:00
Callum Waters
09e0df8479
light: spec alignment on verify skipping ( #6474 )
2021-05-25 14:48:15 +02:00
Sam Kleinman
d9134063e7
rpc: add chunked rpc interface ( #6445 )
2021-05-24 09:48:27 -04:00
Sam Kleinman
fdd506a126
rpc: clean up client global state in tests ( #6438 )
2021-05-11 10:22:38 -04:00
Callum Waters
811dbe439f
light: ensure trust level is strictly less than 1 ( #6447 )
2021-05-11 15:13:52 +02:00
Callum Waters
a91680efee
test: create common functions for easily producing tm data structures ( #6435 )
2021-05-07 17:00:02 +02:00
JayT106
ca7dbea05b
Set cache control in the HTTP-RPC response header ( #6265 )
2021-04-14 14:05:27 +02:00
Callum Waters
d4d2b66067
light: handle too high errors correctly ( #6346 )
2021-04-13 14:21:00 +02:00
Callum Waters
a818f914ab
fix deadlock in light tests ( #6332 )
2021-04-08 19:30:19 +02:00
Callum Waters
b272746444
Merge pull request from GHSA-f3w5-v9xx-rp8p
...
* add time warping lunatic attack test
* create too high and connecton refused errors and add to the light client provider
* add height check to provider
* introduce block lag
* add detection logic for processing forward lunatic attack
* add node-side verification logic
* clean up tests and formatting
* update adr's
* update testing
* fix fetching the latest block
* format
* update changelog
* implement suggestions
* modify ADR's
* format
* clean up node evidence verification
2021-04-08 08:10:03 -07:00
Aleksandr Bezobchuk
003f394512
rpc: index block events to support block event queries ( #6226 )
2021-03-22 11:47:35 -04:00
Callum Waters
fa781e6bb7
e2e: fix light client generator ( #6236 )
2021-03-15 13:04:33 +01:00
Callum Waters
418e2c140f
e2e: integrate light clients ( #6196 )
2021-03-05 14:24:45 +01:00
Callum Waters
37d36cd5bc
light: improve provider handling ( #6053 )
...
Introduces heuristics that track the amount of no responses or unavailable blocks a provider has for more robust provider handling by the light client. Use concurrent calls to all witnesses when a new primary is needed.
2021-03-01 12:04:02 +01:00
Anton Kaliaev
e9e5026dac
rpc/client/http: drop endpoint arg from New and add WSOptions ( #6176 )
...
also
- replace `MaxReconnectAttempts`, `ReadWait`, `WriteWait` and `PingPeriod` options with `WSOptions` in `WSClient` (rpc/jsonrpc/client/ws_client.go).
- set default write wait to 10s for `WSClient`(rpc/jsonrpc/client/ws_client.go)
- unexpose `WSEvents`(rpc/client/http.go)
Closes #6162
2021-02-25 06:57:31 +00:00
Callum Waters
29360f955c
light: improve timeout functionality ( #6145 )
2021-02-18 23:49:24 +01:00
Bipul Prasad
90c290ac52
rpc: standardize error codes ( #6019 )
2021-02-18 17:54:02 +01:00
Callum Waters
162f67cf26
correct spelling to US english ( #6077 )
2021-02-11 18:59:18 +01:00
Callum Waters
ee3f34f4ab
light: create provider options struct ( #6064 )
2021-02-08 18:23:31 +01:00
Callum Waters
1608484de8
remove witnesses in order of decreasing index ( #6058 )
2021-02-08 12:34:02 +01:00
Callum Waters
b9b55db4e5
light: remove max retry attempts from client and add to provider ( #6054 )
2021-02-05 18:01:34 +01:00
Callum Waters
c7b619188d
light: fix panic with RPC calls to commit and validator when height is nil ( #6026 )
2021-02-02 14:01:39 +01:00
Callum Waters
90d3f56797
store: fix deadlock in pruning ( #6007 )
2021-02-02 11:36:52 +01:00
Anton Kaliaev
1cd9bdb80b
light/provider/http: fix Validators ( #6022 )
...
Closes #6010
2021-02-01 11:32:37 +00:00
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
2021-01-27 20:14:27 +00:00
Anton Kaliaev
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 Waters
5cbb8263b4
patch concurrency issue with pruning in the light store ( #5910 )
2021-01-17 17:14:14 +01:00
Callum Waters
ca285844ea
light: fix light store deadlock ( #5901 )
2021-01-14 17:22:09 +01:00
Callum Waters
385ea1db7d
store: use db iterators for pruning and range-based queries ( #5848 )
2021-01-08 13:12:54 +01:00
Callum Waters
9b9222f461
store: order-preserving varint key encoding ( #5771 )
2021-01-05 16:53:26 +01:00
Callum Waters
f368b91caf
light: minor fixes / standardising errors ( #5716 )
...
## Description
I'm just doing a self audit of the light client. There's a few things I've changed
- Validate trust level in `VerifyNonAdjacent` function
- Make errNoWitnesses public (it's something people running software on top of a light client should be able to parse)
- Remove `ChainID` check of witnesses on start up. We do this already when we compare the first header with witnesses
- Remove `ChainID()` from provider interface
Closes : #4538
2020-12-01 12:53:53 +00:00
Callum Waters
68dc751a8c
light: ensure required header fields are present for verification ( #5677 )
2020-11-19 12:02:58 +01:00
Callum Waters
909da42789
light: make fraction parts uint64, ensuring that it is always positive ( #5655 )
2020-11-17 14:23:16 +01:00
Callum Waters
3922dde05d
evidence: structs can independently form abci evidence ( #5610 )
2020-11-04 17:14:48 +01:00
Anton Kaliaev
627f7b5989
light: run detector for sequentially validating light client ( #5538 )
...
Closes #5445
2020-11-02 12:42:03 +04:00
Anton Kaliaev
8e6194626e
light: model-based tests ( #5461 )
...
This is the first iteration of model-based testing in Go Tendermint. The test runner is using the static JSON fixtures located under the ./json directory. In the future, the Rust tensgen binary will be used to generate those (given the static intermediate scenarios and the test seed, which will be published along with each testgen release).
Closes : #5322
2020-11-02 12:07:18 +04:00
Anton Kaliaev
7121f68f25
light/rpc: fix ABCIQuery ( #5375 )
...
Closes #5106
2020-10-12 16:36:37 +04:00
Anton Kaliaev
12ebd7735a
light: cross-check the very first header ( #5429 )
...
Closes #5428
2020-10-09 14:29:22 +04:00
Callum Waters
a4b7018732
light: expand on errors and docs ( #5443 )
2020-10-02 20:05:15 +02:00
Callum Waters
f02987e7bc
simplify commit and validators rpc calls ( #5393 )
2020-09-25 11:19:04 +02:00
Callum Waters
ca8a404c7c
cli: light home dir should default to where the full node default is ( #5392 )
2020-09-25 08:45:56 +02:00
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
2020-09-23 12:24:45 +04:00
Anton Kaliaev
85a4be87a7
rpc/client: take context as first param ( #5347 )
...
Closes #5145
also applies to light/client
2020-09-23 09:21:57 +04:00
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 )
2020-09-22 10:22:54 +02:00