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 >
2021-03-17 14:55:05 +00:00
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 >
2021-03-15 11:20:33 +01:00
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 >
2021-03-09 16:39:19 +04:00
mergify[bot]
8bb85856d0
e2e: add benchmarking functionality (bp #6210 ) ( #6216 )
2021-03-05 15:30:18 +01:00
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 >
2021-03-04 14:47:42 +00:00
mergify[bot]
1b5697a41d
mempool/rpc: log grooming (bp #6201 ) ( #6203 )
2021-03-04 09:04:13 -05:00
mergify[bot]
a047a4a70f
logs: cleanup ( #6198 )
...
Co-authored-by: Marko <marbar3778@yahoo.com >
2021-03-04 10:42:19 +00:00
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 >
2021-03-02 14:46:48 +04:00
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 >
2021-03-01 08:41:49 +00:00
Tess Rinearson
dea73e08b3
changelog: update for 0.34.8 ( #6181 )
v0.34.8
2021-02-25 12:30:29 +01:00
mergify[bot]
28ce355656
libs/log: [JSON format] include timestamp (bp #6174 ) ( #6179 )
...
Closes #6146
2021-02-25 11:27:49 +04:00
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 >
2021-02-24 19:08:05 +00:00
mergify[bot]
0191a22636
state executor: groom logs (bp #6152 ) ( #6172 )
2021-02-24 09:50:46 -05:00
Tess Rinearson
9d9b947b02
goreleaser: reintroduce arm64 build instructions
2021-02-23 11:20:19 +01:00
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.
2021-02-23 11:20:06 +01:00
Tess Rinearson
efd9d07257
changelog: fix changelog pending version numbering ( #6149 )
2021-02-19 14:51:18 +01:00
mergify[bot]
a0f376127d
consensus: more log grooming (bp #6140 ) ( #6143 )
2021-02-18 14:23:12 -05:00
mergify[bot]
8d3c36ccc3
abci: Fix ReCheckTx for Socket Client (bp #6124 ) ( #6125 )
2021-02-18 08:36:05 -05:00
Tess Rinearson
15eb2c2211
.goreleaser: remove arm64 build instructions and bump changelog again ( #6131 )
v0.34.7
2021-02-18 03:04:16 +01:00
Tess Rinearson
e4d2893ff6
changelog: bump to v0.34.6
v0.34.6
2021-02-18 02:36:01 +01:00
Tess Rinearson
afd07096a7
Revert "tooling: remove tools/Makefile (bp #6102 ) ( #6106 )"
...
This reverts commit 1b2174a0da .
2021-02-18 02:36:01 +01:00
Tess Rinearson
340071d81b
changelog: update for 0.34.5 ( #6129 )
v0.34.5
2021-02-18 02:09:16 +01:00
Tess Rinearson
53d40e1092
consensus: remove privValidator from log call ( #6128 )
2021-02-18 01:47:55 +01:00
Aleksandr Bezobchuk
bedb00d252
consensus: Groom Logs ( #5917 )
...
Executed a local network using simapp and looked for logs that seemed superfluous. This isn't by any means an exhaustive grooming, but should drastically help legibility of logs.
ref: #5912
2021-02-17 10:05:13 +00:00
mergify[bot]
1030072dd0
changelog: update 0.34.3 changelog with details on security vuln (bp #6108 ) ( #6110 )
...
* changelog: update 0.34.3 changelog with details on security vuln (#6108 )
Closes #6095 .
(cherry picked from commit df0b868415 )
# Conflicts:
# CHANGELOG.md
* solve conflicts
Co-authored-by: Tess Rinearson <tess.rinearson@gmail.com >
Co-authored-by: Marko Baricevic <marbar3778@yahoo.com >
2021-02-15 14:51:54 +01:00
mergify[bot]
1b2174a0da
tooling: remove tools/Makefile (bp #6102 ) ( #6106 )
...
Description
We use docker for all protobuf related items. This makes it unnecessary to provide a way to download tooling.
ref #6103
Co-authored-by: Tess Rinearson <tess.rinearson@gmail.com >
Co-authored-by: Marko <marbar3778@yahoo.com >
2021-02-12 10:09:29 +00:00
Tess Rinearson
6bac9d9f43
makefile: remove call to tools ( #6104 )
v0.34.4
2021-02-11 22:31:17 +01:00
Tess Rinearson
5efbbab789
changelog: improve with suggestions from @melekes ( #6097 )
2021-02-11 20:47:43 +01:00
Tess Rinearson
4a0fab041b
changelog: update for v0.34.4 ( #6096 )
2021-02-11 19:13:40 +01:00
Callum Waters
5ee2ada942
.github: remove erik as reviewer from dependapot ( #6076 )
2021-02-11 17:29:52 +01:00
Callum Waters
fbf2c3815d
check block store base is non negative before sending block meta or commits ( #6042 )
2021-02-11 17:29:52 +01:00
dependabot[bot]
cc57a560e7
build(deps-dev): Bump watchpack from 2.1.0 to 2.1.1 in /docs ( #6063 )
...
Bumps [watchpack](https://github.com/webpack/watchpack ) from 2.1.0 to 2.1.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/webpack/watchpack/releases ">watchpack's releases</a>.</em></p>
<blockquote>
<h2>v2.1.1</h2>
<h1>Bugfix</h1>
<ul>
<li>fix warnings with ENOENT when symlinks are resolved by watchpack</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="f1b5e2da2d "><code>f1b5e2d</code></a> 2.1.1</li>
<li><a href="cbfc11a8d7 "><code>cbfc11a</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/webpack/watchpack/issues/188 ">#188</a> from Aghassi/fix/enoent-throwing</li>
<li><a href="7684df0846 "><code>7684df0</code></a> fix: adds ENOENT for non windows errors</li>
<li>See full diff in <a href="https://github.com/webpack/watchpack/compare/v2.1.0...v2.1.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-02-11 17:18:45 +01:00
Erik Grinaker
950c9f71b5
CODEOWNERS: remove erikgrinaker ( #6057 )
2021-02-11 17:18:45 +01:00
dependabot[bot]
90a2c33285
build(deps): Bump actions/cache from v2.1.3 to v2.1.4 ( #6055 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from v2.1.3 to v2.1.4.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2.1.3...26968a09c0ea4f3e233fdddbafd1166051a095f6 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-11 17:18:45 +01:00
Anton Kaliaev
093dcfc8a0
goreleaser: downcase archive and binary names ( #6029 )
...
before:
```
Tendermint_0.34.3_darwin_amd64.tar.gz
-rw-r--r-- 0 runner docker 192329 Jan 19 19:30 CHANGELOG.md
-rw-r--r-- 0 runner docker 321 Jan 19 19:30 CHANGELOG_PENDING.md
-rw-r--r-- 0 runner docker 11382 Jan 19 19:30 LICENSE
-rw-r--r-- 0 runner docker 8165 Jan 19 19:30 README.md
-rwxr-xr-x 0 runner docker 23224320 Jan 19 19:30 tendermint
```
after:
```
tendermint_0.34.3_darwin_amd64.tar.gz
-rw-r--r-- 0 runner docker 192329 Jan 19 19:30 CHANGELOG.md
-rw-r--r-- 0 runner docker 321 Jan 19 19:30 CHANGELOG_PENDING.md
-rw-r--r-- 0 runner docker 11382 Jan 19 19:30 LICENSE
-rw-r--r-- 0 runner docker 8165 Jan 19 19:30 README.md
-rwxr-xr-x 0 runner docker 23224320 Jan 19 19:30 tendermint
```
2021-02-11 17:09:10 +01:00
Anton Kaliaev
72851a12d3
libs/log: format []byte as hexidecimal string (uppercased) ( #5960 )
...
Closes : #5806
Co-authored-by: Lanie Hei <heixx011@umn.edu >
2021-02-11 17:02:38 +01:00
dependabot[bot]
07979d88d0
build(deps): Bump github.com/tendermint/tm-db from 0.6.3 to 0.6.4 ( #6073 )
...
Bumps [github.com/tendermint/tm-db](https://github.com/tendermint/tm-db ) from 0.6.3 to 0.6.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/tendermint/tm-db/releases ">github.com/tendermint/tm-db's releases</a>.</em></p>
<blockquote>
<h2>v0.6.4</h2>
<p><a href="https://github.com/tendermint/tm-db/blob/v0.6.4/CHANGELOG.md#064 ">https://github.com/tendermint/tm-db/blob/v0.6.4/CHANGELOG.md#064 </a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/tendermint/tm-db/blob/master/CHANGELOG.md ">github.com/tendermint/tm-db's changelog</a>.</em></p>
<blockquote>
<h2>0.6.4</h2>
<p><strong>2021-02-09</strong></p>
<p>Bump protobuf to 1.3.2 and grpc to 1.35.0.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="6f9a08cd45 "><code>6f9a08c</code></a> update changelog for v0.6.4 (<a href="https://github-redirect.dependabot.com/tendermint/tm-db/issues/150 ">#150</a>)</li>
<li><a href="4de5f6b9a4 "><code>4de5f6b</code></a> CODEOWNERS: remove erikgrinaker (<a href="https://github-redirect.dependabot.com/tendermint/tm-db/issues/148 ">#148</a>)</li>
<li><a href="9f5cde003a "><code>9f5cde0</code></a> build(deps): bump google.golang.org/grpc from 1.33.2 to 1.35.0 (<a href="https://github-redirect.dependabot.com/tendermint/tm-db/issues/143 ">#143</a>)</li>
<li><a href="c606a78361 "><code>c606a78</code></a> build(deps): bump github.com/stretchr/testify from 1.6.1 to 1.7.0 (<a href="https://github-redirect.dependabot.com/tendermint/tm-db/issues/142 ">#142</a>)</li>
<li><a href="0438145e16 "><code>0438145</code></a> build(deps): bump github.com/gogo/protobuf from 1.3.1 to 1.3.2 (<a href="https://github-redirect.dependabot.com/tendermint/tm-db/issues/140 ">#140</a>)</li>
<li><a href="f2b292dfc2 "><code>f2b292d</code></a> testing: docker deployment (<a href="https://github-redirect.dependabot.com/tendermint/tm-db/issues/144 ">#144</a>)</li>
<li><a href="3157a92898 "><code>3157a92</code></a> changelog: update with 0.5.2 release (<a href="https://github-redirect.dependabot.com/tendermint/tm-db/issues/138 ">#138</a>)</li>
<li>See full diff in <a href="https://github.com/tendermint/tm-db/compare/v0.6.3...v0.6.4 ">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-02-11 16:56:50 +01:00
Marko Baricevic
12eac92738
docs: fix typo in state sync example ( #5989 )
2021-02-11 15:08:23 +00:00
Aleksandr Bezobchuk
73375b0912
backport v0.34.x: 6000 & 6001
2021-02-11 09:50:18 -05:00
Marko
e3a79d4e2e
tests: fix make test ( #5966 )
...
## Description
- bump deadlock dep to master
- fixes `make test` since we now use `deadlock.Once`
Closes: #XXX
2021-02-11 14:44:19 +01:00
Marko
fa3287c012
maverick: reduce some duplication ( #6052 )
...
- Reduce duplication in messages and metrics.
- merge WAL interfaces. Meant to push the developer to make changes in both places.
2021-02-11 14:44:19 +01:00
Marko
cb7c9564a4
docker: dont login when in PR ( #5961 )
2021-02-11 14:44:19 +01:00
odidev
9df5fcf1f1
docker: release Linux/ARM64 image ( #5925 )
...
Co-authored-by: Marko <marbar3778@yahoo.com >
2021-02-11 14:44:19 +01:00
Anton Kaliaev
d575f8a38f
fix build
2021-02-11 16:10:28 +04:00
Anton Kaliaev
1e355b6b56
.github: use job ID (not step ID) inside if condition ( #6060 )
...
https://stackoverflow.com/a/66073112/820520
2021-02-11 16:10:28 +04:00
Anton Kaliaev
108073077b
.github: fix fuzz-nightly job ( #5965 )
...
outputs is a property of the job, not an individual step.
2021-02-11 16:10:28 +04:00
Anton Kaliaev
8b48d23084
terminate go-fuzz gracefully (w/ SIGINT) ( #5973 )
...
and preserve exit code.
```
2021/01/26 03:34:49 workers: 2, corpus: 4 (8m28s ago), crashers: 0, restarts: 1/9976, execs: 11013732 (21596/sec), cover: 121, uptime: 8m30s
make: *** [fuzz-mempool] Terminated
Makefile:5: recipe for target 'fuzz-mempool' failed
Error: Process completed with exit code 124.
```
https://github.com/tendermint/tendermint/runs/1766661614
`continue-on-error` should make GH ignore any error codes.
2021-02-11 16:10:28 +04:00
Anton Kaliaev
c3d2f68c05
.github: archive crashers and fix set-crashers-count step ( #5992 )
2021-02-11 16:10:28 +04:00
Anton Kaliaev
0f58a8470a
.github: rename crashers output (fuzz-nightly-test) ( #5993 )
2021-02-11 16:10:28 +04:00
Anton Kaliaev
197b746f8d
test/fuzz: move fuzz tests into this repo ( #5918 )
...
Co-authored-by: Emmanuel T Odeke <emmanuel@orijtech.com >
Closes #5907
- add init-corpus to blockchain reactor
- remove validator-set FromBytes test
now that we have proto, we don't need to test it! bye amino
- simplify mempool test
do we want to test remote ABCI app?
- do not recreate mux on every crash in jsonrpc test
- update p2p pex reactor test
- remove p2p/listener test
the API has changed + I did not understand what it's tested anyway
- update secretconnection test
- add readme and makefile
- list inputs in readme
- add nightly workflow
- remove blockchain fuzz test
EncodeMsg / DecodeMsg no longer exist
2021-02-11 16:10:28 +04:00