-
Notifications
You must be signed in to change notification settings - Fork 831
Issue #394 - Refactor Block::merkle_root() #775
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
Conversation
Block::compute_merkle_root() and deprecate Block::merkle_root().
Ha! The title of this PR threw me, I thought it was an issue not a PR :) |
This looks fine to me because it's just a 2-line function, but it might be clearer if the deprecated function just called the non-deprecated one rather than duplicating the logic. concept ACK changing the name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the deprecated version changed, LGTM!
Thanks for the feedback @apoelstra and @tcharding. I've made the changes you've suggested. |
Thanks, LGTM. |
I think squashing would be useful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK cd2435c
Thanks for your contribution!
Agreed about squashing, but for such a small diff I'm not going to hold things up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK cd2435c
Refactor
Block::merkle_root()
toBlock::compute_merkle_root()
and deprecateBlock::merkle_root()
.