Callum Waters
2c2f511f24
light: correctly handle contexts (backport -> v0.34.x) ( #6685 )
3 years ago
Callum Waters
8b84c7c168
e2e: disable app tests for light client ( #6672 )
3 years ago
mergify[bot]
0712063ec8
config: add example on external_address (backport #6621 ) ( #6624 )
3 years ago
Callum Waters
c2908ef785
release: prepare changelog for v0.34.11 ( #6597 )
3 years ago
Callum Waters
d515bbcf1d
statesync: increase chunk priority and robustness ( #6582 )
3 years ago
mergify[bot]
be8c9833ca
state sync: tune request timeout and chunkers (backport #6566 ) ( #6581 )
* state sync: tune request timeout and chunkers (#6566 )
(cherry picked from commit 7d961b55b2
)
# Conflicts:
# CHANGELOG_PENDING.md
# config/config.go
# internal/statesync/reactor.go
# internal/statesync/reactor_test.go
# node/node.go
# statesync/syncer.go
* fix build
* fix config
* fix config
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com>
3 years ago
mergify[bot]
358b1f23c0
p2p/conn: check for channel id overflow before processing receive msg (backport #6522 ) ( #6528 )
* p2p/conn: check for channel id overflow before processing receive msg (#6522 )
Per tendermint spec, each Channel has a globally unique byte id, which
is mapped to uint8 in Go. However, the proto PacketMsg.ChannelID field
is declared as int32, and when receive the packet, we cast it to a byte
without checking for possible overflow. That leads to a malform packet
with invalid channel id is sent successfully.
To fix it, we just add a check for possible overflow, and return invalid
channel id error.
Fixed #6521
(cherry picked from commit 1f46a4c90e
)
3 years ago
Marko
c376b44f1c
Backport: #6494 ( #6506 )
* version: revert version through ldflag only (#6494 )
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
* revert variable rename
* Update CHANGELOG_PENDING.md
4 years ago
Callum Waters
8dd8a4e8ea
libs/os: avoid CopyFile truncating destination before checking if regular file (backport: #6428 ) ( #6436 )
4 years ago
mergify[bot]
353e3a3243
evidence: fix bug with hashes (backport #6375 ) ( #6381 )
4 years ago
Tess Rinearson
a9b4fac610
.github: make core team codeowners ( #6384 )
4 years ago
mergify[bot]
1614e12035
statesync: improve e2e test outcomes (backport #6378 ) ( #6380 )
(cherry picked from commit d36a5905a6
)
Co-authored-by: Sam Kleinman <garen@tychoish.com>
4 years ago
Tess Rinearson
68eceda0b5
changelog: update for 0.34.10 ( #6357 )
4 years ago
Callum Waters
b878326396
e2e: relax timeouts ( #6356 )
* remove duplicate light error
* quieten handling of txs that already exist in the mempool
* notch back e2e timeouts
4 years ago
mergify[bot]
693e11c6c6
e2e: tx load to use broadcast sync instead of commit (backport #6347 ) ( #6352 )
4 years ago
mergify[bot]
6cc3e23a95
light: handle too high errors correctly (backport #6346 ) ( #6351 )
4 years ago
Callum Waters
a9ac63510d
p2p: fix using custom channels ( #6339 )
4 years ago
mergify[bot]
bd968aba1f
build(deps): Bump google.golang.org/grpc from 1.36.1 to 1.37.0 (bp #6330 ) ( #6335 )
4 years ago
Tess Rinearson
e54fdb6204
changelog: prepare changelog for 0.34.9 release ( #6333 )
4 years ago
Callum Waters
7869f5ec1d
light/evidence: handle FLA backport ( #6331 )
4 years ago
mergify[bot]
af35ca9cf4
state: fix block event indexing reserved key check ( #6314 ) ( #6315 )
4 years ago
Gustavo Chaín
c9966cd6be
p2p: Fix "Unknown Channel" bug on CustomReactors ( #6297 )
4 years ago
mergify[bot]
6c0c27320c
change index block log to info ( #6290 ) ( #6294 )
## Description
Change log from error to info for indexing blocks
(cherry picked from commit 32ee737d42
)
Co-authored-by: Marko <marbar3778@yahoo.com>
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]
0682337de2
logging: shorten precommit log message ( #6270 ) ( #6274 )
This is an attempt to clean up the logging message as requested in #6269 .
(cherry picked from commit 3f9066b290
)
Co-authored-by: Sam Kleinman <garen@tychoish.com>
4 years ago
mergify[bot]
b00cac9368
rpc: index block events to support block event queries (bp #6226 ) ( #6261 )
4 years ago
mergify[bot]
b2f01448be
e2e: integrate light clients (bp #6196 )
integrate light clients (#6196 )
fix e2e app test (#6223 )
fix light client generator (#6236 )
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]
d004a584f8
use error.Is to check for nondeterminstic vote error type ( #6237 ) ( #6239 )
(cherry picked from commit bf8cce83db
)
Co-authored-by: Callum Waters <cmwaters19@gmail.com>
4 years ago
mergify[bot]
11523b1302
note: add nondeterministic note to events ( #6220 ) ( #6225 )
## 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
(cherry picked from commit 884d4d5252
)
Co-authored-by: Marko <marbar3778@yahoo.com>
4 years ago
mergify[bot]
8bb85856d0
e2e: add benchmarking functionality (bp #6210 ) ( #6216 )
4 years ago
mergify[bot]
b9cdd0e28e
indexer: remove info log ( #6194 )
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Marko <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
mergify[bot]
28bebe3ddb
docs/tutorials: fix sample code #6186
Co-authored-by: winor <12413150+winor30@users.noreply.github.com>
Co-authored-by: Marko Baricevic <marbar3778@yahoo.com>
4 years ago
Tess Rinearson
dea73e08b3
changelog: update for 0.34.8 ( #6181 )
4 years ago
mergify[bot]
28ce355656
libs/log: [JSON format] include timestamp (bp #6174 ) ( #6179 )
Closes #6146
4 years ago
mergify[bot]
55ae781efa
logging: print string instead of callback ( #6178 )
## 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.
Co-authored-by: Marko <marbar3778@yahoo.com>
4 years ago
mergify[bot]
0191a22636
state executor: groom logs (bp #6152 ) ( #6172 )
4 years ago
Tess Rinearson
9d9b947b02
goreleaser: reintroduce arm64 build instructions
4 years ago
Tess Rinearson
c6e0d20d4b
Revert "Revert "tooling: remove tools/Makefile (bp #6102 ) ( #6106 )""
This reverts commit afd07096a7
.
I had believed that this tooling change could have been what broke our
GoReleaser flow; I now know that it was a result of changes in Go 1.16
and an update to GoReleaser! GoReleaser has now been updated again
and our flow should be un-broken.
4 years ago
Tess Rinearson
efd9d07257
changelog: fix changelog pending version numbering ( #6149 )
4 years ago
mergify[bot]
a0f376127d
consensus: more log grooming (bp #6140 ) ( #6143 )
4 years ago
mergify[bot]
8d3c36ccc3
abci: Fix ReCheckTx for Socket Client (bp #6124 ) ( #6125 )
4 years ago
Tess Rinearson
15eb2c2211
.goreleaser: remove arm64 build instructions and bump changelog again ( #6131 )
4 years ago
Tess Rinearson
e4d2893ff6
changelog: bump to v0.34.6
4 years ago
Tess Rinearson
afd07096a7
Revert "tooling: remove tools/Makefile (bp #6102 ) ( #6106 )"
This reverts commit 1b2174a0da
.
4 years ago
Tess Rinearson
340071d81b
changelog: update for 0.34.5 ( #6129 )
4 years ago
Tess Rinearson
53d40e1092
consensus: remove privValidator from log call ( #6128 )
4 years ago