Marko Baricevic
5f515aa058
Merge branch 'master' into marko/int64-
2021-03-15 12:03:26 +00:00
dependabot[bot]
72c9364154
build(deps): Bump rtCamp/action-slack-notify from ae4223259071871559b6e9d08b24a63d71b3f0c0 to 2.1.3 ( #6234 )
...
Bumps [rtCamp/action-slack-notify](https://github.com/rtCamp/action-slack-notify ) from ae4223259071871559b6e9d08b24a63d71b3f0c0 to 2.1.3. This release includes the previously tagged commit.
- [Release notes](https://github.com/rtCamp/action-slack-notify/releases )
- [Commits](ae42232590...f565a63638 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-15 09:29:02 +00:00
Callum Waters
6b4024ad75
fix e2e app test ( #6223 )
2021-03-10 10:32:51 +01:00
Anton Kaliaev
00b9524168
rpc/jsonrpc/server: return an error in WriteRPCResponseHTTP(Error) ( #6204 )
...
instead of panicking
Closes #5529
2021-03-10 09:29:35 +04:00
Marko
884d4d5252
note: add nondeterministic note to events ( #6220 )
...
## 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
2021-03-07 11:36:58 +00:00
Callum Waters
1c314c830e
blockstore: save only the last seen commit ( #6212 )
2021-03-05 19:37:18 +01:00
Alessio Treglia
d27cc6e5e9
build with go1.16 ( #6213 )
...
Co-authored-by: Marko <marbar3778@yahoo.com >
2021-03-05 15:59:25 +00:00
colin axnér
5a7ac0abdb
update outdated comment in state.go ( #6214 )
...
I couldn't find any references to `state.NextState(...)`. Looks like `updateState` replaced that function
2021-03-05 13:36:07 +00:00
Callum Waters
418e2c140f
e2e: integrate light clients ( #6196 )
2021-03-05 14:24:45 +01:00
Anton Kaliaev
4540bef665
localnet: fix localnet by excluding self from persistent peers list ( #6209 )
...
Closes #6205
2021-03-05 12:58:52 +00:00
dependabot[bot]
6625d125a9
build(deps): Bump JamesIves/github-pages-deploy-action from 4.0.0 to 4.1.0 ( #6215 )
...
Bumps [JamesIves/github-pages-deploy-action](https://github.com/JamesIves/github-pages-deploy-action ) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/JamesIves/github-pages-deploy-action/releases )
- [Commits](https://github.com/JamesIves/github-pages-deploy-action/compare/4.0.0...3dbacc7e69578703f91f077118b3475862cb09b8 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-05 12:49:31 +00:00
Callum Waters
0566bea8b2
e2e: add benchmarking functionality ( #6210 )
2021-03-05 13:26:18 +01:00
Marko
8c539f7c2b
logs: cleanup ( #6198 )
2021-03-04 10:09:08 +00:00
Aleksandr Bezobchuk
be88fd3e63
mempool/rpc: log grooming ( #6201 )
2021-03-03 19:45:35 -05:00
Callum Waters
cab10db725
e2e: adjust timeouts to be dynamic to size of network ( #6202 )
2021-03-03 18:41:07 -05:00
Callum Waters
90fe178b52
mempool: don't return an error on checktx with the same tx ( #6199 )
2021-03-03 21:02:45 +01:00
Marko
0d0181856b
indexer: remove info log ( #6194 )
...
## Description
Replace info log with Debug.
2021-03-02 17:18:39 +00:00
Anton Kaliaev
36d92cd0b6
test/fuzz: fix rpc, secret_connection and pex tests ( #6190 )
...
* test/fuzz: fix rpc, secret_connection and pex tests
- ignore empty data in rpc
- provide correct IP in pex
- spawn a goroutine for Write and do multiple Read(s)
* test/fuzz: fix init in pex test
* test/fuzz: assign NewServeMux to global var
* test/fuzz: only try to Unmarshal if blob is not empty
* run fuzz tests for PRs which modify fuzz tests themselves
* test/fuzz: move MakeSwitch into init
2021-03-02 17:30:06 +04:00
Anton Kaliaev
fe4e97afe0
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
```
2021-03-02 10:25:52 +00:00
Tess Rinearson
ddba7f931a
changelog: update for 0.34.8 ( #6183 )
2021-03-01 16:32:00 +00:00
Anton Kaliaev
089b314bdb
test/fuzz: fix PEX reactor test ( #6188 )
...
* test/fuzz: fix PEX reactor test
* .github: [fuzz] increase retention period for crashers
2021-03-01 20:18:51 +04:00
Callum Waters
37d36cd5bc
light: improve provider handling ( #6053 )
...
Introduces heuristics that track the amount of no responses or unavailable blocks a provider has for more robust provider handling by the light client. Use concurrent calls to all witnesses when a new primary is needed.
2021-03-01 12:04:02 +01:00
Marko
e2384a00ce
privval: return errors on loadFilePV ( #6185 )
...
## Description
- return errors on `loadFilePv`
closes #6182
2021-03-01 09:10:09 +00:00
winor
f57aaa4925
docs/tutorials: fix sample code ( #6186 )
2021-02-28 09:59:27 +00:00
Marko Baricevic
d8810315b1
migrate to uint64 mbt tests
2021-02-25 17:40:33 +01:00
Marko Baricevic
6f661481a9
linting fixes
2021-02-25 17:35:02 +01:00
Marko Baricevic
b80a819289
Merge branch 'master' into marko/int64-
2021-02-25 17:30:38 +01:00
dependabot[bot]
611dd5ad46
build(deps): Bump google.golang.org/grpc from 1.35.0 to 1.36.0 ( #6180 )
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.35.0 to 1.36.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.35.0...v1.36.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-25 11:09:51 -05:00
Anton Kaliaev
fc5a108d53
libs/log: [JSON format] include timestamp ( #6174 )
...
Closes #6146
2021-02-25 07:06:24 +00:00
Anton Kaliaev
e9e5026dac
rpc/client/http: drop endpoint arg from New and add WSOptions ( #6176 )
...
also
- replace `MaxReconnectAttempts`, `ReadWait`, `WriteWait` and `PingPeriod` options with `WSOptions` in `WSClient` (rpc/jsonrpc/client/ws_client.go).
- set default write wait to 10s for `WSClient`(rpc/jsonrpc/client/ws_client.go)
- unexpose `WSEvents`(rpc/client/http.go)
Closes #6162
2021-02-25 06:57:31 +00:00
dependabot[bot]
bd14bb66e9
build(deps): Bump golangci/golangci-lint-action from v2.4.0 to v2.5.1 ( #6175 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from v2.4.0 to v2.5.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v2.4.0...d9f0e73c0497685d68af8c58280f49fcaf0545ff )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com >
2021-02-24 19:07:25 +00:00
Marko
45572117ae
logging: print string instead of callback ( #6177 )
...
## 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.
2021-02-24 18:56:28 +00:00
Anton Kaliaev
0f4124fb54
rpc/client/http: Do not drop events even if the out channel is full ( #6163 )
...
```
// unbuffered
out, err := httpClient.Subscribe(ctx, "event.type=NewTx and account.name=Jack", 0)
// buffered
out, err := httpClient.Subscribe(ctx, "event.type=NewTx AND account.name=Jack", 20)
```
Before: when the `out` channel is buffered and becomes full, we drop an event (+ log the error)
After: when the `out` channel is buffered and becomes full, we block
**Before it was not apparent to the app when an event was dropped (looking at the logs is manual task). After this PR, if the user does not read from `out` on 1 subscription, all other subscriptions will be stuck too.**
Closes #6161
2021-02-24 04:16:13 +00:00
Tess Rinearson
be35c893d3
docs/security: add preallocated list of security vulnerability names ( #6167 )
...
I'm also going to add the retros for all previous security incidents to this directory - I'd like to have them somewhere more central than the Cosmos Forum, where they currently live.
2021-02-23 21:59:42 +00:00
Aleksandr Bezobchuk
c21f4c6fde
state executor: groom logs ( #6152 )
...
ref: #5912
2021-02-23 15:57:27 +00:00
githubsands
d5cf7831f1
state: save in batches within the state store ( #6067 )
2021-02-23 16:37:46 +01:00
Silas Davis
9498cd80bd
Normalise GenesisDoc before saving to state ( #6059 )
...
Co-authored-by: Callum <cmwaters19@gmail.com >
2021-02-23 13:27:42 +01:00
Anton Kaliaev
c1ca749afa
rpc: change default sorting to desc for /tx_search results ( #6168 )
...
Closes #6155
2021-02-23 10:56:16 +00:00
Anton Kaliaev
98bbde5385
.github: [jepsen] archive results ( #6164 )
2021-02-23 14:20:37 +04:00
Callum Waters
42f6c40751
p2p: enable scheme-less parsing of IPv6 strings ( #6158 )
2021-02-22 16:24:56 +01:00
Aleksandr Bezobchuk
6912c34b58
cmd: ignore missing wal in debug kill command ( #6160 )
...
closes : #6159
2021-02-22 13:24:56 +00:00
Anton Kaliaev
5a39f72aa8
.github: [jepsen] add more docs ( #6141 )
2021-02-22 11:19:47 +04:00
Tess Rinearson
93719c2eb3
changelog: update with changes from 0.34.7 (and failed 0.34.5, 0.34.6) ( #6150 )
2021-02-19 13:51:22 +00:00
Marko
ab69153037
docs: how to add tm version to RPC ( #6151 )
...
## Description
Add docs on how to get tendermint version into RPC version outputs
2021-02-19 13:05:42 +00:00
Callum Waters
29360f955c
light: improve timeout functionality ( #6145 )
2021-02-18 23:49:24 +01:00
Aleksandr Bezobchuk
27eb10a2e7
consensus: log private validator address and not struct ( #6144 )
...
ref: https://github.com/tendermint/tendermint/pull/6140#discussion_r578635756
2021-02-18 19:02:36 +00:00
Aleksandr Bezobchuk
8a3637a249
consensus: more log grooming ( #6140 )
...
ref: https://github.com/tendermint/tendermint/issues/5912
2021-02-18 18:12:33 +00:00
Bipul Prasad
90c290ac52
rpc: standardize error codes ( #6019 )
2021-02-18 17:54:02 +01:00
Anton Kaliaev
54a14cfeed
.github: [jepsen] source .bashrc ( #6139 )
...
fixes https://github.com/tendermint/tendermint/runs/1926771645
```
ERROR [2021-02-18 12:16:30,492] main - jepsen.cli Oh jeez, I'm sorry,
Jepsen broke. Here's why:
clojure.lang.ExceptionInfo: throw+: {:dir "/", :private-key-path nil,
:password "root", :username "root", :type :jepsen.control/session-error,
:port 22, :strict-host-key-checking false, :host nil, :sudo nil, :dummy
false, :message "Error opening SSH session. Verify username, password,
and node hostnames are correct.", :session nil}
```
2021-02-18 16:32:00 +04:00
Anton Kaliaev
a48c6bdf5e
.github: [jepsen] fix directory name ( #6138 )
...
```
bash: line 0: cd: tendermint: No such file or directory
```
2021-02-18 16:10:52 +04:00