mergify[bot]
16ba782fa6
cli: allow node operator to rollback last state (backport #7033 ) ( #7080 )
3 years ago
M. J. Fromberger
474ed04273
Import Postgres driver support for the psql indexer (backport). ( #7057 )
I accidentally omitted this from the backport in #6906 .
Fixes #7043 .
3 years ago
Callum Waters
2d8287d0f7
e2e: allow running of single node using the e2e app (backport) ( #7024 )
3 years ago
M. J. Fromberger
849461aab2
Release v0.34.13
https://github.com/tendermint/tendermint/blob/v0.34.13/CHANGELOG.md#v0.34.12
3 years ago
M. J. Fromberger
8ba6d218e4
Backport the psql indexer into v0.34.x ( #6906 )
This change backports the PostgreSQL indexing sink, addressing part of #6828 .
Development on the main branch has diverged substantially since the v0.34.x
release. It includes package moves, breaking API and protobuf schema changes,
and new APIs, all of which together have a large footprint on the mapping
between the implementation at tip and the v0.34 release branch.
To avoid the need to retrofit all of those improvements, this change works by
injecting the new indexing sink into the existing (v0.34) indexing interfaces
by delegation. This means the backport does _not_ pull in all the newer APIs
for event handling, and thus has minimal impact on existing code written
against the v0.34 package structure.
This change includes the test for the `psql` implementation, and thus updates
some Go module dependencies. Because it does not interact with any other types,
however, I did not add any unit tests to other packages in this change.
Related changes:
* Update module dependencies for psql backport.
* Update test data to be type-compatible with the old protobuf types.
* Add config settings for the PostgreSQL indexer.
* Clean up some linter settings.
* Hook up the psql indexer in the node main.
3 years ago
Callum Waters
73ef2675ce
statesync: improve stateprovider handling in the syncer (backport) ( #6881 )
3 years ago
Tess Rinearson
3dff227c5b
changelog: prepare for v0.34.12 ( #6831 )
3 years ago
Tess Rinearson
e290bd624f
changelog_pending: add missing entry ( #6830 )
3 years ago
mergify[bot]
0366c2b688
rpc: log update (backport #6825 ) ( #6826 )
3 years ago
mergify[bot]
b69ac23fd2
light: add case to catch cancelled contexts within the detector (backport #6701 ) ( #6720 )
3 years ago
Callum Waters
2c2f511f24
light: correctly handle contexts (backport -> v0.34.x) ( #6685 )
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
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
mergify[bot]
353e3a3243
evidence: fix bug with hashes (backport #6375 ) ( #6381 )
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
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
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
Gustavo Chaín
c9966cd6be
p2p: Fix "Unknown Channel" bug on CustomReactors ( #6297 )
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]
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
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
Tess Rinearson
efd9d07257
changelog: fix changelog pending version numbering ( #6149 )
4 years ago
mergify[bot]
8d3c36ccc3
abci: Fix ReCheckTx for Socket Client (bp #6124 ) ( #6125 )
4 years ago
Tess Rinearson
4a0fab041b
changelog: update for v0.34.4 ( #6096 )
4 years ago
Anton Kaliaev
f48b154751
evidence: terminate broadcastEvidenceRoutine when peer is stopped ( #6068 )
4 years ago
Callum Waters
3c22ed8320
light: fix panic with RPC calls to commit and validator when height is nil ( #6040 )
4 years ago
Anton Kaliaev
7f02d8971c
light/provider/http: fix Validators ( #6024 )
Closes #6010
4 years ago
Tess Rinearson
6b2ab0f0e1
changelog: update for 0.34.3 ( #5926 )
4 years ago
Tess Rinearson
23c8a7a93d
changelog: prepare 0.34.2 release ( #5894 )
4 years ago
Callum Waters
cf3a720988
state sync: correctly set last consensus params height ( #5889 )
4 years ago
Callum Waters
ad552b2bb1
evidence: buffer evidence from consensus ( #5890 )
4 years ago
Erik Grinaker
fca7c6449a
libs/os: EnsureDir now returns IO errors and checks file type ( #5852 )
Fixes #5839 .
4 years ago
Tess Rinearson
2924d41f8b
changelog: update changelog for v0.34.1 ( #5872 )
4 years ago
Erik Grinaker
13833cba9e
p2p: fix MConnection inbound traffic statistics and rate limiting ( #5868 ) ( #5870 )
Fixes #5866 . Inbound traffic monitoring (and by extension inbound rate limiting) was inadvertently removed in 660e72a
.
4 years ago
Tess Rinearson
17ce2ccc92
CHANGELOG: prepare 0.34.1-rc1 ( #5832 )
4 years ago
Anton Kaliaev
dc101f2eff
mempool: disable MaxBatchBytes ( #5800 )
@p4u from vocdoni.io reported that the mempool might behave incorrectly under a
high load. The consequences can range from pauses between blocks to the peers
disconnecting from this node.
My current theory is that the flowrate lib we're using to control flow
(multiplex over a single TCP connection) was not designed w/ large blobs
(1MB batch of txs) in mind.
I've tried decreasing the Mempool reactor priority, but that did not
have any visible effect. What actually worked is adding a time.Sleep
into mempool.Reactor#broadcastTxRoutine after an each successful send ==
manual control flow of sort.
As a temporary remedy (until the mempool package
is refactored), the max-batch-bytes was disabled. Transactions will be sent
one by one without batching
Closes #5796
4 years ago
Anton Kaliaev
dc90cf60d5
mempool: introduce KeepInvalidTxsInCache config option ( #5813 )
When set to true, an invalid transaction will be kept in the cache (this may help some applications to protect against spam).
NOTE: this is a temporary config option. The more correct solution would be to add a TTL to each transaction (i.e. CheckTx may return a TTL in ResponseCheckTx).
Closes : #5751
4 years ago
Callum Waters
9f0d71e81f
cmd: hyphen-case cli v0.34.1 ( #5786 )
4 years ago
Erik Grinaker
15b70373cc
crypto: fix infinite recursion in Secp256k1 string formatting ( #5707 ) ( #5709 )
This caused stack overflow panics in E2E tests, e.g.:
```
2020-11-24T02:37:17.6085640Z [35mvalidator04 |[0m runtime: goroutine stack exceeds 1000000000-byte limit
2020-11-24T02:37:17.6087818Z [35mvalidator04 |[0m runtime: sp=0xc0234b23c0 stack=[0xc0234b2000, 0xc0434b2000]
2020-11-24T02:37:17.6088920Z [35mvalidator04 |[0m fatal error: stack overflow
2020-11-24T02:37:17.6089776Z [35mvalidator04 |[0m
2020-11-24T02:37:17.6090569Z [35mvalidator04 |[0m runtime stack:
2020-11-24T02:37:17.6091677Z [35mvalidator04 |[0m runtime.throw(0x12dc476, 0xe)
2020-11-24T02:37:17.6093123Z [35mvalidator04 |[0m /usr/local/go/src/runtime/panic.go:1116 +0x72
2020-11-24T02:37:17.6094320Z [35mvalidator04 |[0m runtime.newstack()
2020-11-24T02:37:17.6095374Z [35mvalidator04 |[0m /usr/local/go/src/runtime/stack.go:1067 +0x78d
2020-11-24T02:37:17.6096381Z [35mvalidator04 |[0m runtime.morestack()
2020-11-24T02:37:17.6097657Z [35mvalidator04 |[0m /usr/local/go/src/runtime/asm_amd64.s:449 +0x8f
2020-11-24T02:37:17.6098505Z [35mvalidator04 |[0m
2020-11-24T02:37:17.6099328Z [35mvalidator04 |[0m goroutine 88 [running]:
2020-11-24T02:37:17.6100470Z [35mvalidator04 |[0m runtime.heapBitsSetType(0xc009565380, 0x20, 0x18, 0x1137e00)
2020-11-24T02:37:17.6101961Z [35mvalidator04 |[0m /usr/local/go/src/runtime/mbitmap.go:911 +0xaa5 fp=0xc0234b23d0 sp=0xc0234b23c8 pc=0x432625
2020-11-24T02:37:17.6103906Z [35mvalidator04 |[0m runtime.mallocgc(0x20, 0x1137e00, 0x117b601, 0x11e9240)
2020-11-24T02:37:17.6105179Z [35mvalidator04 |[0m /usr/local/go/src/runtime/malloc.go:1090 +0x5a5 fp=0xc0234b2470 sp=0xc0234b23d0 pc=0x428b25
2020-11-24T02:37:17.6106540Z [35mvalidator04 |[0m runtime.convTslice(0xc002743710, 0x21, 0x21, 0xc0234b24e8)
2020-11-24T02:37:17.6107861Z [35mvalidator04 |[0m /usr/local/go/src/runtime/iface.go:385 +0x59 fp=0xc0234b24a0 sp=0xc0234b2470 pc=0x426379
2020-11-24T02:37:17.6109315Z [35mvalidator04 |[0m github.com/tendermint/tendermint/crypto/secp256k1.PubKey.String(...)
2020-11-24T02:37:17.6151692Z [35mvalidator04 |[0m /src/tendermint/crypto/secp256k1/secp256k1.go:161
2020-11-24T02:37:17.6153872Z [35mvalidator04 |[0m github.com/tendermint/tendermint/crypto/secp256k1.(*PubKey).String(0xc009565360, 0x11e9240, 0xc009565360)
2020-11-24T02:37:17.6157421Z [35mvalidator04 |[0m <autogenerated>:1 +0x65 fp=0xc0234b24f8 sp=0xc0234b24a0 pc=0x656965
2020-11-24T02:37:17.6159134Z [35mvalidator04 |[0m fmt.(*pp).handleMethods(0xc00956c680, 0x58, 0xc0234b2801)
2020-11-24T02:37:17.6161462Z [35mvalidator04 |[0m /usr/local/go/src/fmt/print.go:630 +0x30a fp=0xc0234b2768 sp=0xc0234b24f8 pc=0x518b8a
[...]
2020-11-24T02:37:17.6649685Z [35mvalidator04 |[0m /usr/local/go/src/fmt/print.go:630 +0x30a fp=0xc0234b7f48 sp=0xc0234b7cd8 pc=0x518b8a
2020-11-24T02:37:17.6651177Z [35mvalidator04 |[0m created by github.com/tendermint/tendermint/node.startStateSync
2020-11-24T02:37:17.6652521Z [35mvalidator04 |[0m /src/tendermint/node/node.go:587 +0x150
```
4 years ago
Tess Rinearson
fe94825985
changelog: squash changelog from 0.34 RCs into one ( #5687 )
"Squashes" the changelog from RCs 2-6 into one changelog message for 0.34.0, and adds the changelog pending.
4 years ago
Callum Waters
4ed0fddc37
light: make fraction parts uint64, ensuring that it is always positive ( #5655 )
4 years ago
Aleksandr Bezobchuk
53463b3fef
rpc: fix content-type header
4 years ago
Anton Kaliaev
9567477d55
privval: increase read/write timeout to 5s and calculate ping interva… ( #5666 )
…l based on it (#5638 )
Partially closes #5550
4 years ago