Commit Graph

10237 Commits

Author SHA1 Message Date
William Banfield
f50ac0e8ea add state check on peer response 2022-05-18 14:37:03 -04:00
William Banfield
4da32ea146 update and document new logic for bailing out of blocksync 2022-05-18 14:07:39 -04:00
William Banfield
dd98caa5f7 Update types/vote_set.go
Co-authored-by: Sergio Mena <sergio@informal.systems>
2022-05-18 13:29:28 -04:00
William Banfield
beb6c47e29 lint fix 2022-05-17 23:10:25 -04:00
William Banfield
cbd211a173 fix broken block store test 2022-05-17 22:37:04 -04:00
William Banfield
0c4a49600b remove unused store code 2022-05-17 22:36:13 -04:00
William Banfield
98f614a614 use current block height as parameter in blocksync 2022-05-17 21:49:58 -04:00
William Banfield
6f577fa389 try commit and extcommit in blocksync response 2022-05-17 21:38:44 -04:00
William Banfield
4ceead171b document new blockstore methods 2022-05-17 20:46:41 -04:00
William Banfield
588a310049 separate extended commit save 2022-05-17 20:37:59 -04:00
William Banfield
c3686fea00 Merge branch 'master' into wb/add-consensus-param-internal 2022-05-17 17:02:29 -04:00
William Banfield
dc253a8196 remove unnecessary assignment in proposal test 2022-05-17 16:39:46 -04:00
William Banfield
9e9f3a1433 strip extensions in consensus 2022-05-17 16:35:24 -04:00
William Banfield
d0377bade0 final case to voteset test 2022-05-17 16:23:39 -04:00
William Banfield
01d78e7d3d update comment for vote set constructor 2022-05-17 15:45:20 -04:00
William Banfield
931e897c6a fix node test 2022-05-17 15:40:50 -04:00
William Banfield
d92b63b85f fix evidence tests 2022-05-17 15:35:21 -04:00
William Banfield
2e1f5bdbcd fix hvs test 2022-05-17 15:29:43 -04:00
William Banfield
5d84aaf7d4 fix tests to store and load state 2022-05-17 15:06:35 -04:00
William Banfield
5dc8a1fac0 hack to not generate protos yet 2022-05-17 15:06:17 -04:00
M. J. Fromberger
c620900fdd rpc: fix plumbing of broadcast_tx_commit timeout (#8573)
In #3435 we allowed this timeout to override the global write timeout.
But after #8570 this meant we were applying a shorter timeout by default.
Don't do the patch if the timeout is already unlimited.

This is a temporary workaround; in light of #8561 I plan to get rid of this
option entirely during the v0.37 cycle, but meanwhile we should keep existing
use more or less coherent.
2022-05-17 10:34:43 -07:00
M. J. Fromberger
21f140410b rpc: enable the ADR 075 event log by default in new configs (#8572)
Since we are deprecating the stream-based event subscription in v0.36, we
should ensure that new nodes enable the replacement by default.  For now, just
set a baseline 30-second window.
2022-05-17 09:49:23 -07:00
William Banfield
351b3bf6b0 tentative change for preventing blocksync early bail out 2022-05-17 12:24:43 -04:00
M. J. Fromberger
66c4c82f7a rpc: rework timeouts to be per-method instead of global (#8570)
* rpc: rework timeouts to be per-method instead of global

Prior to this change, we set a 10-second global timeout for all RPC methods
using the net/http Server type's WriteTimeout. This meant that any request
whose handler did not return within that period would simply drop the
connection to the client.

This timeout is too short for a default, as evidenced by issues like [1] and
[2].  In addition, the mode of failure on the client side is confusing; it
shows up as a dropped connection (EOF) rather than a meaningful error from the
service. More importantly, various methods have diffent constraints: Some
should be able to return quickly, others may need to adjust based on the
application workload.

This is a first step toward supporting configurable timeouts. This change:

- Removes the server-wide default global timeout, and instead:
- Wires up a default context timeout for all RPC handlers.
- Increases the default timeout from 10s to 60s.
- Adds a hook to override this per-method as needed.

This does NOT expose the timeouts in the configuration file (yet).

[1] https://github.com/osmosis-labs/osmosis/issues/1391
[2] https://github.com/tendermint/tendermint/issues/8465
2022-05-17 08:52:39 -07:00
Sam Kleinman
2897b75853 p2p: remove unused get height methods (#8569) 2022-05-17 10:56:26 -04:00
William Banfield
42b9c99c93 add check for blockid flag is commit 2022-05-17 10:40:36 -04:00
William Banfield
ff7955470a update proposal tests to ensure off-by-one is correctly handled 2022-05-17 10:28:35 -04:00
William Banfield
ae6b910427 log if extension data present 2022-05-17 10:17:20 -04:00
William Banfield
603381ca2b update vote reconstruction logic to force extended commit if extension enabled 2022-05-17 10:12:56 -04:00
dependabot[bot]
5a42479d52 build(deps): Bump github.com/lib/pq from 1.10.5 to 1.10.6 (#8567)
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.5 to 1.10.6.
<details>
<summary>Commits</summary>
<ul>
<li><a href="8c6de565f7"><code>8c6de56</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/lib/pq/issues/1081">#1081</a> from catj-cockroach/add-kubernetes-secret-support</li>
<li><a href="d8917faf2e"><code>d8917fa</code></a> adds support for kubernetes mounted private keys</li>
<li><a href="54a3a4b3f3"><code>54a3a4b</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/lib/pq/issues/1082">#1082</a> from johanneswuerbach/connector-dialer</li>
<li><a href="30d9faf71f"><code>30d9faf</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/lib/pq/issues/1080">#1080</a> from drakkan/sqlstate</li>
<li><a href="cf6aeee4f2"><code>cf6aeee</code></a> feat: change the connector dialer</li>
<li><a href="ef3111ea5a"><code>ef3111e</code></a> error: add SQLState</li>
<li><a href="006a3f4923"><code>006a3f4</code></a> Added code that accounts for the 'Z' timezone separator in the ParseTimestamp...</li>
<li><a href="da9184484e"><code>da91844</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/lib/pq/issues/1078">#1078</a> from otan-cockroach/copydata</li>
<li><a href="326e7d02f7"><code>326e7d0</code></a> fix CopyData comment</li>
<li><a href="b3b8332586"><code>b3b8332</code></a> expose raw CopyData command (<a href="https://github-redirect.dependabot.com/lib/pq/issues/1077">#1077</a>)</li>
<li>See full diff in <a href="https://github.com/lib/pq/compare/v1.10.5...v1.10.6">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/lib/pq&package-manager=go_modules&previous-version=1.10.5&new-version=1.10.6)](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>
2022-05-17 11:55:04 +00:00
William Banfield
93ea3d0b7d strip extensions in blocksync 2022-05-16 19:20:08 -04:00
William Banfield
44f1f045e2 update the VoteSet methods to only validate extensions when enabled 2022-05-16 19:08:34 -04:00
William Banfield
78c0c9c6ce strip vote extensions in the reactor 2022-05-16 18:25:07 -04:00
William Banfield
b51b83a250 change prepare proposal to use enable extension logic 2022-05-16 18:00:25 -04:00
William Banfield
397f0840f6 do not call extension methods when not enabled 2022-05-16 17:13:14 -04:00
William Banfield
32790dedfc do not verify extension if not enabled 2022-05-16 17:02:43 -04:00
William Banfield
589d4030ce rename vote extension param 2022-05-16 16:46:17 -04:00
William Banfield
17d5e71489 Update internal/consensus/state.go
Co-authored-by: Sergio Mena <sergio@informal.systems>
2022-05-16 15:29:49 -04:00
William Banfield
ed9df4d1f1 Update types/block.go
Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
2022-05-16 12:13:57 -04:00
William Banfield
62ecdf5b60 correct NewStrictVoteSet constructor to not call itself 2022-05-16 11:40:08 -04:00
William Banfield
f5cd75c090 shorter timeout in SwitchToConsensus test 2022-05-16 11:39:01 -04:00
William Banfield
19cc03f6fd addr -> myAddr 2022-05-16 11:38:23 -04:00
William Banfield
cb2f3624da Update internal/consensus/state.go
Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
2022-05-16 11:36:01 -04:00
William Banfield
d3c9ab64b5 Update internal/consensus/state.go
Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
2022-05-16 11:35:49 -04:00
William Banfield
331a7ceea1 Update types/block.go
Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
2022-05-16 11:33:41 -04:00
William Banfield
c2f543bebb update heightvoteset constructor for strict vs non strict 2022-05-16 11:27:45 -04:00
William Banfield
bd26649455 change voteset constructor to strict vs non strict 2022-05-16 11:24:43 -04:00
William Banfield
f0b03adfca Merge branch 'master' into wb/add-consensus-param-internal 2022-05-16 10:27:17 -04:00
Sam Kleinman
7f79661c2e rfc: onboarding projects (#8413)
This is meant as a supporting recruiting document. The idea is to
describe a bunch of projects scoped and selected as teaching projects
for new engineers joining the team. 

This isn't meant to replace "neweng" or "good-first-ticket" tags on
issues, but provide a higher level set of examples of the kinds of
things that someone joining the team could tackle.
2022-05-16 14:15:06 +00:00
William Banfield
6cb415028e Merge branch 'master' into wb/add-consensus-param-internal 2022-05-16 10:14:59 -04:00