Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport tendermint-v0.34.20 into main (#642)
* rpc: avoid leaking threads (#8329) Co-authored-by: Sam Kleinman <garen@tychoish.com> * (fixup) Revert the CheckTxSync callback parameter from https://github.com/Finschia/ostracon/pull/163/files#diff-eafa5360d0b71c14dba6ad5b29be23f69f0fe93e0751fe89fe208a5dafcfbbcf * (fixup) Test the reverted CheckTxSync callback parameter from https://github.com/Finschia/ostracon/pull/163/files#diff-eafa5360d0b71c14dba6ad5b29be23f69f0fe93e0751fe89fe208a5dafcfbbcf * (fixup) Add tests for code coverage: rpc/core/mempool_test.go * Set a cap on the length of subscription queries. (#8349) A manual backport of #7263. As a safety measure, don't allow a query string to be unreasonably long. The query filter is not especially efficient, so a query that needs more than basic detail should filter coarsely in the subscriber and refine on the client side. This affects Subscribe and TxSearch queries. Co-authored-by: M. J. Fromberger <fromberger@interchain.io> * blocksync: validate block before persisting it (backport #8493) (#8495) * Update default config docs for PSQL indexer settings. (#8728) Co-authored-by: M. J. Fromberger <fromberger@interchain.io> * cmd: add tool for compaction of goleveldb (backport #8564) (#8674) * (fixup) Add compact_test for improving coverage * makefile: change buf to use tools.go ; backport v0.34 (#8852) * makefile: update buf commands to use tools.go (#8609) This will keep the version of `buf` consistent between all developer machines. Co-authored-by: Jasmina Malicevic <jasmina.dustinac@gmail.com> * (fixup) Improve to work for Ostracon with tendermint proto files * fix: "Lazy" Stringers to defer Sprintf and Hash until logs print (#8845) Co-authored-by: Joe Abbey <joe.abbey@gmail.com> * makefile: buf setup backport v0.34 (#8863) Co-authored-by: Jasmina Malicevic <jasmina.dustinac@gmail.com> * (fixup) Remove proto.yml since don't work and remove the next version of tendermint-v0.34.21: tendermint/tendermint@c723357 * (fixup) Remove unused import: buf-lint rule: IMPORT_USED * (fixup) Remove duplicated a rule of `FILE_LOWER_SNAKE_CASE` since BASIC includes it * (fixup) Use mockery latest v2.31.4 since v2.30.17 doesn't release: https://github.com/vektra/mockery/releases * (fixup) Re-generate mocks with mockery-v2.30.18 * feat: v0.34.x Prioritized Mempool (#8695) * Updated mocks * add reactor tests * add v1 reactor tests * Fix fuzz test for priority mempool * e2e adapted to mempool v1; prio pool is default now * Reverted default mempool to be fifo * Changed buf version * Added priority mempool to ci testnet * Fixed linter * Updated makefile * Aligned makefile changes to v0.34.x * Added go install for proto * Add log message to warn about prioritized mempool bug Signed-off-by: Thane Thomson <connect@thanethomson.com> * Changelog message Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com> Co-authored-by: Jasmina Malicevic <jasmina.dustinac@gmail.com> Co-authored-by: Callum Waters <cmwaters19@gmail.com> Co-authored-by: Sam Kleinman <garen@tychoish.com> Co-authored-by: Thane Thomson <connect@thanethomson.com> * release: prepare v0.34.20-rc0 (#8888) Co-authored-by: Callum Waters <cmwaters19@gmail.com> * Backport priority mempool fixes from v0.35.x to v0.34.x. (#8962) This is a manual backport of the changes from these commits: - bc49f66 Add more unit tests for the priority mempool. (#8961) - 9b02094 Fix unbounded heap growth in the priority mempool. (#8944) Imports and type signatures have been updated to match the v0.34 usage. Co-authored-by: M. J. Fromberger <fromberger@interchain.io> * mempool: minor cleanup after backport from v0.35 (#8971) - Remove warning log for issue #8775. - Fix call to FlushAsync (no error is reported). - Don't log on rechecks, it's the default (manual backport of #8969). Co-authored-by: M. J. Fromberger <fromberger@interchain.io> * mempool: reduce lock contention during CheckTx (backport #8983) (#8985) A manual cherry-pick of 9e64c95. The way this was originally structured, we reacquired the lock after issuing the initial ABCI CheckTx call, only to immediately release it. Restructure the code so that this redundant acquire is no longer necessary. Co-authored-by: M. J. Fromberger <fromberger@interchain.io> * mempool: release lock during app connection flush (#8986) A manual backport of #8984. This case is symmetric to what we did for CheckTx calls, where we release the mempool mutex to ensure callbacks can fire during call setup. We also need this behaviour for application flush, for the same reason: The caller holds the lock by contract from the Mempool interface. Co-authored-by: M. J. Fromberger <fromberger@interchain.io> * config: remove obsolete mempool v1 warning (#8987) Co-authored-by: M. J. Fromberger <fromberger@interchain.io> * mempool: ensure evicted transactions are removed from the cache (backport #9000) (#9004) This is a manual cherry-pick of commit b94470a6a42e8ffe7e7467521de5f51eb937c454. In the original implementation transactions evicted for priority were also removed from the cache. In addition, remove expired transactions from the cache. Related: - Add Has method to cache implementations. - Update tests to exercise this condition. Co-authored-by: M. J. Fromberger <fromberger@interchain.io> * mempool: ensure async requests are flushed to the server (#9010) In the v0.34 line, the socket and gRPC clients require explicit flushes to ensure that the client and server have received an async request. Add these calls explicitly where required in the backport of the priority mempool. In addition, the gRPC client's flush plumbing was not fully hooked up in the v0.34 line, so this change includes that update as well. Co-authored: M. J. Fromberger <fromberger@interchain.io> * Upgrade to tendermint/tendermint v0.34.20 * (fixup) Improve libraries to work well --------- Co-authored-by: Sam Kleinman <garen@tychoish.com> Co-authored-by: M. J. Fromberger <fromberger@interchain.io> Co-authored-by: Jasmina Malicevic <jasmina.dustinac@gmail.com> Co-authored-by: Joe Abbey <joe.abbey@gmail.com> Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com> Co-authored-by: Callum Waters <cmwaters19@gmail.com> Co-authored-by: Thane Thomson <connect@thanethomson.com>
- Loading branch information