Skip to content

refactor: use HashOf<BlockHeader> as the type of the block hash#4998

Merged
nxsaken merged 1 commit intohyperledger-iroha:mainfrom
mversic:block_hash_fix
Aug 23, 2024
Merged

refactor: use HashOf<BlockHeader> as the type of the block hash#4998
nxsaken merged 1 commit intohyperledger-iroha:mainfrom
mversic:block_hash_fix

Conversation

@mversic
Copy link
Copy Markdown
Contributor

@mversic mversic commented Aug 21, 2024

Context

  • block.hash() returns HashOf<SignedBlock>

Solution

  • change the function so that it returns HashOf<BlockHeader>

Review notes (optional)

  • For complex PRs, try to provide some information on how to approach the review more effectively.
  • For example, is there a natural order in which the affected files should be reviewed?

Checklist

  • I've read CONTRIBUTING.md.
  • (optional) I've written unit tests for the code changes.
  • All review comments have been resolved.

@github-actions github-actions bot added the api-changes Changes in the API for client libraries label Aug 21, 2024
@mversic mversic force-pushed the block_hash_fix branch 5 times, most recently from f32f57a to 9addbe2 Compare August 22, 2024 12:32
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
Copy link
Copy Markdown
Contributor

@0x009922 0x009922 left a comment

Choose a reason for hiding this comment

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

LGTM, just faced this minor inconsistency recently in Explorer.

@nxsaken nxsaken merged commit a27bc2e into hyperledger-iroha:main Aug 23, 2024
mversic added a commit that referenced this pull request Aug 30, 2024
)

Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-changes Changes in the API for client libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants