-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Move CMerkleBlock and CPartialMerkleTree to their own file #5181
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
src/merkleblock.cpp
Outdated
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.
Can we move out of main instead of duplicating it? Other files need this too and could drop their dependency on main.h (bitcoin-tx.cpp for ex).
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.
Oops, that was a test, didnt mean to leave that duplication in there...anyway, yea, it should be moved out.
|
Verified move-only other than the necessary header changes and the MAX_BLOCK_SIZE change I nagged about. |
src/merkleblock.h
Outdated
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.
Can you keep the header include and ordering policy please.
|
I moved MAX_BLOCK_SIZE to core/block.h, though in a separate commit, merger can chose to include that or not based on random coin flip (as long as its fair based on bitcoin block hashes). |
|
utACK, and verified e057989f92af63ef336f6620ebe77ea8c9255f9a move-only. |
b0e2c63 to
c3fa863
Compare
|
Rebased, squashed. |
c3fa863 to
afd4b94
Compare
afd4b94 Move CMerkleBlock and CPartialMerkleTree to their own file (Matt Corallo)
Code move only.