dependabot[bot]
c9c570e151
build(deps): Bump google.golang.org/grpc from 1.42.0 to 1.43.0 ( #7454 )
* build(deps): Bump google.golang.org/grpc from 1.42.0 to 1.43.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.42.0 to 1.43.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.42.0...v1.43.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
3 years ago
Thane Thomson
12e3419f2b
rpc: Add experimental config params to allow for subscription buffer size control (tm v0.34.x) ( #7230 )
A workaround for #6729 . Add parameters to control buffer sizes for
event subscription RPC clients. On some networks, buffering causes
clients to be dropped and/or events to be lost.
For additional context, see the discussion on #7188 .
- Add experimental_subscription_buffer_size config parameter
- Add experimental_websocket_write_buffer_size config parameter
- Add experimental_close_on_slow_client config parameter
Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
3 years ago
dependabot[bot]
d0031b0503
build(deps): Bump github.com/go-kit/kit from 0.10.0 to 0.12.0 ( #7213 )
* build(deps): Bump github.com/go-kit/kit from 0.10.0 to 0.12.0
Bumps [github.com/go-kit/kit](https://github.com/go-kit/kit ) from 0.10.0 to 0.12.0.
- [Release notes](https://github.com/go-kit/kit/releases )
- [Commits](https://github.com/go-kit/kit/compare/v0.10.0...v0.12.0 )
---
updated-dependencies:
- dependency-name: github.com/go-kit/kit
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* add nolint
* fix lint
* fix build
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: tycho garen <garen@tychoish.com>
3 years ago
Sam Kleinman
4ef140f6ca
lint: cleanup pending lint errors ( #7237 )
3 years ago
mergify[bot]
0366c2b688
rpc: log update (backport #6825 ) ( #6826 )
3 years ago
mergify[bot]
da9eefd111
rpc: add chunked rpc interface (backport #6445 ) ( #6717 )
* rpc: add chunked rpc interface (#6445 )
(cherry picked from commit d9134063e7
)
# Conflicts:
# light/proxy/routes.go
# node/node.go
# rpc/core/net.go
# rpc/core/routes.go
* fix conflicts
Co-authored-by: Sam Kleinman <garen@tychoish.com>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
3 years ago
Callum Waters
2c2f511f24
light: correctly handle contexts (backport -> v0.34.x) ( #6685 )
3 years ago
Callum Waters
7869f5ec1d
light/evidence: handle FLA backport ( #6331 )
4 years ago
mergify[bot]
b7a4d5e7ba
fix: jsonrpc url parsing and dial function ( #6264 ) ( #6288 )
This PR fixes how the jsonrpc parses the URL, and how the dial function connects to the RPC.
Closes: https://github.com/tendermint/tendermint/issues/6260
(cherry picked from commit 9ecfcc93a6
)
Co-authored-by: Frojdi Dymylja <33157909+fdymylja@users.noreply.github.com>
4 years ago
mergify[bot]
b00cac9368
rpc: index block events to support block event queries (bp #6226 ) ( #6261 )
4 years ago
mergify[bot]
4e25703d58
rpc/jsonrpc/server: return an error in WriteRPCResponseHTTP(Error) (bp #6204 ) ( #6230 )
* rpc/jsonrpc/server: return an error in WriteRPCResponseHTTP(Error) (#6204 )
instead of panicking
Closes #5529
(cherry picked from commit 00b9524168
)
# Conflicts:
# CHANGELOG_PENDING.md
# rpc/jsonrpc/server/http_json_handler.go
# rpc/jsonrpc/server/http_server.go
# rpc/jsonrpc/server/http_server_test.go
# rpc/jsonrpc/server/http_uri_handler.go
* resolve conflicts
* fix linting
* fix conflict
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
Co-authored-by: Marko Baricevic <marbar3778@yahoo.com>
4 years ago
mergify[bot]
1b5697a41d
mempool/rpc: log grooming (bp #6201 ) ( #6203 )
4 years ago
mergify[bot]
a047a4a70f
logs: cleanup ( #6198 )
Co-authored-by: Marko <marbar3778@yahoo.com>
4 years ago
mergify[bot]
52b1d90f56
rpc/jsonrpc: Unmarshal RPCRequest correctly (bp #6191 ) ( #6193 )
* 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
```
(cherry picked from commit fe4e97afe0
)
# Conflicts:
# CHANGELOG_PENDING.md
* fix conflict
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
4 years ago
Callum Waters
b021ad5b7a
test: don't use foo-bar.net in TestHTTPClientMakeHTTPDialer ( #5997 ) ( #6047 )
This test relied on connecting to the external site `foo-bar.net`, and (predictably) the site went down and broke all of our CI runs. This changes it to use local HTTP servers instead.
Co-authored-by: Erik Grinaker <erik@interchain.berlin>
4 years ago
Marko
54338a52fa
proto: bump gogoproto (1.3.2) ( #5886 )
- bump gogoproto (1.3.2)
- regenerate proto files
Closes: #XXX
4 years ago
Aleksandr Bezobchuk
53463b3fef
rpc: fix content-type header
4 years ago
Callum Waters
9d354c842e
evidence: structs can independently form abci evidence ( #5610 )
4 years ago
Marko
9379bc92fd
fix lint failures with 1.31 ( #5489 )
4 years ago
Anton Kaliaev
55ff694aa6
light/rpc: fix ABCIQuery ( #5375 )
Closes #5106
4 years ago
Marko
09982ae407
backport block size fixes ( #5492 )
* mempool: length prefix txs when getting them from mempool (#5483 )
* correctly calculate evidence data size (#5482 )
* block: use commit sig size instead of vote size (#5490 )
* tx: reduce function to one parameter (#5493 )
4 years ago
Erik Grinaker
58b4deca86
blockstore: fix race conditions when loading data ( #5382 )
Fixes #5377 and comments in #4588 (review).
4 years ago
Anton Kaliaev
85a4be87a7
rpc/client: take context as first param ( #5347 )
Closes #5145
also applies to light/client
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
Thane Thomson
309e29c245
rpc: revert JSON-RPC/WebSocket response batching ( #5378 )
Revert the JSON-RPC/WebSocket response serialization format to the
standard way (i.e. a single RPC response per WebSocket text message) to
avoid breaking clients.
Serialization format changes will be discussed in an upcoming ADR.
Closes : #5373
4 years ago
Erik Grinaker
531fa07ad2
rpc: fix test data races ( #5363 )
Fixes a couple of test data races. `testing.T` is not concurrency-safe and should not be used in goroutines at all.
4 years ago
Erik Grinaker
817646a88e
rpc: fix openapi spec syntax error ( #5358 )
Broke in #5356 .
4 years ago
Anton Kaliaev
8aac1d1333
docs: document max entries for `/blockchain` RPC ( #5356 )
Closes #5339
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
Anton Kaliaev
59ec3d91e4
rpc/jsonrpc/server: ws server optimizations ( #5312 )
* docs: goleveldb is much more stable now
Refs https://github.com/syndtr/goleveldb/issues/226#issuecomment-682495490
* rpc/core/events: make sure WS client receives every event
previously, if the write buffer was full, the response would've been
lost without any trace (log msg, etc.)
* rpc/jsonrpc/server: set defaultWSWriteChanCapacity to 1
Refs #3905
Closes #3829
setting write buffer capacity to 1 makes transactions count per block
more stable and also reduces the pauses length by 20s.
before: https://github.com/tendermint/tendermint/issues/3905#issuecomment-681854328 net.Read - 20s
after: net.Read - 0.66s
* rpc/jsonrpc/server: buffer writes and avoid io.ReadAll during read
4 years ago
Marko
e0140e4beb
evidence: remove ConflictingHeaders type ( #5317 )
## Description
Remove ConflictingHeaders & compositeEvidence types
Ref #5288
4 years ago
Marko
b6a5f7b126
rpc: add private & unconditional to /dial_peer ( #5293 )
## Description
Allow dialing of private and unconditional peers through the RPC
Closes : #1705
4 years ago
Anton Kaliaev
43c3e4265b
config: rename prof_laddr to pprof_laddr and move it to rpc ( #5315 )
* config: rename prof_laddr to pprof_laddr and move it to rpc
also, remove `/unsafe_start_cpu_profiler`, `/unsafe_stop_cpu_profiler`
and `/unsafe_write_heap_profile` in favor of pprof server functionality.
Closes #5303
* update changelog
* log start
4 years ago
Marko
5df55f289c
docs: updates to various sections ( #5285 )
## Description
Updates to various sections of docs.
Fix docs deployment
Closes: #XXX
4 years ago
Marko
9b4f1a8081
docs: rename swagger to openapi ( #5263 )
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
4 years ago
Marko
b74427fa82
swagger: update ( #5257 )
4 years ago
Marko
4a38bd216e
docs: cleanup ( #5252 )
4 years ago
Marko
42e4e8b58e
lint: add markdown linter ( #5254 )
4 years ago
Marko
9e98c74e3c
crypto: API modifications ( #5236 )
## Description
This PR aims to make the crypto.PubKey interface more intuitive.
Changes:
- `VerfiyBytes` -> `VerifySignature`
Before `Bytes()` was amino encoded, now since it is the byte representation should we get rid of it entirely?
EDIT: decided to keep `Bytes()` as it is useful if you are using the interface instead of the concrete key
Closes: #XXX
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
bfcf45a461
evidence: remove validator index verification ( #5225 )
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
Marko
2d167aefcf
ci: freeze golangci action version ( #5196 )
## Description
This PR updates golang-ci to latest and stops looking at master for the action.
Closes: #XXX
4 years ago
Anton Kaliaev
db345066a8
rpc/client/http: log error ( #5182 )
Closes #3410
4 years ago
Anton Kaliaev
2b97e03cf6
docs: document canonical field ( #5166 )
Closes #2769
Spec PR: https://github.com/tendermint/spec/pull/125
4 years ago
Anton Kaliaev
4ab7b7d7ca
docs: add more details on Vote struct from /consensus_state ( #5164 )
Closes #2743
4 years ago
Anton Kaliaev
95fc7e58ee
rpc/jsonrpc/server: merge WriteRPCResponseHTTP and WriteRPCResponseAr ( #5141 )
...rrayHTTP
Closes #5135
Also, wrote a test for WriteRPCResponseHTTPError and used it with correct status codes according to https://www.jsonrpc.org/historical/json-rpc-over-http.html#response-codes
4 years ago
Marko
909163afa8
rpc: make gasWanted/Used snake_case ( #5137 )
## Description
THis pr adds `json_name` to replace proto generated json tags.
Closes : #5111
4 years ago