-
Notifications
You must be signed in to change notification settings - Fork 990
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
[TUI] block hashes in TUI will need to be larger than first 8 chars for mainnet #2314
Comments
Commented on #2325 but commenting here as well - We should scope this beyond the tui to include everywhere we display a block hash - api, logs etc. Having a big bunch of 0s prefixing a block hash is a real pain for display purposes... Random thought (ignoring the fact we are 6 days from mainnet) - If a block hash is effectively -
Would it be possible to reference blocks via -
Is there any reason this wouldn't work or would make things significantly more complex? |
there's no need to hash twice. the options are either to show
|
Is there an option 3 here as well - just strip off the 0 prefix and show the first 8 useful digits? |
If we implement whatever logic we go with here - Lines 39 to 52 in 5915580
Then we should be able to simply print |
Stripping off all leading zeroes is an option, but feels like a hack to me. My preference is for option 1 with 12 hex digits, i.e. the first 48 bits of hash. The 5 leading 0s is like a sanity check that you're dealing with a blockhash. |
OK I vote for what @tromp suggested as option 1 - keep it really simple and show the first 12 digits. I like the idea of the sanity check. |
@eupn that is more than 12 chars in total and harder to cut and paste, as double-clicking will not select across the dots. |
The text was updated successfully, but these errors were encountered: