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

fix: add const to FixedHash::zero #5084

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Jan 5, 2023

Description

Make FixedHash::zero a const fn

Motivation and Context

A function returning a constant value should be set as const to allow for minor compiled code optimisations. A zero hash is used more often in the DAN layer to indicate a genesis node.

How Has This Been Tested?

Minor change, clippy passes

Copy link
Collaborator

@SWvheerden SWvheerden left a comment

Choose a reason for hiding this comment

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

LGTM

@CjS77 CjS77 added the P-acks_required Process - Requires more ACKs or utACKs label Jan 10, 2023
@stringhandler stringhandler merged commit 2d1bc82 into tari-project:development Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants