Skip to content

Commit

Permalink
feat: add getheaderbyhash method to grpc-js (#5942)
Browse files Browse the repository at this point in the history
Description
---
add `getHeaderByHash` to the exported method, so we can search by hash
in the tari explorer.

Motivation and Context
---

How Has This Been Tested?
---

What process can a PR reviewer use to test or verify this change?
---

<!-- Checklist -->
<!-- 1. Is the title of your PR in the form that would make nice release
notes? The title, excluding the conventional commit
tag, will be included exactly as is in the CHANGELOG, so please think
about it carefully. -->


Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify

<!-- Does this include a breaking change? If so, include this line as a
footer -->
<!-- BREAKING CHANGE: Description what the user should do, e.g. delete a
database, resync the chain -->
  • Loading branch information
Cifko authored Nov 10, 2023
1 parent 3e65a28 commit ebc4539
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clients/nodejs/base_node_grpc_client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function Client(address = "127.0.0.1:18142") {
"getTokens",
"getNetworkDifficulty",
"getActiveValidatorNodes",
"getHeaderByHash"
];
methods.forEach((method) => {
this[method] = (arg) => this.inner[method]().sendMessage(arg);
Expand Down

0 comments on commit ebc4539

Please sign in to comment.