Skip to content

Conversation

@rtkaczyk
Copy link
Contributor

Continuing from #841

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.

5 participants