JayT106
e87b0391cb
cli/indexer: Reindex events ( #6676 )
3 years ago
Marko
363ea56680
abci: remove counter app ( #6684 )
* remove counter app
* remove unneeeded ci
* lint fix
* modify tx sizes
* cleanup docs
* Update abci/cmd/abci-cli/abci-cli.go
Co-authored-by: Callum Waters <cmwaters19@gmail.com>
* Update docs/app-dev/getting-started.md
Co-authored-by: Callum Waters <cmwaters19@gmail.com>
* Update docs/app-dev/getting-started.md
Co-authored-by: Callum Waters <cmwaters19@gmail.com>
* bring back comment
* migrate to kvstore and not persistent
* remove unused func
* test persistent
Co-authored-by: Callum Waters <cmwaters19@gmail.com>
3 years ago
Marko
0e9bec1b53
pkg: expose p2p functions ( #6627 )
## Description
Expose p2p functions for use in the sdk.
These functions could also be copied over to the sdk. I dont have a preference of which is better.
3 years ago
Tanya Bouman
09ec247646
cmd/tendermint/commands: replace $HOME/.some/test/dir with t.TempDir ( #6623 )
* cmd/tendermint/commands: replace $HOME/.some/test/dir with t.TempDir
* update changelog
Co-authored-by: Marko <marbar3778@yahoo.com>
3 years ago
Sam Kleinman
ae5f98881b
p2p: make NodeID and NetAddress public ( #6583 )
3 years ago
Sam Kleinman
a6b30faf35
libs/time: move types/time into libs ( #6595 )
3 years ago
Callum Waters
c0f7fb08c0
config: add root dir to priv validator ( #6585 )
3 years ago
Sam Kleinman
a855f96946
p2p: renames for reactors and routing layer internal moves ( #6547 )
4 years ago
Aleksandr Bezobchuk
3635c7a382
logger: refactor Tendermint logger by using zerolog ( #6534 )
4 years ago
Sam Kleinman
00c284d9d7
node: change package interface ( #6540 )
4 years ago
Callum Waters
618c945d54
simplify initialization of light client ( #6530 )
4 years ago
Sam Kleinman
7bf84d9d7f
config: seperate priv validator config into seperate section ( #6462 )
Addresses a beginning component of #6255
4 years ago
Marko
1709e49813
version: revert version through ldflag only ( #6494 )
## Description
Add version back to versions, but allow it to be overridden via a ldflag.
Reason:
Many users are not setting the ldflag causing issues with tooling that relies on it (cosmjs)
closes #6488
cc @webmaster128
4 years ago
Sam Kleinman
fa891c5a4b
node: cleanup pex initialization ( #6467 )
4 years ago
Callum Waters
358d1a28b8
node: remove mode defaults. Make node mode explicit ( #6282 )
4 years ago
Callum Waters
9f7051d38a
node: implement tendermint modes ( #6241 )
Co-authored-by: dongsam <dongsamb@gmail.com>
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
4 years ago
Marko
efd2fde474
privval: add ctx to privval interface ( #6240 )
## Description
- Add `context.Context` to Privval interface
This pr does not introduce context into our custom privval connection protocol because this will be removed in the next release. When this pr is released.
4 years ago
Callum Waters
418e2c140f
e2e: integrate light clients ( #6196 )
4 years ago
Anton Kaliaev
4540bef665
localnet: fix localnet by excluding self from persistent peers list ( #6209 )
Closes #6205
4 years ago
Marko
e2384a00ce
privval: return errors on loadFilePV ( #6185 )
## Description
- return errors on `loadFilePv`
closes #6182
4 years ago
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
4 years ago
Aleksandr Bezobchuk
6912c34b58
cmd: ignore missing wal in debug kill command ( #6160 )
closes : #6159
4 years ago
Callum Waters
29360f955c
light: improve timeout functionality ( #6145 )
4 years ago
Callum Waters
162f67cf26
correct spelling to US english ( #6077 )
4 years ago
Aleksandr Bezobchuk
bd8a9372d2
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
4 years ago
Marko
70bb8cc8b7
proto: seperate native and proto types ( #5994 )
## Description
Separate protobuf and domain types. We should avoid using protobuf in our core logic.
ref #5460
4 years ago
Marko
f05788e632
privval: Query validator key ( #5876 )
## Description
- Query validator key when a remote signer is used. This is supported gRPC remote signing and filePV only.
Closes : #3009
4 years ago
Callum Waters
385ea1db7d
store: use db iterators for pruning and range-based queries ( #5848 )
4 years ago
Marko
09cf0bcb01
privval: add grpc ( #5725 )
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
4 years ago
Callum Waters
3283a84ab2
cmd: hyphen case cli and config ( #5777 )
4 years ago
Anton Kaliaev
28e79a4d02
cmd: modify `gen_node_key` to print key to STDOUT ( #5772 )
closes : #5770
closes : #5769
also, include node ID in the output (#5769 ) and modify NodeKey to use
value semantics (it makes perfect sense for NodeKey to not be a
pointer).
4 years ago
Marko
bf35cc6443
cmd: add support for --key ( #5612 )
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
4 years ago
Marko
d0db59e16c
ci: add goreleaser ( #5527 )
Co-authored-by: Erik Grinaker <erik@interchain.berlin>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
4 years ago
Anton Kaliaev
7121f68f25
light/rpc: fix ABCIQuery ( #5375 )
Closes #5106
4 years ago
Anton Kaliaev
12ebd7735a
light: cross-check the very first header ( #5429 )
Closes #5428
4 years ago
Callum Waters
ca8a404c7c
cli: light home dir should default to where the full node default is ( #5392 )
4 years ago
Anton Kaliaev
85a4be87a7
rpc/client: take context as first param ( #5347 )
Closes #5145
also applies to light/client
4 years ago
Marko
0ed8dba991
lint: enable errcheck ( #5336 )
## Description
Enable errcheck linter throughout the codebase
Closes : #5059
4 years ago
Marko
b8d08b9ef4
lint: add errchecks ( #5316 )
## Description
Work towards enabling errcheck
ref #5059
4 years ago
Anton Kaliaev
43c3e4265b
config: rename prof_laddr to pprof_laddr and move it to rpc ( #5315 )
* config: rename prof_laddr to pprof_laddr and move it to rpc
also, remove `/unsafe_start_cpu_profiler`, `/unsafe_stop_cpu_profiler`
and `/unsafe_write_heap_profile` in favor of pprof server functionality.
Closes #5303
* update changelog
* log start
4 years ago
dongsam
e30b125725
consensus: double-sign risk reduction (ADR-51) ( #5147 )
Implementation spec of Double Signing Risk Reduction [ADR-51](https://github.com/tendermint/tendermint/blob/master/docs/architecture/adr-051-double-signing-risk-reduction.md ) by B-Harvest
- Add `DoubleSignCheckHeight` config variable to ConsensusConfig for "How many blocks looks back to check existence of the node's consensus votes when before joining consensus"
- Add `consensus.double_sign_check_height` to `config.toml` and `tendermint node` as flag for set `DoubleSignCheckHeight`
- Set default `consensus.double_sign_check_height` to `0` ( it could be adjustable in this PR, disable when 0 )
Refs
- [ADR-51](https://github.com/tendermint/tendermint/blob/master/docs/architecture/adr-051-double-signing-risk-reduction.md )
- [https://github.com/tendermint/tendermint/issues/4059 ](https://github.com/tendermint/tendermint/issues/4059 )
- [https://github.com/tendermint/tendermint/pull/4262 ](https://github.com/tendermint/tendermint/pull/4262 )
4 years ago
Marko
9b4f1a8081
docs: rename swagger to openapi ( #5263 )
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
4 years ago
Erik Grinaker
b1b82c493a
db: add support for badgerdb ( #5233 )
* db: add support for badgerdb
* add badgerdb comment for Config.DBBackend
4 years ago
Erik Grinaker
cc247c091b
genesis: add support for arbitrary initial height ( #5191 )
Adds a genesis parameter `initial_height` which specifies the initial block height, as well as ABCI `RequestInitChain.InitialHeight` to pass it to the ABCI application, and `State.InitialHeight` to keep track of the initial height throughout the code. Fixes #2543 , based on [RFC-002](https://github.com/tendermint/spec/pull/119 ). Spec changes in https://github.com/tendermint/spec/pull/135 .
4 years ago
Callum Waters
cf84dcd44c
light cli: add feature flags and save providers ( #5148 )
4 years ago
Erik Grinaker
db8f1b3df3
migrate all JSON to new JSON encoder ( #4975 )
Uses new JSON encoder in #4955 for all JSON. Branched off of #4968 .
5 years ago
Erik Grinaker
ba3a2dde37
rpc: replace Amino with new JSON encoder ( #4968 )
Migrates the `rpc` package to use new JSON encoder in #4955 . Branched off of that PR.
Tests pass, but I haven't done any manual testing beyond that. This should be handled as part of broader 0.34 testing.
5 years ago
Marko
c2578e2262
light: rename lite2 to light & remove lite ( #4946 )
This PR removes lite & renames lite2 to light throughout the repo
Signed-off-by: Marko Baricevic <marbar3778@yahoo.com>
Closes : #4944
5 years ago
Anton Kaliaev
af1d16bee9
lite2: allow bigger requests to LC proxy ( #4930 )
Closes #4838
Previously, we're only setting MaxOpenConnections, whereas we should set
all config variables based on user's config.toml.
5 years ago
Anton Kaliaev
8ab0a4c3b0
lite2: correctly return the results of the "latest" block ( #4931 )
Closes #4837
- `/block_results`
before:
failed to update light client to 7: failed to obtain the header #7 : signed header not found
after:
We can't return the latest block results because we won't be able to
prove them. Return the results for the previous block instead.
- /block_results?height=X`
no changes
5 years ago