Skip to content

api: get block header#68

Merged
boymanjor merged 1 commit intohandshake-org:masterfrom
tynes:get-blockheader
May 1, 2020
Merged

api: get block header#68
boymanjor merged 1 commit intohandshake-org:masterfrom
tynes:get-blockheader

Conversation

@tynes
Copy link
Collaborator

@tynes tynes commented Apr 30, 2020

Adds the Node HTTP endpoint GET /header/hashOrHeight to the docs.

PR here:
handshake-org/hsd#210

<span id="cb1-4"><a href="#cb1-4"></a> <span class="cf">await</span> node<span class="op">.</span><span class="fu">ensure</span>()<span class="op">;</span></span>
<span id="cb1-5"><a href="#cb1-5"></a> <span class="cf">await</span> node<span class="op">.</span><span class="fu">open</span>()<span class="op">;</span></span>
<span id="cb1-6"><a href="#cb1-6"></a> <span class="cf">await</span> node<span class="op">.</span><span class="fu">connect</span>()<span class="op">;</span></span>
<span id="cb1-7"><a href="#cb1-7"></a> node<span class="op">.</span><span class="fu">startSync</span>()<span class="op">;</span></span>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm... why did events.html get re-rendered?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't change anything in the events file so I assumed that it was due to an updated dependency. It didn't look like anything broke because of it but I can remove these changes from the commits.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think its fine, the render looked good to me locally.

Copy link
Member

@pinheadmz pinheadmz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested, looks good. Good to go once PR to hsd is merged. Would also be nice to wait until hs-client is updated, then add the missing methods for CLI and JS, but also fine with doing that in another update.

@tynes
Copy link
Collaborator Author

tynes commented May 1, 2020

but also fine with doing that in another update.

Was planning on going this route

@boymanjor boymanjor merged commit 654d667 into handshake-org:master May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants