Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.

Type alias for block type #1271

Open
jbearer opened this issue Jun 14, 2023 · 0 comments
Open

Type alias for block type #1271

jbearer opened this issue Jun 14, 2023 · 0 comments

Comments

@jbearer
Copy link
Member

jbearer commented Jun 14, 2023

Throughout our repos, we use u64 for block height. It would improve readability to have a standardized type alias (or maybe even a newtype) BlockHeight. I think we don't actually use height much in HotShot, more downstream, but it is a field of the leaf, so I think defining this type alias here makes sense, and will allow all downstream repos to import it so we have a consistent use of types across repos.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants