William Banfield
885b78698c
cr feedback
2021-08-18 09:01:23 -04:00
William Banfield
cecd5d8ab2
cr feedback
2021-08-17 18:25:25 -04:00
William Banfield
5542a5bacb
code review feedback
2021-08-17 18:17:50 -04:00
William Banfield
03f3c49bb2
Update cmd/tendermint/commands/inspect.go
...
Co-authored-by: M. J. Fromberger <fromberger@interchain.io >
2021-08-17 15:46:03 -04:00
William Banfield
69239c55c9
add a doc.go
2021-08-13 15:07:17 -04:00
William Banfield
677d87324d
add doc.go and fix lint
2021-08-13 14:50:30 -04:00
William Banfield
208bf0541b
add sleep for test context switch
2021-08-13 14:17:11 -04:00
William Banfield
f154067401
add documentation information about the inspect command
2021-08-13 13:04:19 -04:00
William Banfield
6085c5f6ee
updated changelog
2021-08-13 11:43:26 -04:00
William Banfield
820284a0f1
add long description
2021-08-13 11:35:07 -04:00
William Banfield
630dda2234
lint++
2021-08-12 13:14:37 -04:00
William Banfield
a484d0f3a4
test fix
2021-08-12 13:05:51 -04:00
William Banfield
af361ed219
lint++
2021-08-12 12:31:44 -04:00
William Banfield
0575bccb3e
remove event bus changes
2021-08-12 12:26:28 -04:00
William Banfield
182e4162ad
Merge branch 'master' into wb/issue-5908
2021-08-12 12:25:12 -04:00
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 />
[](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>
2021-08-12 15:23:37 +00:00
William Banfield
45eedbc087
add indexer service to inspect node
2021-08-12 10:47:07 -04:00
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
2021-08-12 13:38:17 +00:00
William Banfield
6c7dbec283
remove env refactor
2021-08-11 20:41:26 -04:00
William Banfield
75f549d408
remove env refactor
2021-08-11 20:38:43 -04:00
William Banfield
45f92ee928
remove node refactor
2021-08-11 20:37:49 -04:00
William Banfield
557326c2f4
update comments for the inspect server
2021-08-11 20:36:23 -04:00
Sam Kleinman
cbfc04df6d
rpc: avoid panics in unsafe rpc calls with new p2p stack ( #6817 )
2021-08-11 13:20:01 -04:00
Sam Kleinman
a6d20a6660
pubsub: unsubscribe locking handling ( #6816 )
2021-08-11 11:37:05 -04:00
William Banfield
c6077076d4
wip
2021-08-11 11:24:07 -04:00
Sam Kleinman
97435139ad
adr: node initialization ( #6562 )
2021-08-11 10:34:45 -04:00
William Banfield
c37e4a43a2
refactor debug code into separate package and rename to inspect
2021-08-10 18:13:27 -04:00
Sam Kleinman
66084a01dc
commands: add key migration cli ( #6790 )
2021-08-10 14:58:21 -04:00
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.
2021-08-10 09:58:18 -04:00
M. J. Fromberger
a7ecf49c10
Add new team member to CODEOWNERS. ( #6811 )
2021-08-09 23:30:58 -04:00
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.
2021-08-06 19:51:07 +00:00
William Banfield
c3561f1c03
Merge branch 'master' into wb/issue-5908
2021-08-06 14:20:53 -04:00
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 />
[](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>
2021-08-06 14:28:58 +00:00
dependabot[bot]
4db71da68e
build(deps): Bump github.com/BurntSushi/toml from 0.3.1 to 0.4.1 ( #6796 )
...
Bumps [github.com/BurntSushi/toml](https://github.com/BurntSushi/toml ) from 0.3.1 to 0.4.1.
- [Release notes](https://github.com/BurntSushi/toml/releases )
- [Commits](https://github.com/BurntSushi/toml/compare/v0.3.1...v0.4.1 )
---
updated-dependencies:
- dependency-name: github.com/BurntSushi/toml
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>
2021-08-05 10:08:49 -04:00
William Banfield
e801328128
clist: add simple property tests ( #6791 )
...
Adds a simple property test to the `clist` package. This test uses the [rapid](https://github.com/flyingmutant/rapid ) library and works by modeling the internal clist as a simple array.
Follow up from this mornings workshop with the Regen team.
2021-08-03 19:30:05 +00:00
M. J. Fromberger
4cbaf70d1f
docs: fix a typo in the genesis_chunked description ( #6792 )
2021-08-03 15:08:23 -04:00
rene
e5f9dd2736
docs: fix typo ( #6789 )
2021-08-02 17:25:59 -04:00
William Banfield
1f7ecbdaf3
add tx indexer routes
2021-08-02 17:06:42 -04:00
William Banfield
2be1b37c4e
lint++
2021-08-02 14:31:37 -04:00
William Banfield
03ee71eac4
PR feedback fixes
2021-08-02 12:50:13 -04:00
dependabot[bot]
e922016121
build(deps): Bump technote-space/get-diff-action from 4 to 5 ( #6788 )
...
Bumps [technote-space/get-diff-action](https://github.com/technote-space/get-diff-action ) from 4 to 5.
- [Release notes](https://github.com/technote-space/get-diff-action/releases )
- [Changelog](https://github.com/technote-space/get-diff-action/blob/main/.releasegarc )
- [Commits](https://github.com/technote-space/get-diff-action/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: technote-space/get-diff-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com >
2021-08-02 12:25:37 -04:00
William Banfield
df669c7bed
node: sketch of debug node logic
2021-08-02 12:08:15 -04:00
William Banfield
dc7c212c41
mempool/v1: test reactor does not panic on broadcast ( #6772 )
...
This changes adds a failing test for issue #6660 . It achieves this by adding a transaction, starting the `broadcastTxRoutine` in a goroutine and then adding another transaction to the mempool. The `broadcastTxRoutine` can receive the second inserted transaction before `insertTx` returns. In that case, `broadcastTxRoutine` will derefence a nil pointer when referencing the `gossipEl` and panic.
2021-08-02 13:02:43 +00:00
William Banfield
4e96c6b234
tools: add mockery to tools.go and remove mockery version strings ( #6787 )
...
This change aims to keep versions of mockery consistent across developer laptops.
This change adds mockery to the `tools.go` file so that its version can be managed consistently in the `go.mod` file.
Additionally, this change temporarily disables adding mockery's version number to generated files. There is an outstanding issue against the mockery project related to the version string behavior when running from `go get`. I have created a pull request to fix this issue in the mockery project.
see: https://github.com/vektra/mockery/issues/397
2021-07-30 20:47:15 +00:00
Callum Waters
02f8e4c0bd
blockstore: fix problem with seen commit ( #6782 )
2021-07-30 17:37:04 +02:00
dependabot[bot]
3aec71cdd4
build(deps): Bump styfle/cancel-workflow-action from 0.9.0 to 0.9.1 ( #6786 )
2021-07-30 09:21:27 -04:00
M. J. Fromberger
6dd8984fef
Fix and clarify breaks from select cases. ( #6781 )
...
Update those break statements inside case clauses that are intended to reach an
enclosing for loop, so that they correctly exit the loop.
The candidate files for this change were located using:
% staticcheck -checks SA4011 ./... | cut -d: -f-2
This change is intended to preserve the intended semantics of the code, but
since the code as-written did not have its intended effect, some behaviour may
change. Specifically: Some loops may have run longer than they were supposed
to, prior to this change.
In one case I was not able to clearly determine the intended outcome. That case
has been commented but otherwise left as-written.
Fixes #6780 .
2021-07-29 22:28:32 -04:00
JayT106
9a2a7d4307
state/privval: vote timestamp fix ( #6748 )
2021-07-29 12:52:53 +02:00
M. J. Fromberger
8f06e0c9e7
cleanup: remove redundant error plumbing ( #6778 )
...
This is a mostly-automated fixup using Comby (https://comby.dev ) to remove
lexically-obvious redundant error checks. No functional changes are intended.
To reproduce the core change:
# Collapse redundant error check conditionals
% comby -in-place 'if err != nil {
return err
}
return nil' 'return err' .go
# Fold out unnecessary error temporaries
% comby -in-place ':[spc~^\s*]err :[~:?]= :[any]
return err' ':[spc]return :[any]' .go
Fixes #6479 and related cases.
2021-07-28 15:38:46 -04:00
Sam Kleinman
6a94b55d12
rpc: add documentation for genesis chunked api ( #6776 )
2021-07-28 14:20:40 -04:00