Skip to content

Commit

Permalink
Fix: Update Tendermint RPC Broken Link (#1322)
Browse files Browse the repository at this point in the history
Error 404:
https://docs.tendermint.com/master/rpc/#/Info/header
https://docs.tendermint.com/master/rpc/#/Info/header_by_hash

Fix:
https://docs.tendermint.com/main/rpc/#/Info/header
https://docs.tendermint.com/main/rpc/#/Info/header_by_hash


## Description

_Please add a description of the changes that this PR introduces and the
files that
are the most critical to review._

If this PR is non-trivial/large/complex, please ensure that you have
either
created an issue that the team's had a chance to respond to, or had some
discussion with the team prior to submitting substantial pull requests.
The team
can be reached via GitHub Discussions:
https://github.com/celestiaorg/celestia-core/discussions

If the work in this PR is not aligned with the team's current
priorities, please
be advised that it may take some time before it is merged - especially
if it has
not yet been discussed with the team.

See the project board for the team's current priorities:
https://github.com/orgs/celestiaorg/projects/24

-->

---

#### PR checklist

- [ ] Tests written/updated
- [ ] 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
  • Loading branch information
Erlangshen219 authored Apr 26, 2024
1 parent f624a58 commit d5042ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/core/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func filterMinMax(base, height, min, max, limit int64) (int64, int64, error) {

// Header gets block header at a given height.
// If no height is provided, it will fetch the latest header.
// More: https://docs.tendermint.com/master/rpc/#/Info/header
// More: https://docs.tendermint.com/main/rpc/#/Info/header
func Header(ctx *rpctypes.Context, heightPtr *int64) (*ctypes.ResultHeader, error) {
height, err := getHeight(GetEnvironment().BlockStore.Height(), heightPtr)
if err != nil {
Expand All @@ -105,7 +105,7 @@ func Header(ctx *rpctypes.Context, heightPtr *int64) (*ctypes.ResultHeader, erro
}

// HeaderByHash gets header by hash.
// More: https://docs.tendermint.com/master/rpc/#/Info/header_by_hash
// More: https://docs.tendermint.com/main/rpc/#/Info/header_by_hash
func HeaderByHash(ctx *rpctypes.Context, hash bytes.HexBytes) (*ctypes.ResultHeader, error) {
// N.B. The hash parameter is HexBytes so that the reflective parameter
// decoding logic in the HTTP service will correctly translate from JSON.
Expand Down

0 comments on commit d5042ba

Please sign in to comment.