Skip to content

Commit

Permalink
rpc: fix check_tx cache problem (backport tendermint#9690) (tendermin…
Browse files Browse the repository at this point in the history
…t#9692)

* fix check_tx cache problem (tendermint#9690)

(cherry picked from commit ffae184)

# Conflicts:
#	rpc/core/routes.go

* Resolve conflicts

Signed-off-by: Thane Thomson <[email protected]>

* Add changelog entry

Signed-off-by: Thane Thomson <[email protected]>

Signed-off-by: Thane Thomson <[email protected]>
Co-authored-by: JayT106 <[email protected]>
Co-authored-by: Thane Thomson <[email protected]>
  • Loading branch information
3 people authored Nov 10, 2022
1 parent e0f68fe commit 413f5f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG_PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
### IMPROVEMENTS

### BUG FIXES

- `[rpc]` \#9692 Remove `Cache-Control` header response from `/check_tx`
endpoint (@JayT106)
2 changes: 1 addition & 1 deletion rpc/core/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var Routes = map[string]*rpc.RPCFunc{
"block_by_hash": rpc.NewRPCFunc(BlockByHash, "hash", rpc.Cacheable()),
"block_results": rpc.NewRPCFunc(BlockResults, "height", rpc.Cacheable("height")),
"commit": rpc.NewRPCFunc(Commit, "height", rpc.Cacheable("height")),
"check_tx": rpc.NewRPCFunc(CheckTx, "tx", rpc.Cacheable()),
"check_tx": rpc.NewRPCFunc(CheckTx, "tx"),
"tx": rpc.NewRPCFunc(Tx, "hash,prove", rpc.Cacheable()),
"tx_search": rpc.NewRPCFunc(TxSearch, "query,prove,page,per_page,order_by"),
"block_search": rpc.NewRPCFunc(BlockSearch, "query,page,per_page,order_by"),
Expand Down

0 comments on commit 413f5f7

Please sign in to comment.