Aleksandr Bezobchuk
003f394512
rpc: index block events to support block event queries ( #6226 )
4 years ago
Sam Kleinman
99c73dd3c1
refactor blockchain/v0 tests to use p2ptest ( #6256 )
4 years ago
dependabot[bot]
206479f1ec
build(deps): Bump github.com/prometheus/client_golang ( #6258 )
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/prometheus/client_golang/releases )
- [Changelog](https://github.com/prometheus/client_golang/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prometheus/client_golang/compare/v1.9.0...v1.10.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
7d68a56f32
build(deps): Bump github.com/golang/protobuf from 1.4.3 to 1.5.1 ( #6254 )
Bumps [github.com/golang/protobuf](https://github.com/golang/protobuf ) from 1.4.3 to 1.5.1.
- [Release notes](https://github.com/golang/protobuf/releases )
- [Commits](https://github.com/golang/protobuf/compare/v1.4.3...v1.5.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Callum Waters
6f6083dae3
linter: fix nolintlint warnings ( #6257 )
4 years ago
Callum Waters
dd84867e2b
bump linter version to 1.38 ( #6253 )
4 years ago
Callum Waters
9f7051d38a
node: implement tendermint modes ( #6241 )
Co-authored-by: dongsam <dongsamb@gmail.com>
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
4 years ago
Sam Kleinman
5c547137f6
fix: make p2p evidence_pending test not timing dependent ( #6252 )
4 years ago
Sam Kleinman
c52de487e7
test: refactor mempool reactor to use new p2ptest infrastructure ( #6250 )
4 years ago
Sam Kleinman
acbe3f6570
P2P: Evidence Reactor Test Refactor ( #6238 )
4 years ago
Sam Kleinman
c553c0cf20
cleanup consensus test ( #6246 )
4 years ago
Anton Kaliaev
fa51b652e8
.github: remove myself from CODEOWNERS ( #6248 )
4 years ago
dependabot[bot]
b00962ed57
build(deps): Bump codecov/codecov-action from v1.2.2 to v1.3.1 ( #6247 )
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from v1.2.2 to v1.3.1.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v1.2.2...fcebab03f26c7530a22baa63f06b3e0515f0c7cd )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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
Callum Waters
fa781e6bb7
e2e: fix light client generator ( #6236 )
4 years ago
Marko
6ffdf181f2
crypto: ed25519 & sr25519 batch verification ( #6120 )
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
4 years ago
Callum Waters
bf8cce83db
use error.Is to check for nondeterminstic vote error type ( #6237 )
4 years ago
dependabot[bot]
799f87b55b
build(deps): Bump codecov/codecov-action from v1.2.1 to v1.2.2 ( #6231 )
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from v1.2.1 to v1.2.2.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v1.2.1...1f8f3abcccf7960749744fd13547965f0e7d1bdd )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
72c9364154
build(deps): Bump rtCamp/action-slack-notify from ae42232590
to 2.1.3 ( #6234 )
Bumps [rtCamp/action-slack-notify](https://github.com/rtCamp/action-slack-notify ) from ae42232590
to 2.1.3. This release includes the previously tagged commit.
- [Release notes](https://github.com/rtCamp/action-slack-notify/releases )
- [Commits](ae42232590
...f565a63638bd3615e76249bffab00fcb9dab90f7)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Callum Waters
6b4024ad75
fix e2e app test ( #6223 )
4 years ago
Anton Kaliaev
00b9524168
rpc/jsonrpc/server: return an error in WriteRPCResponseHTTP(Error) ( #6204 )
instead of panicking
Closes #5529
4 years ago
Marko
884d4d5252
note: add nondeterministic note to events ( #6220 )
## Description
Since events are not hashed into the header they can be non deterministic. Changing an event is not consensus breaking. Will update docs in the spec
4 years ago
Callum Waters
1c314c830e
blockstore: save only the last seen commit ( #6212 )
4 years ago
Alessio Treglia
d27cc6e5e9
build with go1.16 ( #6213 )
Co-authored-by: Marko <marbar3778@yahoo.com>
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
Callum Waters
418e2c140f
e2e: integrate light clients ( #6196 )
4 years ago
Anton Kaliaev
4540bef665
localnet: fix localnet by excluding self from persistent peers list ( #6209 )
Closes #6205
4 years ago
dependabot[bot]
6625d125a9
build(deps): Bump JamesIves/github-pages-deploy-action from 4.0.0 to 4.1.0 ( #6215 )
Bumps [JamesIves/github-pages-deploy-action](https://github.com/JamesIves/github-pages-deploy-action ) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/JamesIves/github-pages-deploy-action/releases )
- [Commits](https://github.com/JamesIves/github-pages-deploy-action/compare/4.0.0...3dbacc7e69578703f91f077118b3475862cb09b8 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Callum Waters
0566bea8b2
e2e: add benchmarking functionality ( #6210 )
4 years ago
Marko
8c539f7c2b
logs: cleanup ( #6198 )
4 years ago
Aleksandr Bezobchuk
be88fd3e63
mempool/rpc: log grooming ( #6201 )
4 years ago
Callum Waters
cab10db725
e2e: adjust timeouts to be dynamic to size of network ( #6202 )
4 years ago
Callum Waters
90fe178b52
mempool: don't return an error on checktx with the same tx ( #6199 )
4 years ago
Marko
0d0181856b
indexer: remove info log ( #6194 )
## Description
Replace info log with Debug.
4 years ago
Anton Kaliaev
36d92cd0b6
test/fuzz: fix rpc, secret_connection and pex tests ( #6190 )
* test/fuzz: fix rpc, secret_connection and pex tests
- ignore empty data in rpc
- provide correct IP in pex
- spawn a goroutine for Write and do multiple Read(s)
* test/fuzz: fix init in pex test
* test/fuzz: assign NewServeMux to global var
* test/fuzz: only try to Unmarshal if blob is not empty
* run fuzz tests for PRs which modify fuzz tests themselves
* test/fuzz: move MakeSwitch into init
4 years ago
Anton Kaliaev
fe4e97afe0
rpc/jsonrpc: Unmarshal RPCRequest correctly ( #6191 )
i.e. without double pointer. With double pointer, it was possible to
submit `null` value, which will crash the server.
```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x189ddc0]
goroutine 1 [running]:
github.com/tendermint/tendermint/rpc/jsonrpc/types.(*RPCRequest).UnmarshalJSON(0xc0000147e0, 0xc00029f201, 0x4, 0x1ff, 0x883baa0, 0xc0000147e0)
/Users/anton/go/src/github.com/tendermint/tendermint/rpc/jsonrpc/types/types.go:70 +0x100
encoding/json.(*decodeState).literalStore(0xc000216bb0, 0xc00029f201, 0x4, 0x1ff, 0x1998800, 0xc0000147e0, 0x199, 0xc000231700, 0x10e0a5e, 0x197)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:860 +0x30ce
encoding/json.(*decodeState).value(0xc000216bb0, 0x1998800, 0xc0000147e0, 0x199, 0x1998800, 0xc0000147e0)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:384 +0x40c
encoding/json.(*decodeState).array(0xc000216bb0, 0x18df040, 0xc0001be540, 0x16, 0xc000216bd8, 0x10e405b)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:558 +0x365
encoding/json.(*decodeState).value(0xc000216bb0, 0x18df040, 0xc0001be540, 0x16, 0x16, 0x6e)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:360 +0x22f
encoding/json.(*decodeState).unmarshal(0xc000216bb0, 0x18df040, 0xc0001be540, 0xc000216bd8, 0x0)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:180 +0x2c9
encoding/json.Unmarshal(0xc00029f200, 0x6, 0x200, 0x18df040, 0xc0001be540, 0x0, 0x0)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:107 +0x15d
```
4 years ago
Tess Rinearson
ddba7f931a
changelog: update for 0.34.8 ( #6183 )
4 years ago
Anton Kaliaev
089b314bdb
test/fuzz: fix PEX reactor test ( #6188 )
* test/fuzz: fix PEX reactor test
* .github: [fuzz] increase retention period for crashers
4 years ago
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.
4 years ago
Marko
e2384a00ce
privval: return errors on loadFilePV ( #6185 )
## Description
- return errors on `loadFilePv`
closes #6182
4 years ago
winor
f57aaa4925
docs/tutorials: fix sample code ( #6186 )
4 years ago
dependabot[bot]
611dd5ad46
build(deps): Bump google.golang.org/grpc from 1.35.0 to 1.36.0 ( #6180 )
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.35.0 to 1.36.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.35.0...v1.36.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Anton Kaliaev
fc5a108d53
libs/log: [JSON format] include timestamp ( #6174 )
Closes #6146
4 years ago
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
4 years ago
dependabot[bot]
bd14bb66e9
build(deps): Bump golangci/golangci-lint-action from v2.4.0 to v2.5.1 ( #6175 )
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from v2.4.0 to v2.5.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v2.4.0...d9f0e73c0497685d68af8c58280f49fcaf0545ff )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
4 years ago
Marko
45572117ae
logging: print string instead of callback ( #6177 )
## Description
Fixes marshaling error in sdk
closes https://github.com/cosmos/cosmos-sdk/issues/8578
the output stays the same, we are avoiding the passing of the callback because sdk uses typed logging.
4 years ago
Anton Kaliaev
0f4124fb54
rpc/client/http: Do not drop events even if the `out` channel is full ( #6163 )
```
// unbuffered
out, err := httpClient.Subscribe(ctx, "event.type=NewTx and account.name=Jack", 0)
// buffered
out, err := httpClient.Subscribe(ctx, "event.type=NewTx AND account.name=Jack", 20)
```
Before: when the `out` channel is buffered and becomes full, we drop an event (+ log the error)
After: when the `out` channel is buffered and becomes full, we block
**Before it was not apparent to the app when an event was dropped (looking at the logs is manual task). After this PR, if the user does not read from `out` on 1 subscription, all other subscriptions will be stuck too.**
Closes #6161
4 years ago
Tess Rinearson
be35c893d3
docs/security: add preallocated list of security vulnerability names ( #6167 )
I'm also going to add the retros for all previous security incidents to this directory - I'd like to have them somewhere more central than the Cosmos Forum, where they currently live.
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