Rename block::hash(blake2b_state&) overload to block::generate_hash(blake2b_state&) #4514
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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")...