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

Rename block::hash(blake2b_state&) overload to block::generate_hash(blake2b_state&) #4514

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

clemahieu
Copy link
Contributor

@clemahieu clemahieu commented Mar 21, 2024

Fix annoyance where a debugger may not perform overload resolution correctly. With lldb asking the debugger to calculate a block hash will fail, likely because it doesn't follow overload resolution through inheritance.

Previously it would give:
(lldb) p send1->hash()
error: <user expression 0>:1:13: too few arguments to function call, expected 1, have 0
send1->hash()

Now it correctly prints:
(lldb) p send1->hash()
(const nano::block_hash) {
nano::uint256_union = {
= {
bytes = (_elems = "|\U00000012/<\xa60\x85&\xbf\U0000007f\xf3\xde|\xe2V-)\x88\xc5w\x97\x89\U0000007f\U000000127\xee :\x88\xb9\t") chars = (__elems_ = "|\U00000012/<\xa60\x85&\xbf\U0000007f\xf3\xde|\xe2V-)\x88\xc5w\x97\x89\U0000007f\U000000127\xee :\x88\xb9\t")
...

…lake2b_state&)

Fix annoyance where a debugger may not perform overload resolution correctly. With lldb asking the debugger to calculate a block hash will fail, likely because it doesn't follow overload resolution through inheritance.
@clemahieu clemahieu merged commit 3eb50a3 into nanocurrency:develop Mar 21, 2024
24 of 27 checks passed
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.

2 participants