Anton Kaliaev
243ff4b43d
blockchain/v1: remove in favor of v2 ( #5728 )
4 years ago
Alessio Treglia
bcb7044d64
consensus: fix flaky tests ( #5734 )
Replace testing.T.Cleanup() with deferred function
calls in test helpers as those cleanup functions
need to be called once the helper returns and not
when the entire test ends.
This reverts a few of the changes introduced in #5723 .
Thanks: @erikgrinaker for pointing this out.
Ref: #5732
4 years ago
Alessio Treglia
77d7328bc6
p2p/pex: fix flaky tests ( #5733 )
*testing.T.TempDir() causes test cases to fail when
it is unable to remove the temporary directory once
the test case execution terminates. This seems to
happen often with pex reactor test cases.
4 years ago
dependabot[bot]
e820e68acd
build(deps): Bump vuepress-theme-cosmos from 1.0.175 to 1.0.176 in /docs ( #5727 )
Bumps [vuepress-theme-cosmos](https://github.com/cosmos/vuepress-theme-cosmos ) from 1.0.175 to 1.0.176.
- [Release notes](https://github.com/cosmos/vuepress-theme-cosmos/releases )
- [Commits](https://github.com/cosmos/vuepress-theme-cosmos/commits )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Anton Kaliaev
33dbff61d3
blockchain/v1: fix deadlock ( #5711 )
I introduced a new variable - syncEnded, which is now used to prevent
sending new events to channels (which would block otherwise) if reactor
is finished syncing
Closes #4591
4 years ago
Callum Waters
f368b91caf
light: minor fixes / standardising errors ( #5716 )
## Description
I'm just doing a self audit of the light client. There's a few things I've changed
- Validate trust level in `VerifyNonAdjacent` function
- Make errNoWitnesses public (it's something people running software on top of a light client should be able to parse)
- Remove `ChainID` check of witnesses on start up. We do this already when we compare the first header with witnesses
- Remove `ChainID()` from provider interface
Closes : #4538
4 years ago
Anton Kaliaev
b1bbd37519
libs/bits: validate BitArray in FromProto ( #5720 )
Closes #5705
4 years ago
Marko
141d9c814d
readme: remover circleci badge ( #5729 )
## Description
- remove circleci badge from readme
Closes: #XXX
4 years ago
Anton Kaliaev
e13b4386ff
abci: modify Client interface and socket client ( #5673 )
`abci.Client`:
- Sync and Async methods now accept a context for cancellation
* grpc client uses context to cancel both Sync and Async requests
* local client ignores context parameter
* socket client uses context to cancel Sync requests and to drop Async requests before sending them if context was cancelled prior to that
- Async methods return an error
* socket client returns an error immediately if queue is full for Async requests
* local client always returns nil error
* grpc client returns an error if context was cancelled before we got response or the receiving queue had a space for response (do not confuse with the sending queue from the socket client)
- specify clients semantics in [doc.go](https://raw.githubusercontent.com/tendermint/tendermint/27112fffa62276bc016d56741f686f0f77931748/abci/client/doc.go )
`mempool.TxInfo`
- add optional `Context` to `TxInfo`, which can be used to cancel `CheckTx` request
Closes #5190
4 years ago
Alessio Treglia
0de4bec862
use Cleanup(),TempDir() in test cases ( #5723 )
Replace defer with t.Cleanup().
Replace the combination of ioutil.TempDir, error checking
and defer os.RemoveAll() with Go testing.T's new TempDir()
helper.
Mark auxiliary functions as test helpers.
4 years ago
Marko
781f4badc3
ci: build for 32 bit, libs: fix overflow ( #5700 )
4 years ago
Marko
27e8cea9ce
ci: remove circle ( #5714 )
* remove circle
* remove prefix
4 years ago
Tess Rinearson
98234b1171
README: update link to Tendermint blog ( #5713 )
4 years ago
Erik Grinaker
6f9f8b58ae
test: fix TestByzantinePrevoteEquivocation flake ( #5710 )
This fixes spurious `TestByzantinePrevoteEquivocation` failures by extending the block range and time spent waiting for evidence. I've seen many runs where the evidence isn't committed until e.g. height 27. Haven't looked into _why_ this happens, but as long as the evidence is committed eventually and the test doesn't spuriously fail I'm (mostly) happy. WDYT @cmwaters ?
4 years ago
Marko
85e94161cd
version: add abci version to handshake ( #5706 )
## Description
- add `AbciVersion` RequestInfo
Closes : #2804
4 years ago
Erik Grinaker
4988877f19
crypto: fix infinite recursion in Secp256k1 string formatting ( #5707 )
This caused stack overflow panics in E2E tests, e.g.:
```
2020-11-24T02:37:17.6085640Z [35mvalidator04 |[0m runtime: goroutine stack exceeds 1000000000-byte limit
2020-11-24T02:37:17.6087818Z [35mvalidator04 |[0m runtime: sp=0xc0234b23c0 stack=[0xc0234b2000, 0xc0434b2000]
2020-11-24T02:37:17.6088920Z [35mvalidator04 |[0m fatal error: stack overflow
2020-11-24T02:37:17.6089776Z [35mvalidator04 |[0m
2020-11-24T02:37:17.6090569Z [35mvalidator04 |[0m runtime stack:
2020-11-24T02:37:17.6091677Z [35mvalidator04 |[0m runtime.throw(0x12dc476, 0xe)
2020-11-24T02:37:17.6093123Z [35mvalidator04 |[0m /usr/local/go/src/runtime/panic.go:1116 +0x72
2020-11-24T02:37:17.6094320Z [35mvalidator04 |[0m runtime.newstack()
2020-11-24T02:37:17.6095374Z [35mvalidator04 |[0m /usr/local/go/src/runtime/stack.go:1067 +0x78d
2020-11-24T02:37:17.6096381Z [35mvalidator04 |[0m runtime.morestack()
2020-11-24T02:37:17.6097657Z [35mvalidator04 |[0m /usr/local/go/src/runtime/asm_amd64.s:449 +0x8f
2020-11-24T02:37:17.6098505Z [35mvalidator04 |[0m
2020-11-24T02:37:17.6099328Z [35mvalidator04 |[0m goroutine 88 [running]:
2020-11-24T02:37:17.6100470Z [35mvalidator04 |[0m runtime.heapBitsSetType(0xc009565380, 0x20, 0x18, 0x1137e00)
2020-11-24T02:37:17.6101961Z [35mvalidator04 |[0m /usr/local/go/src/runtime/mbitmap.go:911 +0xaa5 fp=0xc0234b23d0 sp=0xc0234b23c8 pc=0x432625
2020-11-24T02:37:17.6103906Z [35mvalidator04 |[0m runtime.mallocgc(0x20, 0x1137e00, 0x117b601, 0x11e9240)
2020-11-24T02:37:17.6105179Z [35mvalidator04 |[0m /usr/local/go/src/runtime/malloc.go:1090 +0x5a5 fp=0xc0234b2470 sp=0xc0234b23d0 pc=0x428b25
2020-11-24T02:37:17.6106540Z [35mvalidator04 |[0m runtime.convTslice(0xc002743710, 0x21, 0x21, 0xc0234b24e8)
2020-11-24T02:37:17.6107861Z [35mvalidator04 |[0m /usr/local/go/src/runtime/iface.go:385 +0x59 fp=0xc0234b24a0 sp=0xc0234b2470 pc=0x426379
2020-11-24T02:37:17.6109315Z [35mvalidator04 |[0m github.com/tendermint/tendermint/crypto/secp256k1.PubKey.String(...)
2020-11-24T02:37:17.6151692Z [35mvalidator04 |[0m /src/tendermint/crypto/secp256k1/secp256k1.go:161
2020-11-24T02:37:17.6153872Z [35mvalidator04 |[0m github.com/tendermint/tendermint/crypto/secp256k1.(*PubKey).String(0xc009565360, 0x11e9240, 0xc009565360)
2020-11-24T02:37:17.6157421Z [35mvalidator04 |[0m <autogenerated>:1 +0x65 fp=0xc0234b24f8 sp=0xc0234b24a0 pc=0x656965
2020-11-24T02:37:17.6159134Z [35mvalidator04 |[0m fmt.(*pp).handleMethods(0xc00956c680, 0x58, 0xc0234b2801)
2020-11-24T02:37:17.6161462Z [35mvalidator04 |[0m /usr/local/go/src/fmt/print.go:630 +0x30a fp=0xc0234b2768 sp=0xc0234b24f8 pc=0x518b8a
[...]
2020-11-24T02:37:17.6649685Z [35mvalidator04 |[0m /usr/local/go/src/fmt/print.go:630 +0x30a fp=0xc0234b7f48 sp=0xc0234b7cd8 pc=0x518b8a
2020-11-24T02:37:17.6651177Z [35mvalidator04 |[0m created by github.com/tendermint/tendermint/node.startStateSync
2020-11-24T02:37:17.6652521Z [35mvalidator04 |[0m /src/tendermint/node/node.go:587 +0x150
```
4 years ago
dependabot[bot]
ba256b383b
build(deps): Bump github.com/cosmos/iavl from 0.15.0-rc5 to 0.15.0 ( #5708 )
Bumps [github.com/cosmos/iavl](https://github.com/cosmos/iavl ) from 0.15.0-rc5 to 0.15.0.
- [Release notes](https://github.com/cosmos/iavl/releases )
- [Changelog](https://github.com/cosmos/iavl/blob/master/CHANGELOG.md )
- [Commits](https://github.com/cosmos/iavl/compare/v0.15.0-rc5...v0.15.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Marko
69dd8fea9d
docs: add nodes section ( #5604 )
## Description
- separate docs related to running nodes into the nodes dir.
- keep old files but dont display them
- bring over debugging like a pro blog
Closes: #XXX
4 years ago
Anton Kaliaev
170cb70e19
test/e2e: enable v1 and v2 blockchains ( #5702 )
* test/e2e: enable v1 and v2 blockchains
* modify networks/ci.toml
4 years ago
Anton Kaliaev
3ad1157451
blockchain/v1: handle peers without blocks ( #5701 )
Closes #5444
Now we record the fact that a peer does not have a requested block and later use this information to make a new request for the same block from another peer.
4 years ago
Marko
095e9cd7ef
codecov: validate codecov.yml ( #5699 )
## Description
_Please add a description of the changes that this PR introduces and the files that
are the most critical to review._
Closes: #XXX
4 years ago
Tess Rinearson
2c2120691c
CONTRIBUTING: update to match the release flow used for 0.34.0 ( #5697 )
4 years ago
Tess Rinearson
8b29622fe2
.goreleaser: add windows, remove arm (32 bit) ( #5692 )
This updates the goreleaser tooling to build the same binaries that were built for the 0.34.0 release.
4 years ago
Tess Rinearson
6bee97160f
changelog: squash changelog from 0.34 RCs into one ( #5691 )
"Squashes" the changelog from RCs 2-6 into one changelog message for 0.34.0, and adds the changelog pending.
4 years ago
Tess Rinearson
64101f5ac9
.gitignore: sort ( #5690 )
4 years ago
Tess Rinearson
3246283cf2
.vscode: remove directory ( #5626 )
4 years ago
Tess Rinearson
f97a498cee
scripts: make linkifier default to 'pull' rather than 'issue' ( #5689 )
4 years ago
Callum Waters
68dc751a8c
light: ensure required header fields are present for verification ( #5677 )
4 years ago
Tess Rinearson
b435d9aae5
upgrading: update 0.34 instructions with updates since RC4 ( #5685 )
Co-authored-by: Marko <marbar3778@yahoo.com>
4 years ago
Erik Grinaker
e3728e7709
p2p: remove unused MakePoWTarget() ( #5684 )
4 years ago
Anton Kaliaev
f2f6a78809
docs: warn developers about calling blocking funcs in Receive ( #5679 )
Refs #2888
4 years ago
Marko
b2d72dce7e
e2e: use ed25519 for secretConn (remote signer) ( #5678 )
## Description
Hardcode ed25519 to dialTCPFn in e2e tests.
I will backport `DefaultRequestHandler` fixes
This will be replaced when grpc is implemented.
4 years ago
Callum Waters
909da42789
light: make fraction parts uint64, ensuring that it is always positive ( #5655 )
4 years ago
dependabot[bot]
4e71357808
build(deps): Bump codecov/codecov-action from v1.0.14 to v1.0.15 ( #5676 )
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from v1.0.14 to v1.0.15.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Commits](https://github.com/codecov/codecov-action/compare/v1.0.14...239febf655bba88b16ff5dea1d3135ea8663a1f9 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Marko
fbf2309962
ci: remove `add-path` ( #5674 )
4 years ago
Marko
39e81807a3
buf: modify buf.yml, add buf generate ( #5653 )
4 years ago
Erik Grinaker
2d0fcf498d
privval: duplicate SecretConnection from p2p package ( #5672 )
This is so that the `privval` package will not be affected when we refactor `p2p` (#5670 ). We will be migrating to gRPC shortly (#4698 ).
4 years ago
Erik Grinaker
deb4f60613
docs: add P2P architecture ADR ( #5637 )
[Rendered](https://github.com/tendermint/tendermint/blob/erik/adr-p2p-architecture/docs/architecture/adr-062-p2p-architecture.md )
ADR for the new P2P architecture and abstractions. Related to #2067 .
4 years ago
Tess Rinearson
a736530e01
docs/architecture: add missing ADRs to README, update status of ADR 034 ( #5663 )
4 years ago
Marko
e0950515ff
test/e2e: fix secp failures ( #5649 )
4 years ago
Aleksandr Bezobchuk
8aa47c7da5
rpc: fix content-type header ( #5661 )
4 years ago
Callum Waters
2f5e454892
remove unused version struct ( #5656 )
4 years ago
Erik Grinaker
e9294de946
go.mod: upgrade iavl and deps ( #5657 )
Bumps IAVL, which pulled in some other upgrades as well. I think they should be fine though.
4 years ago
dependabot[bot]
fdecfa177d
build(deps): Bump rtCamp/action-slack-notify from e9db0ef to 2.1.1
Bumps [rtCamp/action-slack-notify](https://github.com/rtCamp/action-slack-notify ) from e9db0ef to 2.1.1. This release includes the previously tagged commit.
- [Release notes](https://github.com/rtCamp/action-slack-notify/releases )
- [Commits](https://github.com/rtCamp/action-slack-notify/compare/e9db0ef...ecc1353ce30ef086ce3fc3d1ea9ac2e32e150402 )
Signed-off-by: dependabot[bot] <support@github.com>
4 years ago
Alessio Treglia
8bd3d5105f
libs/os: remove unused aliases, add test cases ( #5654 )
Remove unused ReadFile (unused) and
WriteFile (almost unused, alias of ioutil.WriteFile).
Add testcases for Must{Read,Write}File.
4 years ago
Marko
95cff1efb4
proto: buf for everything ( #5650 )
## Description
- remove installation of protoc
- use buf protoc to generate proto stubs
prior to approving could someone test locally. I restarted my docker instance and its been stuck for 20+ minutes
Closes: #XXX
4 years ago
Alessio Treglia
eb0d353767
libs/os: add test case for TrapSignal ( #5646 )
4 years ago
dependabot[bot]
a399fae100
build(deps): Bump github.com/tendermint/tm-db from 0.6.2 to 0.6.3
Bumps [github.com/tendermint/tm-db](https://github.com/tendermint/tm-db ) from 0.6.2 to 0.6.3.
- [Release notes](https://github.com/tendermint/tm-db/releases )
- [Changelog](https://github.com/tendermint/tm-db/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tendermint/tm-db/compare/v0.6.2...v0.6.3 )
Signed-off-by: dependabot[bot] <support@github.com>
4 years ago
Marko
baa20a4b9c
fix docker deployment ( #5647 )
4 years ago
Anton Kaliaev
af645ac778
privval: reset pingTimer to avoid sending unnecessary pings ( #5642 )
Refs #5550
4 years ago