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.23 into main (#674)
* ci: Fix linter complaint (backport #9645) (#9647) * ci: Fix linter complaint (#9645) Fixes a very silly linter complaint that makes absolutely no sense and is blocking the merging of several PRs. --- - [x] Tests written/updated, or no tests needed - [x] `CHANGELOG_PENDING.md` updated, or no changelog entry needed - [x] Updated relevant documentation (`docs/`) and code comments, or no documentation updates needed (cherry picked from commit 83b7f4ad5bc77a56fdb51ec39ae13c1204dde6e0) * Resolve conflicts Signed-off-by: Thane Thomson <connect@thanethomson.com> * ci: Sync golangci-lint config with main Minus the spelling configuration that restricts spelling to US English only. Signed-off-by: Thane Thomson <connect@thanethomson.com> * make format Signed-off-by: Thane Thomson <connect@thanethomson.com> * Remove usage of deprecated io/ioutil package Signed-off-by: Thane Thomson <connect@thanethomson.com> * Remove unused mockBlockStore Signed-off-by: Thane Thomson <connect@thanethomson.com> * blockchain/v2: Remove unused method Signed-off-by: Thane Thomson <connect@thanethomson.com> * Bulk fix lints Signed-off-by: Thane Thomson <connect@thanethomson.com> * lint: Ignore auto-generated query PEG Signed-off-by: Thane Thomson <connect@thanethomson.com> Signed-off-by: Thane Thomson <connect@thanethomson.com> Co-authored-by: Thane Thomson <connect@thanethomson.com> * ci: Remove unused Markdown link checker from v0.34.x branch (#9643) Signed-off-by: Thane Thomson <connect@thanethomson.com> Signed-off-by: Thane Thomson <connect@thanethomson.com> Co-authored-by: Thane Thomson <connect@thanethomson.com> * p2p: add a per-message type send and receive metric (backport #9622) (#9641) * p2p: add a per-message type send and receive metric (#9622) * p2p: ressurrect the p2p envelope and use to calculate message metric Add new SendEnvelope, TrySendEnvelope, BroadcastEnvelope, and ReceiveEnvelope methods in the p2p package to work with the new envelope type. Care was taken to ensure this was performed in a non-breaking manner. Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com> Co-authored-by: William Banfield <wbanfield@gmail.com> * (fixup) Upgrade to tendermint-v0.34.23 for proto-go files * (fixup) Remove unnecessary files and adjust to Ostracon * (fixup) Remove logging PeerState with fixing conflict * (fixup) Ajust RecvAsync with EnvelopeReceiver * (fixup) Add ErrInMap for bugfix * (fixup) Ajust TestSyncReactor/TestAsyncReactor to Ostracon * (fixup) Generate EnvelopeSender mock and use it for improving test * (fixup) Improve coverage peer.go * add allocate in Receive calls (#9667) Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com> * rpc: Add caching support (backport #9650) (#9666) * rpc: Add caching support (#9650) * Set cache control in the HTTP-RPC response header * Add a simply cache policy to the RPC routes * add a condition to check the RPC request has default height settings * fix cherry pick error * update pending log * use options struct intead of single parameter * refacor FuncOptions to functional options * add functional options in WebSocket RPC function * revert doc * replace deprecated function call * revise functional options * remove unuse comment * fix revised error * adjust cache-control settings * Update rpc/jsonrpc/server/http_json_handler.go Co-authored-by: Thane Thomson <connect@thanethomson.com> * linter: Fix false positive Signed-off-by: Thane Thomson <connect@thanethomson.com> * rpc: Separate cacheable and non-cacheable HTTP response writers Allows us to roll this change out in a non-API-breaking way, since this is an additive change. Signed-off-by: Thane Thomson <connect@thanethomson.com> * rpc: Ensure consistent caching strategy Ensure a consistent caching strategy across both JSONRPC- and URI-based requests. This requires a bit of a refactor of the previous caching logic, which is complicated a little by the complex reflection-based approach taken in the Tendermint RPC. Signed-off-by: Thane Thomson <connect@thanethomson.com> * rpc: Add more tests for caching Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update CHANGELOG_PENDING Signed-off-by: Thane Thomson <connect@thanethomson.com> * light: Sync routes config with RPC core Signed-off-by: Thane Thomson <connect@thanethomson.com> * rpc: Update OpenAPI docs Signed-off-by: Thane Thomson <connect@thanethomson.com> Signed-off-by: Thane Thomson <connect@thanethomson.com> Co-authored-by: jayt106 <jaytseng106@gmail.com> Co-authored-by: jay tseng <jay.tseng@crypto.com> Co-authored-by: JayT106 <JayT106@users.noreply.github.com> (cherry picked from commit 816c6bac00c63a421a1bdaeccbc081c5346cb0d8) * Fix conflict in CHANGELOG_PENDING Signed-off-by: Thane Thomson <connect@thanethomson.com> * Resolve remaining conflicts Signed-off-by: Thane Thomson <connect@thanethomson.com> Signed-off-by: Thane Thomson <connect@thanethomson.com> Co-authored-by: Thane Thomson <connect@thanethomson.com> * Update p2p/peer.go Co-authored-by: Shogo Hyodo <mmoshg8u@gmail.com> * (fixup) Refactor to ProtoMsg --------- Signed-off-by: Thane Thomson <connect@thanethomson.com> Co-authored-by: Thane Thomson <connect@thanethomson.com> Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com> Co-authored-by: William Banfield <wbanfield@gmail.com> Co-authored-by: Shogo Hyodo <mmoshg8u@gmail.com>
- Loading branch information