Sam Kleinman
7169d26ddf
e2e: more reliable method for selecting node to inject evidence ( #6880 )
In retrospect my previous implementation of this node, could get
unlucky and never find the correct node. This method is more reliable.
3 years ago
William Banfield
41e681293c
proto: move proto files under the correct directory related to their package name ( #344 )
3 years ago
Sam Kleinman
c4df8a3840
types: move mempool error for consistency ( #6875 )
This is a little change just to make things more consistent ahead of
the 0.35 release.
3 years ago
dependabot[bot]
f858ebeb88
build(deps): Bump github.com/rs/zerolog from 1.23.0 to 1.24.0 ( #6874 )
Bumps [github.com/rs/zerolog](https://github.com/rs/zerolog ) from 1.23.0 to 1.24.0.
- [Release notes](https://github.com/rs/zerolog/releases )
- [Commits](https://github.com/rs/zerolog/compare/v1.23.0...v1.24.0 )
---
updated-dependencies:
- dependency-name: github.com/rs/zerolog
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>
3 years ago
Jeeyong Um
c9347a0647
docs: remove return code in normal case from go built-in example ( #6841 )
An explicit exit prevents the deferred cleanup code from running. In this case,
falling off the end of main will achieve the same goal as an explicit exit.
3 years ago
Sam Kleinman
0df421b37f
e2e: add weighted random configuration selector ( #6869 )
When revwing #6807 I assumed that `probSetChoice` worked this way.
I think that the coverage of various configuration options should
generally track what we expect the actual useage to be to focus the
most test coverage on the configurations that are the most prevelent.
3 years ago
Sam Kleinman
94e1eb8cfe
rfc: fix link style ( #6870 )
This is super minor, but chaning this to fix a broken link and to
match the existing style of the ADRs.
3 years ago
Sam Kleinman
23abb0de8b
rfc: p2p next steps ( #6866 )
3 years ago
Aleksandr Bezobchuk
58a6cfff9a
internal/consensus: update error log ( #6863 )
Issues reported in Osmosis, where the message is extremely long. Also, there is absolutely no reason to log the message IMO. If we must, we can make the message log DEBUG.
3 years ago
Sam Kleinman
6e921f6644
p2p: change default to use new stack ( #6862 )
This is just a configuration change to default to using the new stack
unless explicitly disabled (e.g. `UseLegacy`) this renames the
configuration value and makes the configuration logic more clear.
The legacy option is good to retain as a fallback if the new stack has
issues operationally, but we should make sure that most of the time
we're using the new stack.
3 years ago
Sam Kleinman
a0a5d45cb1
lint: change deprecated linter ( #6861 )
This is a super minor change that silences a warning when running the linter locally.
3 years ago
Sam Kleinman
9c8379ef30
e2e: more consistent node selection during tests ( #6857 )
In the transaction load generator, the e2e test harness previously distributed load randomly to hosts, which was a source of test non-determinism. This change distributes the load generation to the different nodes in the set in a round robin fashion, to produce more reliable results, but does not otherwise change the behavior of the test harness.
3 years ago
dependabot[bot]
e053643b95
build(deps): Bump codecov/codecov-action from 2.0.2 to 2.0.3 ( #6860 )
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 2.0.2 to 2.0.3.
- [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/v2.0.2...v2.0.3 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
M. J. Fromberger
41a361ed8d
psql: add documentation and simplify constructor API ( #6856 )
Add documentation comments to the psql event sink package, and simplify the
constructor function so that it does not return the SQL database handle. The
handle is needed for testing, so expose that via a separate method on the
concrete type.
Update the tests and existing usage for the change. This change does not affect
the behaviour of the sink, so there are no functional changes, only syntactic
updates.
3 years ago
William Banfield
c939e155a6
abci: clarify connection use in-process ( #337 )
* abci: clarify connection use in-process
* Update abci.md
* Update spec/abci/abci.md
Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
* Update spec/abci/abci.md
Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
* invert abci explanations
* lint++
* lint++
* lint++
* lint++
Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
3 years ago
William Banfield
bc2b529b95
inspect: add inspect mode for debugging crashed tendermint node ( #6785 )
EDIT: Updated, see [comment below]( https://github.com/tendermint/tendermint/pull/6785#issuecomment-897793175 )
This change adds a sketch of the `Debug` mode.
This change adds a `Debug` struct to the node package. This `Debug` struct is intended to be created and started by a command in the `cmd` directory. The `Debug` struct runs the RPC server on the data directories: both the state store and the block store.
This change required a good deal of refactoring. Namely, a new `rpc.go` file was added to the `node` package. This file encapsulates functions for starting RPC servers used by nodes. A potential additional change is to further factor this code into shared code _in_ the `rpc` package.
Minor API tweaks were also made that seemed appropriate such as the mechanism for fetching routes from the `rpc/core` package.
Additional work is required to register the `Debug` service as a command in the `cmd` directory but I am looking for feedback on if this direction seems appropriate before diving much further.
closes : #5908
3 years ago
Tess Rinearson
6d5ff590c3
contributing: remove release_notes.md reference ( #6846 )
3 years ago
Sam Kleinman
d8642a941e
cmd: remove deprecated snakes ( #6854 )
just following up on a deprecation.
3 years ago
Sam Kleinman
d7c3a8f682
time: make median time library type private ( #6853 )
This is a very minor change, but I was looking through the code, and
this seems like it shouldn't be exported or used more broadly, so I've
moved it out.
3 years ago
M. J. Fromberger
ce3c059a0d
ADR 072: Re-instate a request-for-comments archive. ( #6851 )
This ADR restores a variation of the old Request for Comments documentation
that we previously used. The proposal differs from the original formulation,
and does not replace ADRs.
3 years ago
Sam Kleinman
39dee8abc5
pubsub: improve handling of closed blocking subsciptions. ( #6852 )
3 years ago
Hlib Kanunnikov
d0e33b4292
blocksync: complete transition from Blockchain to BlockSync ( #6847 )
3 years ago
William Banfield
8700ca9d1a
ADR 071: Proposer-based Timestamps ( #6799 )
Architectural decision record for Proposer-based timestamps.
3 years ago
Sam Kleinman
a374f74f7c
e2e: cleanup node start function ( #6842 )
I realized after my last commit that my change made a following line of code a bit redundant.
(alternatively my last change was redunadnt to the existing code.)
I took this oppertunity to make some minor cleanups and logging changes to the node changes which I hope will make tests a bit more clear.
3 years ago
dependabot[bot]
3a234e1144
build(deps): Bump docker/build-push-action from 2.6.1 to 2.7.0 ( #6845 )
Bumps [docker/build-push-action](https://github.com/docker/build-push-action ) from 2.6.1 to 2.7.0.
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v2.6.1...v2.7.0 )
---
updated-dependencies:
- dependency-name: docker/build-push-action
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>
3 years ago
William Banfield
26ee62aa52
abci: clarify what abci stands for ( #336 )
* abci: clarify what abci stands for
* link to abci type protos.
3 years ago
Aleksandr Bezobchuk
cce0a3c171
docs: add package godoc for indexer ( #6839 )
* docs: add indexer godoc
* docs++
* docs++
* docs++
* docs++
* docs++
* Update state/indexer/doc.go
Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
* Update state/indexer/doc.go
Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
* Update state/indexer/doc.go
Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
* Update state/indexer/doc.go
Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
* Update state/indexer/doc.go
Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
* Update state/indexer/doc.go
Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
* docs++
Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
3 years ago
Sam Kleinman
a4cc8317da
e2e: avoid starting nodes from the future ( #6835 )
3 years ago
Sam Kleinman
e44ab95f2f
core: text cleanup ( #332 )
3 years ago
Tess Rinearson
69f6eee2e4
changelog: linkify the 0.34.11 release notes ( #6836 )
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
3 years ago
dependabot[bot]
afb6af8bc3
build(deps): Bump github.com/golangci/golangci-lint ( #6837 )
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint ) from 1.41.1 to 1.42.0.
- [Release notes](https://github.com/golangci/golangci-lint/releases )
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.41.1...v1.42.0 )
---
updated-dependencies:
- dependency-name: github.com/golangci/golangci-lint
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>
3 years ago
Mateusz Górski
4c3339ab6a
Update supervisor_001_draft.md ( #334 )
3 years ago
Tess Rinearson
0ed3ba6279
changelog: update to reflect 0.34.12 release ( #6833 )
3 years ago
Tess Rinearson
267aac2e90
changelog_pending: add missing item ( #6829 )
3 years ago
Tess Rinearson
471f83d557
contributing: update release instructions to use backport branches ( #6827 )
3 years ago
Sam Kleinman
1e985f6226
rpc: update peer format in specification in NetInfo operation ( #331 )
3 years ago
Aleksandr Bezobchuk
393a02a729
rpc: log update ( #6825 )
We INFO log every `ABCIQuery`. This can output a tremendous amount of noise in the logs, can cause cosmovisor to completely crash and slows down the node due to I/O. This log is completely unnecessary.
Let's get this backported into v0.43 and get that into v0.43 and v0.42 releases of the SDK
/cc @marbar3778
3 years ago
Sam Kleinman
bf77c0c544
rpc: support new p2p infrastructure ( #6820 )
3 years ago
Carlos Rodriguez
511e52c2fc
doc: fix typos in /tx_search and /tx. ( #6823 )
Just a few small typos in the descriptions of the /tx_search and /tx endpoints.
3 years ago
dependabot[bot]
1f76cb1546
build(deps): Bump google.golang.org/grpc from 1.39.1 to 1.40.0 ( #6819 )
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.39.1 to 1.40.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/grpc/grpc-go/releases ">google.golang.org/grpc's releases</a>.</em></p>
<blockquote>
<h2>Release 1.40.0</h2>
<h1>Behavior Changes</h1>
<ul>
<li>balancer: client channel no longer connects to idle subchannels that are returned by the pickers; LB policy should call SubConn.Connect instead. (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4579 ">#4579</a>)
<ul>
<li>This change is in line with existing documentation stating the balancer must call Connect on idle SubConns in order for them to connect, and is preparation for an upcoming change that transitions SubConns to the idle state when connections are lost. See <a href="https://pkg.go.dev/google.golang.org/grpc/balancer#SubConn ">https://pkg.go.dev/google.golang.org/grpc/balancer#SubConn </a> for more details.</li>
</ul>
</li>
</ul>
<h1>Bug Fixes</h1>
<ul>
<li>transport: fail RPCs without HTTP status 200 (OK), according to the gRPC spec (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4474 ">#4474</a>)
<ul>
<li>Special Thanks: <a href="https://github.com/JNProtzman "><code>@JNProtzman</code></a></li>
</ul>
</li>
<li>binarylog: fail the <code>Write()</code> method if proto marshaling fails (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4582 ">#4582</a>)
<ul>
<li>Special Thanks: <a href="https://github.com/Jille "><code>@Jille</code></a></li>
</ul>
</li>
<li>binarylog: exit the flusher goroutine upon closing the <code>bufferedSink</code> (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4583 ">#4583</a>)
<ul>
<li>Special Thanks: <a href="https://github.com/Jille "><code>@Jille</code></a></li>
</ul>
</li>
</ul>
<h1>New Features</h1>
<ul>
<li>metadata: add Delete method to MD to encapsulate lowercasing (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4549 ">#4549</a>)
<ul>
<li>Special Thanks: <a href="https://github.com/konradreiche "><code>@konradreiche</code></a></li>
</ul>
</li>
<li>xds/cds: support logical DNS cluster and aggregated cluster (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4594 ">#4594</a>)</li>
<li>stats: add stats.Begin.IsClientStream and IsServerStream to indicate the type of RPC invoked (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4533 ">#4533</a>)
<ul>
<li>Special Thanks: <a href="https://github.com/leviska "><code>@leviska</code></a></li>
</ul>
</li>
</ul>
<h1>Performance Improvements</h1>
<ul>
<li>server: improve performance when multiple interceptors are used (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4524 ">#4524</a>)
<ul>
<li>Special Thanks: <a href="https://github.com/amenzhinsky "><code>@amenzhinsky</code></a></li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="41e044e1c8
"><code>41e044e</code></a> server: fix leaked net.Conn (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4644 ">#4644</a>) (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4670 ">#4670</a>)</li>
<li><a href="1634fd3fc3
"><code>1634fd3</code></a> Change version to 1.40.0 (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4623 ">#4623</a>)</li>
<li><a href="b1a15ac370
"><code>b1a15ac</code></a> server: fix leaked net.Conn (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4644 ">#4644</a>)</li>
<li><a href="00edd8c13a
"><code>00edd8c</code></a> Add xDS k8s url-map test Kokoro job (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4614 ">#4614</a>)</li>
<li><a href="1ddab33869
"><code>1ddab33</code></a> client: fix detection of whether IO was performed in NewStream (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4611 ">#4611</a>)</li>
<li><a href="582ef458c6
"><code>582ef45</code></a> cluster_resolver: move balancer config types into cluster_resolver package an...</li>
<li><a href="c513103bee
"><code>c513103</code></a> Add extra layer on top of RBAC Engine (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4576 ">#4576</a>)</li>
<li><a href="a0bed723f1
"><code>a0bed72</code></a> xds: add http filters to FilterChain matching (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4595 ">#4595</a>)</li>
<li><a href="0a8c63739a
"><code>0a8c637</code></a> grpclb: propagate the most recent connection error when grpclb enters transie...</li>
<li><a href="8332d5b997
"><code>8332d5b</code></a> test: fix possible goroutine leaks in unit tests (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4570 ">#4570</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/grpc/grpc-go/compare/v1.39.1...v1.40.0 ">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=google.golang.org/grpc&package-manager=go_modules&previous-version=1.39.1&new-version=1.40.0 )](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
3 years ago
Sam Kleinman
d56a44b884
node: minimize hardcoded service initialization ( #6798 )
* node: minimize hardcoded service initialization
* hacking
* nil safety
* reduce space
* remove genesis state store
* fix lint
* fix pex
* unwind some odering effects
* fix tests
* remove unused experiment
3 years ago
Sam Kleinman
cbfc04df6d
rpc: avoid panics in unsafe rpc calls with new p2p stack ( #6817 )
3 years ago
Sam Kleinman
a6d20a6660
pubsub: unsubscribe locking handling ( #6816 )
3 years ago
Sam Kleinman
97435139ad
adr: node initialization ( #6562 )
3 years ago
Sam Kleinman
66084a01dc
commands: add key migration cli ( #6790 )
3 years ago
M. J. Fromberger
53d53e6205
bytes: clean up and simplify encoding of HexBytes ( #6810 )
As written, the encoding step unnecessarily made and moved multiple copies of
the encoded representation. Reduce this to a single allocation and encode the
data in-place so that a shift is no longer required.
Also: Add a test to ensure letter digits are capitalized, which was previously not
verified but was expected downstream.
No functional changes.
3 years ago
M. J. Fromberger
a7ecf49c10
Add new team member to CODEOWNERS. ( #6811 )
3 years ago
Callum Waters
72adbf9cc9
statesync: new messages for gossiping consensus params ( #328 )
3 years ago
Sam Kleinman
31994cadc0
docs: upgrade documentation for custom mempools ( #6794 )
This is proposed language for the upgrade process about the new custom
reactor/mempool support.
3 years ago
dependabot[bot]
e5312942e3
build(deps): Bump google.golang.org/grpc from 1.39.0 to 1.39.1 ( #6801 )
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.39.0 to 1.39.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/grpc/grpc-go/releases ">google.golang.org/grpc's releases</a>.</em></p>
<blockquote>
<h2>Release 1.39.1</h2>
<ul>
<li>server: fix bug that net.Conn is leaked if the connection is closed (io.EOF) immediately with no traffic (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4642 ">#4642</a>)</li>
<li>transport: fix race in transport stream accessing s.recvCompress (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4627 ">#4627</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="db17d4b4ad
"><code>db17d4b</code></a> Change version to 1.39.1 (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4651 ">#4651</a>)</li>
<li><a href="8d1369b150
"><code>8d1369b</code></a> server: fix leaked net.Conn (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4642 ">#4642</a>)</li>
<li><a href="2e0b66bb0e
"><code>2e0b66b</code></a> transport: fix race accessing s.recvCompress (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4627 ">#4627</a>)</li>
<li><a href="db2d595725
"><code>db2d595</code></a> Change version to 1.39.1-dev (<a href="https://github-redirect.dependabot.com/grpc/grpc-go/issues/4542 ">#4542</a>)</li>
<li>See full diff in <a href="https://github.com/grpc/grpc-go/compare/v1.39.0...v1.39.1 ">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=google.golang.org/grpc&package-manager=go_modules&previous-version=1.39.0&new-version=1.39.1 )](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
3 years ago