Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use latest cometbft-db in v0.38.x #4296

Closed
wants to merge 367 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
367 commits
Select commit Hold shift + click to select a range
1e3fd31
docs: various improvements (backport #1603) (#1614)
mergify[bot] Nov 17, 2023
9e1f2f0
Release v0.38.1 (#1639)
thanethomson Nov 17, 2023
1ebfc97
proto: Prepare for publishing v0.38.x protos to Buf registry (#1647)
thanethomson Nov 17, 2023
0d5afde
proto: Update README (#1648) (#1651)
mergify[bot] Nov 17, 2023
9d844cd
build(deps): Bump docker/build-push-action from 5.0.0 to 5.1.0 (#1660)
dependabot[bot] Nov 20, 2023
52547bd
build(deps): Bump bufbuild/buf-setup-action from 1.28.0 to 1.28.1 (#1…
dependabot[bot] Nov 20, 2023
a4194e2
test: respect P2PConfig fuzzing configuration in MultiplexTransport (…
mergify[bot] Nov 20, 2023
9431a4a
mempool: add `nop` mempool (backport #1643) (#1680)
mergify[bot] Nov 23, 2023
5490f51
docs: various small improvements (part 2) (backport #1683) (#1685)
mergify[bot] Nov 23, 2023
3a73c3f
Do not block indefinitely on the semaphore (backport #1654) (#1688)
mergify[bot] Nov 24, 2023
2aacfbe
Release v0.38.2 (#1700)
lasarojc Nov 27, 2023
311b5a6
types: validate Validator#Address field (backport #1715) (#1721)
mergify[bot] Dec 2, 2023
8b7357f
fix: increase abci socket message size limit to 2GB (backport #1730) …
mergify[bot] Dec 5, 2023
ced212b
fix: Txs Validate (#1687) (#1751)
mergify[bot] Dec 6, 2023
aeb5f68
Add test missing in #1687 (backport #1712) (#1759)
mergify[bot] Dec 6, 2023
c084540
perf(state): batch save `State` (backport #1735) (#1762)
mergify[bot] Dec 7, 2023
374eedb
Update CODE_OF_CONDUCT.md (#1708) (#1766)
mergify[bot] Dec 7, 2023
a535316
[e2e] Fixes prepareProposal not to return oversized set of transactio…
mergify[bot] Dec 7, 2023
1b1ef9a
perf(store): Batch save `Block` (#1755) (#1778)
mergify[bot] Dec 8, 2023
6224629
chore(docs): small improvements (backport #1781) (#1803)
mergify[bot] Dec 11, 2023
39e73fd
build(deps): Bump actions/setup-go from 4 to 5 (#1784)
dependabot[bot] Dec 11, 2023
8939ac4
build(deps): Bump actions/stale from 8 to 9 (#1785)
dependabot[bot] Dec 11, 2023
f5da30d
`VerifyCommitLight` and `VerifyCommitLightTrusting` _never_ check all…
mergify[bot] Dec 11, 2023
4ba0e2b
chore(spec): specify which fields must be deterministic (backport #18…
mergify[bot] Dec 13, 2023
48db7c8
Add changelog for #1749 (#1807) (#1819)
mergify[bot] Dec 13, 2023
1575d38
Small improvements in #1806 not present in #1750 (#1808) (#1817)
mergify[bot] Dec 13, 2023
76d2cac
chore(docs): explain the effect of `timeout_propose` (backport #1798)…
mergify[bot] Dec 15, 2023
c0cb233
Backport changelog for PR #896 to `v0.38.x` (#1835)
sergio-mena Dec 18, 2023
14b3eb9
build(deps): Bump actions/upload-artifact from 3 to 4 (#1844)
dependabot[bot] Dec 18, 2023
41e60e1
Updates go crypto package to v0.17.0 (backport #1859) (#1863)
mergify[bot] Dec 19, 2023
5235427
The store DB and the companion `BlockStore` struct are sometimes out …
mergify[bot] Dec 19, 2023
73aab64
Adds checks for nil keys and signatures (backport #1855) (#1867)
mergify[bot] Dec 19, 2023
721ac3c
Allow blocksync to not verify all signatures (#1858) (#1870)
mergify[bot] Dec 20, 2023
907a3c1
docs: Fix Discord links in README (backport #1874) (#1894)
mergify[bot] Jan 4, 2024
477aed7
Extend kvstore example add with with key types (backport #1876) (#1966)
mergify[bot] Jan 5, 2024
74e3c22
perf(crypto/merkle, crypto/tmhash): simplify+optimize SHA256 hashing …
mergify[bot] Jan 5, 2024
ce17630
Update localnet-start Makefile (#1975) (#1980)
mergify[bot] Jan 7, 2024
d707110
blocksync: wait for poolRoutine to stop in (*Reactor).OnStop (#1879) …
mergify[bot] Jan 7, 2024
8866478
fix TestListenerTimeoutReadWrite (#1947) (#1985)
mergify[bot] Jan 7, 2024
1e434f1
feat: DefaultHttpClient support setting proxy from env (#1900) (#1990)
mergify[bot] Jan 8, 2024
07581a6
mempool: Fix data races in CListMempool's height and notifiedTxsAvail…
mergify[bot] Jan 12, 2024
f7cbf1d
feat(rpc): Use default port for HTTP(S) URLs when there is no explici…
mergify[bot] Jan 17, 2024
e65a966
misc(go.mod): remove unused peg dependency (backport #2044) (#2055)
mergify[bot] Jan 17, 2024
5fbc973
Merge pull request from GHSA-qr8r-m495-7hc4
sergio-mena Jan 18, 2024
81a4e11
docs(guides): add missing import (backport #2070) (#2076)
mergify[bot] Jan 22, 2024
4f2c111
deps(localnode): bump alpine version (backport #2077) (#2080)
mergify[bot] Jan 22, 2024
3c2034f
misc(Makefile): add `help` target to display the help msg (backport #…
mergify[bot] Jan 22, 2024
68ada7c
Manual backport of #2066 to `v0.38.x` (#2067)
sergio-mena Jan 22, 2024
25422ef
Fix `SaveBlockStoreState` signature on `v0.38.x` (#2086)
sergio-mena Jan 22, 2024
93261b1
Release `v0.38.4` (#2088)
sergio-mena Jan 22, 2024
a17290f
consensus: Add `chain_size_bytes` metric (backport #2093) (#2096)
mergify[bot] Jan 23, 2024
b7c1e18
fix: [manual backport] `ValidateUpdate`: allow no-change updates rega…
sergio-mena Jan 24, 2024
2cd0d1a
Release `v0.38.5` (#2118)
sergio-mena Jan 24, 2024
04636a8
perf(internal/blocksync): avoid double-calling `types.BlockFromProto`…
mergify[bot] Jan 26, 2024
3fa1d5c
build(deps): Bump styfle/cancel-workflow-action from 0.12.0 to 0.12.1…
dependabot[bot] Jan 29, 2024
21c07a4
build(deps): Bump bufbuild/buf-setup-action from 1.28.1 to 1.29.0 (#2…
dependabot[bot] Jan 29, 2024
8c4092b
build(deps): Bump slackapi/slack-github-action from 1.24.0 to 1.25.0 …
dependabot[bot] Jan 29, 2024
6b9defb
fix(privval): retry accepting a connection on errors (backport #2047)…
mergify[bot] Jan 30, 2024
1f48ff9
feat(consensus): additional sanity checks for the size of proposed bl…
mergify[bot] Jan 31, 2024
a0fbb9c
build(deps): Bump github.com/cloudflare/circl from 1.3.3 to 1.3.7 (ba…
mergify[bot] Feb 6, 2024
c2d6cb4
refactor(examples): small changes to kvstore app (backport #2267) (#2…
mergify[bot] Feb 8, 2024
aec5e39
build(deps): Bump golangci/golangci-lint-action from 3 to 4 (#2302)
dependabot[bot] Feb 12, 2024
8d52002
chore(docs): alter the section about the effects of `timeout_commit` …
mergify[bot] Feb 12, 2024
ff7cc79
docs: images not rendering properly in docs (backport #2331) (#2338)
mergify[bot] Feb 14, 2024
0a2b829
docs: Fix references about DeliverTx (backport #2330) (#2342)
mergify[bot] Feb 14, 2024
347b1b4
disable revive (#2349)
melekes Feb 15, 2024
8d2d76d
e2e: Add `load_max_txs` option to manifest (backport #2094) (#2334)
mergify[bot] Feb 15, 2024
70db8c0
mempool: export errors (backport #1427) (#2277)
mergify[bot] Feb 15, 2024
cb99e53
feat(e2e): Option to set max block size in bytes at genesis (backport…
mergify[bot] Feb 19, 2024
47583fb
fix(docker-compose): fix subnet (backport #2383) (#2391)
mergify[bot] Feb 20, 2024
27c8055
docs(tutorials/install): add `From Go package` (backport #2414) (#2437)
mergify[bot] Feb 26, 2024
8cd4a69
refactor(consensus): print err from SignAndCheckVote (backport #2346)…
mergify[bot] Feb 26, 2024
851fd2b
fix(jsonrpc): enable HTTP basic auth in WS client (backport #2434) (#…
mergify[bot] Feb 27, 2024
16f92f2
fix: `Rollback`: wrong modification of `state.LastHeightValidatorsCha…
mergify[bot] Feb 27, 2024
91413e6
docs(changelog): add missing entry for #2136 (backport #2459) (#2464)
mergify[bot] Feb 28, 2024
99c1816
ci: check metrics generation in CI checks (backport #2483) (#2485)
mergify[bot] Feb 29, 2024
6ddf85b
build(deps): Bump docker/setup-buildx-action from 3.0.0 to 3.1.0 (#2509)
dependabot[bot] Mar 4, 2024
f356b79
spec(abci): fixes the spec to inform about the presence of invalid ex…
mergify[bot] Mar 5, 2024
2a10503
build(deps): Bump bufbuild/buf-setup-action from 1.29.0 to 1.30.0 (#2…
dependabot[bot] Mar 11, 2024
d27a96e
build(deps): Bump docker/build-push-action from 5.1.0 to 5.2.0 (#2567)
dependabot[bot] Mar 11, 2024
6d606ce
feat(blocksync): set the max number of (concurrently) downloaded bloc…
melekes Mar 11, 2024
6cf6978
feat(blocksync): sort peers by download rate & multiple requests for …
mergify[bot] Mar 12, 2024
9db2930
fix(blocksync): use timer instead of time.After (backport #2584) (#2587)
mergify[bot] Mar 12, 2024
1519562
Release v0.38.6 (#2592)
melekes Mar 13, 2024
51ee8c0
docs: format error in ABCI++ specs under commit and listsnapshots sec…
mergify[bot] Mar 13, 2024
14d32d0
build(deps): Bump docker/login-action from 3.0.0 to 3.1.0 (#2628)
dependabot[bot] Mar 18, 2024
3e8cdb2
build(deps): Bump docker/setup-buildx-action from 3.1.0 to 3.2.0 (#2629)
dependabot[bot] Mar 18, 2024
56b005b
build(deps): Bump docker/build-push-action from 5.2.0 to 5.3.0 (#2630)
dependabot[bot] Mar 18, 2024
9606d28
spec: added missing hyperlink and some clean-up on ABCI spec (#2680)
andynog Mar 27, 2024
fd5b3f3
spec: Add additional information about validator ordering (total powe…
mergify[bot] Apr 5, 2024
68a5627
build(deps): Bump bufbuild/buf-setup-action from 1.30.0 to 1.30.1 (#2…
dependabot[bot] Apr 9, 2024
66494ac
update golang.org/x/net from v0.20.0 to v0.23.0 (#2781)
melekes Apr 11, 2024
575b889
fix(bits): prevent BitArray.UnmarshalJSON from crashing on 0 bits in …
mergify[bot] Apr 11, 2024
e5cf488
refactor(rpc): miss stop PingPongLatencyTimer (backport #2792) (#2795)
mergify[bot] Apr 12, 2024
1f67e39
fix: BootstrapState use custom genesis doc provider (backport: #2791)…
yihuang Apr 12, 2024
de17c2d
build(deps): Bump docker/setup-buildx-action from 3.2.0 to 3.3.0 (#2808)
dependabot[bot] Apr 15, 2024
365d4e4
refactor(rpc): allocate PingPongLatencyTimer on start (backport #2804…
mergify[bot] Apr 15, 2024
d7ab511
chore: fix filenames and format in changelog unclog files (backport #…
mergify[bot] Apr 18, 2024
e8ab44f
build(deps): Bump slackapi/slack-github-action from 1.25.0 to 1.26.0 …
dependabot[bot] Apr 22, 2024
2a8c5ff
perf(libs/json): Lower heap overhead of JSON encoding (backport #2846…
mergify[bot] Apr 23, 2024
a9e045b
perf(txindex): Lower allocation overhead of txIndex matchRange (backp…
mergify[bot] Apr 24, 2024
f6cde44
perf(internal/bits): Significantly speedup bitArray.PickRandom (backp…
mergify[bot] Apr 24, 2024
7cd7ae4
fix(bits): handle last element in PickRandom (backport #2899) (#2901)
mergify[bot] Apr 26, 2024
b67ea6f
fix(mempool): panic when the app returns error on CheckTx request (ba…
mergify[bot] Apr 26, 2024
1b1216c
v0.38.7 (#2908)
melekes Apr 27, 2024
003228b
build(deps): Bump bufbuild/buf-setup-action from 1.30.1 to 1.31.0 (#2…
dependabot[bot] Apr 29, 2024
cdf8c54
build(deps): Bump golangci/golangci-lint-action from 4 to 5 (#2919)
dependabot[bot] Apr 29, 2024
203bf33
perf(state): Cache the block hash (backport #2924) (#2931)
mergify[bot] Apr 29, 2024
a70a989
perf(event bus): Remove expensive Logger debug call in PublishEventTx…
mergify[bot] Apr 29, 2024
cf17465
spec(abci): slight improvements to ABCI spec (@angrav's feedback from…
mergify[bot] Apr 30, 2024
4937f14
perf(internal/blocksync): do not `ValidateBlock` twice (backport #202…
mergify[bot] Apr 30, 2024
457e119
perf(consensus/state): Change finalizeCommit to use applyVerifiedBloc…
mergify[bot] Apr 30, 2024
58627a5
perf(p2p/channel): Speedup NewDelimitedWriter (backport #2949) (#2968)
mergify[bot] May 2, 2024
3f037ed
perf(p2p): Remove unnecessary atomic read (backport #2950) (#2971)
mergify[bot] May 2, 2024
b870a44
perf(p2p/conn): Remove a minint call that was appearing in write pack…
mergify[bot] May 2, 2024
17074c8
refactor(p2p/connection): Slight refactor to sendManyPackets that hel…
mergify[bot] May 2, 2024
3431bc8
perf(internal/bits): Speedup extended commit.BitArray() (backport #29…
mergify[bot] May 2, 2024
ad18292
perf(p2p/connection): Lower wasted re-allocations in sendRoutine (bac…
mergify[bot] May 3, 2024
bef190a
perf(consensus/blockstore): Remove validate basic call from LoadBlock…
mergify[bot] May 3, 2024
bce83b3
feat: add a configurable maximum batch size for RPC requests (backpor…
mergify[bot] May 3, 2024
887a9ff
fix: remove comment about default value (#2867) (backport #3000) (#3013)
mergify[bot] May 6, 2024
a977aa5
perf: Micro optimization to save one allocation per packet (backport …
mergify[bot] May 7, 2024
ed61568
perf: Minor speedup to consenus metrics MarkLateVote (backport #3017)…
mergify[bot] May 7, 2024
9ccdb9b
fix(mempool): Fix data race when rechecking with async ABCI client (b…
mergify[bot] May 7, 2024
705e517
docs: disambiguate protocol version (backport #3034) (#3040)
mergify[bot] May 8, 2024
0c06b31
build(deps): Bump golangci/golangci-lint-action from 5 to 6 (#3068)
dependabot[bot] May 13, 2024
f97bee9
perf(blockstore): Add LRU caches to blockstore operations used in con…
mergify[bot] May 15, 2024
51884f9
build(deps): Bump bufbuild/buf-setup-action from 1.31.0 to 1.32.0 (#3…
dependabot[bot] May 20, 2024
01ca424
fix: TimeoutTicker returns wrong value/timeout pair when timeouts are…
mergify[bot] May 22, 2024
dd124fc
build(deps): Bump bufbuild/buf-setup-action from 1.32.0 to 1.32.1 (#3…
dependabot[bot] May 27, 2024
a38dbb2
fix: docs: default db provider moved from node to config (backport #1…
mergify[bot] May 27, 2024
6adb4fc
build(deps): Bump bufbuild/buf-setup-action from 1.32.1 to 1.32.2 (#3…
dependabot[bot] Jun 3, 2024
ba70f4c
build(deps): Bump docker/login-action from 3.1.0 to 3.2.0 (#3166)
dependabot[bot] Jun 3, 2024
b340e2e
chore: update cosmosnetwork discord url (backport #3153) (#3176)
mergify[bot] Jun 3, 2024
06b6583
build(deps): Bump goreleaser/goreleaser-action from 5 to 6 (#3213)
dependabot[bot] Jun 10, 2024
ee556e3
fix(e2e): reproduction an fixing of missing evidence in `e2e` nightli…
mergify[bot] Jun 11, 2024
94cfccf
build(deps): Bump bufbuild/buf-setup-action from 1.32.2 to 1.33.0 (#3…
dependabot[bot] Jun 17, 2024
cd3851e
build(deps): Bump docker/build-push-action from 5.3.0 to 6.0.0 (#3289)
dependabot[bot] Jun 17, 2024
40409a1
fix(types): DO NOT batch verify if vals keys (backport #3196) (#3308)
mergify[bot] Jun 20, 2024
6fe9711
fix(mempool): wrong request type when rechecking (#3264)
hvanz Jun 21, 2024
0ec3f0b
build(deps): Bump bufbuild/buf-setup-action from 1.33.0 to 1.34.0 (#3…
dependabot[bot] Jun 24, 2024
064662b
build(deps): Bump docker/build-push-action from 6.0.0 to 6.1.0 (#3326)
dependabot[bot] Jun 24, 2024
201aa2c
fix(mempool)!: stop accepting TXs in the mempool if we can't keep up …
mergify[bot] Jun 24, 2024
4ad41c0
chore(types): add test for ValidatorSet#AllKeysHaveSameType (backport…
mergify[bot] Jun 26, 2024
05ac431
Added tests to check extendedCommit with different vote extension set…
greg-szabo May 3, 2024
a11292e
Tests redone with a byzantine reactor sending wrong blocks
greg-szabo May 3, 2024
126cc87
Refactor test
greg-szabo May 9, 2024
259ec76
also check if extendedcommit was sent when VoteExtensions are disable…
greg-szabo May 9, 2024
1492292
added unclog entry
greg-szabo May 9, 2024
eaee53c
ABC-0013 fix and broken test
greg-szabo May 29, 2024
789be09
blocksync pool ban test
greg-szabo Jun 20, 2024
d38ee19
Update blocksync/reactor_test.go
greg-szabo Jun 21, 2024
ec86f73
Simplified blocksync malicious node test, fix nil pointer error
greg-szabo Jun 22, 2024
26bda8b
Test assertions have more detail
greg-szabo Jun 22, 2024
4cb0df8
Update blocksync/pool_test.go
greg-szabo Jun 24, 2024
872210c
Update blocksync/pool_test.go
greg-szabo Jun 24, 2024
8a473ca
Update blocksync/pool_test.go
greg-szabo Jun 24, 2024
4199f27
Remove one thread to make test more compact
greg-szabo Jun 24, 2024
007efd7
Removed defers from test
greg-szabo Jun 24, 2024
065810c
Readded good peer to test
greg-szabo Jun 24, 2024
0a89ec1
Update blocksync/pool_test.go
greg-szabo Jun 24, 2024
8ba2e4f
Merge pull request from GHSA-hg58-rf2h-6rr7
greg-szabo Jun 27, 2024
6959205
Release/v0.38.8 (#3350)
greg-szabo Jun 27, 2024
4027622
fix(rpc): fix nil pointer error in `/tx` and `/tx_search` (backport #…
mergify[bot] Jun 28, 2024
1e22f66
refactor(mempool)!: remove PreUpdate from Mempool interface and move …
hvanz Jun 28, 2024
1fd2b98
build(deps): Bump docker/build-push-action from 6.1.0 to 6.2.0 (#3381)
dependabot[bot] Jul 1, 2024
4e83f9d
Release/v0.38.9 (#3387)
hvanz Jul 1, 2024
3cf037a
docs(rpc): update /abci_info return parameters (backport #3359) (#3392)
mergify[bot] Jul 2, 2024
ecd56ec
fix(p2p/pex): respect MaxNumOutboundPeers limit while dialing peers p…
mergify[bot] Jul 2, 2024
eea0ec1
docs: remove not existing key from block search query (backport #3399…
mergify[bot] Jul 3, 2024
4e85725
perf(p2p): Only update send monitor once per batch packet msg send (b…
mergify[bot] Jul 5, 2024
0aeebd5
fix(blocksync): don't block in blocksync if our voting power is block…
mergify[bot] Jul 5, 2024
9ca0b49
perf(p2p/conn): Remove unneeded global pool buffers in secret connect…
mergify[bot] Jul 5, 2024
a392c28
build(deps): Bump docker/setup-buildx-action from 3.3.0 to 3.4.0 (#3439)
dependabot[bot] Jul 8, 2024
f2b42d7
build(deps): Bump docker/build-push-action from 6.2.0 to 6.3.0 (#3440)
dependabot[bot] Jul 8, 2024
fcac713
changelog: moving entry (#3396) to right location (#3457)
cason Jul 8, 2024
a1b6c68
feat(libs/pubsub): allow dash symbol in event type/attribute (backpor…
mergify[bot] Jul 9, 2024
0792c8b
fix: invalid `txs_results` returned for legacy ABCI responses (backpo…
mergify[bot] Jul 9, 2024
641d528
doc(changelog): move recent HackerOne changelogs to 'bug fixes' (#3479)
sergio-mena Jul 10, 2024
c2405cc
feat: do not start indexer service (back port: #3331) (#3496)
mmsqe Jul 11, 2024
5f59b42
chore: release `v0.38.10` (#3515)
melekes Jul 15, 2024
9f48aff
build(deps): Bump docker/build-push-action from 6.3.0 to 6.4.1 (#3538)
dependabot[bot] Jul 22, 2024
24b39c5
fix(types): Add missing JSON tags to `DuplicateVoteEvidence` and `Lig…
mergify[bot] Jul 24, 2024
dcc59c5
fix(ci): run `make all` error 'No rule to make target 'check'' (backp…
mergify[bot] Jul 26, 2024
48cdbc9
fix(indexer): Ineffective or missing break statements in kv package. …
mergify[bot] Jul 26, 2024
e3cc860
build(deps): Bump bufbuild/buf-setup-action from 1.34.0 to 1.35.1 (#3…
dependabot[bot] Jul 29, 2024
aaf83e9
build(deps): Bump docker/build-push-action from 6.4.1 to 6.5.0 (#3586)
dependabot[bot] Jul 29, 2024
cba216a
build(deps): Bump docker/login-action from 3.2.0 to 3.3.0 (#3585)
dependabot[bot] Jul 29, 2024
61ca12e
build(deps): Bump docker/setup-buildx-action from 3.4.0 to 3.5.0 (#3584)
dependabot[bot] Jul 29, 2024
e9bd8a9
build(deps): Bump docker/setup-buildx-action from 3.5.0 to 3.6.1 (#3610)
dependabot[bot] Aug 5, 2024
9de925c
fix(e2e): replace docker-compose w/ docker compose (backport #3614) (…
mergify[bot] Aug 5, 2024
f85d897
feat(mempool): add error ErrRecheckFull (backport #3654) (#3656)
mergify[bot] Aug 9, 2024
c17d1f6
fix(types): Only require extension signature if extensions are enable…
chillyvee Aug 9, 2024
cd3519d
build(deps): Bump bufbuild/buf-setup-action from 1.35.1 to 1.36.0 (#3…
dependabot[bot] Aug 12, 2024
66a0447
build(deps): Bump docker/build-push-action from 6.5.0 to 6.6.1 (#3676)
dependabot[bot] Aug 12, 2024
e1b4453
v0.38.11 (#3684)
melekes Aug 12, 2024
b55fa31
revert(types): Revert #3543 (backport #3549) (#3705)
alesforz Aug 15, 2024
56821a9
build(deps): Bump docker/build-push-action from 6.6.1 to 6.7.0 (#3750)
dependabot[bot] Aug 19, 2024
052a848
build(deps): Bump bufbuild/buf-setup-action from 1.36.0 to 1.37.0 (#3…
dependabot[bot] Aug 19, 2024
344eaf7
build(deps): Bump github.com/btcsuite/btcd/btcutil from 1.1.3 to 1.1.…
dependabot[bot] Aug 20, 2024
30143c6
build(deps): Bump golang.org/x/crypto from 0.21.0 to 0.26.0 (#3803)
dependabot[bot] Aug 20, 2024
5b0c768
build(deps): Bump github.com/gorilla/websocket from 1.5.0 to 1.5.3 (#…
dependabot[bot] Aug 20, 2024
01ee8c4
build(crypto/secp256k1): Update `btcec/v2` to v2.3.4 (backport #3728)…
mergify[bot] Aug 20, 2024
5f9cdaa
build(deps): Bump github.com/google/uuid from 1.4.0 to 1.6.0 (#3801)
dependabot[bot] Aug 20, 2024
175432b
build(deps): Bump github.com/spf13/cobra from 1.8.0 to 1.8.1 (#3795)
dependabot[bot] Aug 21, 2024
5a59820
build(deps): Bump github.com/spf13/viper from 1.18.1 to 1.19.0 (#3772)
dependabot[bot] Aug 21, 2024
b516e46
build(deps): Bump github.com/golang/protobuf from 1.5.3 to 1.5.4 (#3783)
dependabot[bot] Aug 21, 2024
4b3e839
build(deps): Bump github.com/cometbft/cometbft-db from 0.7.0 to 0.11.…
dependabot[bot] Aug 21, 2024
bc23140
build(deps): Bump github.com/prometheus/common from 0.42.0 to 0.55.0 …
dependabot[bot] Aug 21, 2024
bc596c5
build(deps): Bump github.com/prometheus/client_golang from 1.14.0 to …
dependabot[bot] Aug 21, 2024
090f8de
feat(e2e): Allow setting `log_level` in manifest (backport #3819) (#3…
mergify[bot] Aug 21, 2024
12fa0fa
feat(e2e): add `log_format` to e2e manifest (backport #3838) (#3842)
mergify[bot] Aug 22, 2024
44c7b3f
build(deps): Bump bufbuild/buf-setup-action from 1.37.0 to 1.38.0 (#3…
dependabot[bot] Aug 26, 2024
969c8d1
mempool: Fix the benchmarks (backport #934) (#3893)
mergify[bot] Aug 29, 2024
221c744
fix(privval): CV ignore duplicate privval listen when connected (back…
mergify[bot] Aug 30, 2024
8de81d5
build(deps): Bump golang.org/x/net from 0.26.0 to 0.28.0 (#3905)
dependabot[bot] Sep 2, 2024
dcbf359
build(deps): Bump github.com/Masterminds/semver/v3 from 3.2.0 to 3.3.…
dependabot[bot] Sep 2, 2024
2fb0cdd
build(deps): Bump github.com/rs/cors from 1.8.3 to 1.11.1 (#3907)
dependabot[bot] Sep 2, 2024
1013c80
test(mempool): Add two `Update` benchmarks (backport #3873) (#3892)
mergify[bot] Sep 2, 2024
cbedf6d
build(deps): Bump github.com/BurntSushi/toml from 1.2.1 to 1.4.0 (#3908)
dependabot[bot] Sep 2, 2024
f2ae0f4
build(deps): Bump github.com/cosmos/gogoproto from 1.4.11 to 1.7.0 (#…
dependabot[bot] Sep 3, 2024
52c00a5
Merge commit from fork
melekes Sep 3, 2024
9722b6d
v0.38.12 (#3982)
melekes Sep 3, 2024
d3f742f
build(deps): Bump github.com/minio/highwayhash from 1.0.2 to 1.0.3 (#…
dependabot[bot] Sep 4, 2024
4f16027
build(deps): Bump github.com/prometheus/common from 0.55.0 to 0.57.0 …
dependabot[bot] Sep 4, 2024
855c671
build(deps): Bump bufbuild/buf-setup-action from 1.38.0 to 1.39.0 (#3…
dependabot[bot] Sep 4, 2024
60e0c4d
build(deps): Bump slackapi/slack-github-action from 1.26.0 to 1.27.0 …
dependabot[bot] Sep 4, 2024
7648ef7
build(deps): Bump bufbuild/buf-setup-action from 1.39.0 to 1.40.1 (#4…
dependabot[bot] Sep 9, 2024
0b065ca
chore: Bump go toolchain to `1.22.7` on `v0.38.x` (#4065)
andynog Sep 11, 2024
9adc340
feat(mempool/metrics): Add new `evicted_txs` metric and call unused `…
mergify[bot] Sep 11, 2024
d480d00
build(deps): Bump Go to 1.22 (backport #4059) (#4073)
mergify[bot] Sep 11, 2024
418f82e
misc(tools)!: remove `tools` package (backport #2046) (#2073)
mergify[bot] Sep 11, 2024
5382321
build(deps): Bump gonum.org/v1/gonum from 0.12.0 to 0.15.1 (#3910)
dependabot[bot] Sep 11, 2024
2568d9d
build(deps): Bump bufbuild/buf-setup-action from 1.40.1 to 1.41.0 (#4…
dependabot[bot] Sep 16, 2024
fdf90d1
fix(mempool): change "mempool is full" log level to debug (backport #…
mergify[bot] Sep 20, 2024
cf7836a
build(deps): Bump bufbuild/buf-setup-action from 1.41.0 to 1.42.0 (#4…
dependabot[bot] Sep 23, 2024
e339afc
build(deps): Bump docker/build-push-action from 6.7.0 to 6.8.0 (#4194)
dependabot[bot] Sep 30, 2024
908093f
build(deps): Bump github.com/go-git/go-git/v5 from 5.11.0 to 5.12.0 (…
dependabot[bot] Oct 1, 2024
ce3df84
build(deps): Bump github.com/sasha-s/go-deadlock from 0.3.1 to 0.3.5 …
dependabot[bot] Oct 1, 2024
f01e418
build(deps): Bump github.com/lib/pq from 1.10.7 to 1.10.9 (#4200)
dependabot[bot] Oct 1, 2024
43eac82
build(deps): Bump github.com/prometheus/common from 0.57.0 to 0.59.1 …
dependabot[bot] Oct 1, 2024
0ea719f
build(deps): Bump github.com/adlio/schema from 1.3.3 to 1.3.6 (#4208)
dependabot[bot] Oct 1, 2024
4a8f661
build(deps): Bump github.com/go-kit/kit from 0.12.0 to 0.13.0 (#4206)
dependabot[bot] Oct 1, 2024
73d596d
build(deps): Bump github.com/prometheus/client_golang from 1.20.1 to …
dependabot[bot] Oct 1, 2024
067d6b0
build(deps): Bump google.golang.org/grpc from 1.66.1 to 1.67.0 (#4202)
dependabot[bot] Oct 1, 2024
fb704bb
build(deps): Bump bufbuild/buf-setup-action from 1.42.0 to 1.44.0 (#4…
dependabot[bot] Oct 9, 2024
fb08ff1
build(deps): Bump docker/build-push-action from 6.8.0 to 6.9.0 (#4266)
dependabot[bot] Oct 14, 2024
c3a66d3
build(deps): Bump docker/setup-buildx-action from 3.6.1 to 3.7.1 (#4264)
dependabot[bot] Oct 14, 2024
53dcd9b
build(deps): Bump bufbuild/buf-setup-action from 1.44.0 to 1.45.0 (#4…
dependabot[bot] Oct 14, 2024
c792fdf
use the latest cometbft-db
faddat Oct 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(privval): CV ignore duplicate privval listen when connected (back…
…port #3830) (#3896)

Resolve #3828

On cometbft startup, duplicate privval request can enter the channel
between the time listen begins and a send is attempted.

The duplicate listen request will timeout since there is not another
signer connecting, filling logs with errors. A duplicate listen request
is undesired.

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments
<hr>This is an automatic backport of pull request #3830 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Chill Validation <92176880+chillyvee@users.noreply.github.com>
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
  • Loading branch information
3 people authored Aug 30, 2024
commit 221c7445ae7461bfc39dd526b88b4f92e2dd2c22
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- `[privval]` Ignore duplicate privval listen when already connected ([\#3828](https://github.com/cometbft/cometbft/issues/3828)
6 changes: 2 additions & 4 deletions privval/signer_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ func (se *signerEndpoint) GetAvailableConnection(connectionAvailableCh chan net.

// TryGetConnection retrieves a connection if it is already available
func (se *signerEndpoint) WaitConnection(connectionAvailableCh chan net.Conn, maxWait time.Duration) error {
se.connMtx.Lock()
defer se.connMtx.Unlock()

select {
case se.conn = <-connectionAvailableCh:
case conn := <-connectionAvailableCh:
se.SetConnection(conn)
case <-time.After(maxWait):
return ErrConnectionTimeout
}
Expand Down
20 changes: 16 additions & 4 deletions privval/signer_listener_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package privval
import (
"fmt"
"net"
"sync/atomic"
"time"

"github.com/cometbft/cometbft/libs/log"
Expand Down Expand Up @@ -34,9 +35,10 @@ type SignerListenerEndpoint struct {
connectRequestCh chan struct{}
connectionAvailableCh chan net.Conn

timeoutAccept time.Duration
pingTimer *time.Ticker
pingInterval time.Duration
timeoutAccept time.Duration
acceptFailCount atomic.Uint32
pingTimer *time.Ticker
pingInterval time.Duration

instanceMtx cmtsync.Mutex // Ensures instance public methods access, i.e. SendRequest
}
Expand Down Expand Up @@ -159,9 +161,11 @@ func (sl *SignerListenerEndpoint) acceptNewConnection() (net.Conn, error) {
sl.Logger.Info("SignerListener: Listening for new connection")
conn, err := sl.listener.Accept()
if err != nil {
sl.acceptFailCount.Add(1)
return nil, err
}

sl.acceptFailCount.Store(0)
return conn, nil
}

Expand All @@ -181,9 +185,17 @@ func (sl *SignerListenerEndpoint) serviceLoop() {
for {
select {
case <-sl.connectRequestCh:
// On start, listen timeouts can queue a duplicate connect request to queue
// while the first request connects. Drop duplicate request.
if sl.IsConnected() {
sl.Logger.Debug("SignerListener: Connected. Drop Listen Request")
continue
}

// Listen for remote signer
conn, err := sl.acceptNewConnection()
if err != nil {
sl.Logger.Error("SignerListener: Error accepting connection", "err", err)
sl.Logger.Error("SignerListener: Error accepting connection", "err", err, "failures", sl.acceptFailCount.Load())
sl.triggerConnect()
continue
}
Expand Down
83 changes: 83 additions & 0 deletions privval/signer_listener_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,89 @@ func TestRetryConnToRemoteSigner(t *testing.T) {
}
}

func TestDuplicateListenReject(t *testing.T) {
for _, tc := range getDialerTestCases(t) {
var (
logger = log.TestingLogger()
chainID = cmtrand.Str(12)
mockPV = types.NewMockPV()
endpointIsOpenCh = make(chan struct{})
thisConnTimeout = testTimeoutReadWrite
listenerEndpoint = newSignerListenerEndpoint(logger, tc.addr, thisConnTimeout)
)
listenerEndpoint.timeoutAccept = defaultTimeoutAcceptSeconds / 2 * time.Second

dialerEndpoint := NewSignerDialerEndpoint(
logger,
tc.dialer,
)
SignerDialerEndpointTimeoutReadWrite(testTimeoutReadWrite)(dialerEndpoint)
SignerDialerEndpointConnRetries(10)(dialerEndpoint)

signerServer := NewSignerServer(dialerEndpoint, chainID, mockPV)

startListenerEndpointAsync(t, listenerEndpoint, endpointIsOpenCh)
t.Cleanup(func() {
if err := listenerEndpoint.Stop(); err != nil {
t.Error(err)
}
})

require.NoError(t, signerServer.Start())
assert.True(t, signerServer.IsRunning())

<-endpointIsOpenCh
if err := signerServer.Stop(); err != nil {
t.Error(err)
}

dialerEndpoint2 := NewSignerDialerEndpoint(
logger,
tc.dialer,
)
signerServer2 := NewSignerServer(dialerEndpoint2, chainID, mockPV)

// let some pings pass
require.NoError(t, signerServer2.Start())
assert.True(t, signerServer2.IsRunning())

// wait for successful connection
for {
if listenerEndpoint.IsConnected() {
break
}
}

// simulate ensureConnection, bypass triggerConnect default drop with multiple messages
time.Sleep(100 * time.Millisecond)
listenerEndpoint.triggerConnect()
time.Sleep(100 * time.Millisecond)
listenerEndpoint.triggerConnect()
time.Sleep(100 * time.Millisecond)
listenerEndpoint.triggerConnect()

// simulate validator node running long enough for privval listen timeout multiple times
// up to 1 timeout error is possible due to timing differences
// Run 3 times longer than timeout to generate at least 2 accept errors
time.Sleep(3 * defaultTimeoutAcceptSeconds * time.Second)
t.Cleanup(func() {
if err := signerServer2.Stop(); err != nil {
t.Error(err)
}
})

// after connect, there should not be more than 1 accept fail
assert.LessOrEqual(t, listenerEndpoint.acceptFailCount.Load(), uint32(1))

// give the client some time to re-establish the conn to the remote signer
// should see sth like this in the logs:
//
// E[10016-01-10|17:12:46.128] Ping err="remote signer timed out"
// I[10016-01-10|17:16:42.447] Re-created connection to remote signer impl=SocketVal
time.Sleep(testTimeoutReadWrite * 2)
}
}

func newSignerListenerEndpoint(logger log.Logger, addr string, timeoutReadWrite time.Duration) *SignerListenerEndpoint {
proto, address := cmtnet.ProtocolAndAddress(addr)

Expand Down
Loading