-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
remove boost dependency from Dash-specific code #2072
Conversation
Not sure if it's a good idea to touch message signing parts while we are in feature-freeze mode and since this fixes no bug I'd postpone this till 12.4. |
I absolutely agree w/you there, my intent was to just get it out for later. I can remember to make a note for PRs that I don't intend to be in the next release, esp. for cases like this where it's in freeze mode. |
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.
utACK for 12.4
Specifically for spork.cpp : this should be temporary until all spork sigs are based on hash and not string serialization format, after which I expect the old signatures (else branch) should go away altogether. But I still think it's worth it to get pieces of the boost dependency removed, and this is an easy win, and could be merged now or in a patch release w/o issue.
Rebased this onto latest |
@nmarley what is the point of removing it from dash-specific code if boost is still needed to compile, due to not changing boost depends from btc? |
@paulied So that we can drop it when it's time. It's a big ugly dependency that's largely been superceded with the new C++11/14/17 standards. Are you aware that Bitcoin is also migrating off Boost? : https://github.com/bitcoin/bitcoin/projects/3 |
No I did not see bitcoin was migrating away. This makes a fair bit more sense then. Thanks |
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.
re-utACK
This is only a partial replacement, as some of the boost items aren't simple swaps. This PR replaces
lexical_cast
and the boost dependency in CSuperblockshared_ptr
. The latter should be straightforward, doesn't use anything specific aboutboost::shared_ptr
that can't be done withstd::shared_ptr