Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include PPoW info in BlockResponse #867

Merged
merged 6 commits into from
Dec 21, 2020

Conversation

rtkaczyk
Copy link
Contributor

Continuing from #841

@@ -61,6 +68,17 @@ object BlockResponse {

val (lcn, td) = weight.map(_.asTuple).separate

val signature =
if (block.header.extraData.length >= ECDSASignature.EncodedLength)
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a minor comment, when we have the condition (block.header.extraData.length = ECDSASignature.EncodedLength)
The following line:
block.header.extraData.takeRight(ECDSASignature.EncodedLength) is not required, right?
Anyway, this code is clear and understandable.

Copy link
Contributor

@lemastero lemastero left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@enriquerodbe enriquerodbe merged commit b929992 into develop Dec 21, 2020
@enriquerodbe enriquerodbe deleted the improvement/ppow_info_in_blockresponse branch December 21, 2020 21:13
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.

4 participants