-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: add missing includes and remove obsolete includes #5562
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
|
LGTM but let's merge conflicting backports (#5546) first |
ogabrielides
left a comment
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
|
Hmmm... but it breaks sorting for includes, I wouldn't do that. Let's ping @PastaPastaPasta and ask him to review #5546 ASAP (and then this PR after a rebase) instead and hope for the best :D |
|
Just got this one when trying to build |
bb17b88 to
233fb57
Compare
Pulled latest develop, reverted re-ordering headers (assumed to avoid conflict) and added to more in |
thephez
left a comment
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 - this is builds for me
UdjinM6
left a comment
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
ogabrielides
left a comment
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
|
@PastaPastaPasta please review it soon, |
PastaPastaPasta
left a comment
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 squash merge
Issue being fixed or feature implemented
Some headers or modules are used objects from STL without including it directly, it cause compilation failures on some platforms for some specific compilers such as #5554
What was done?
Added missing includes and removed obsolete includes for
optional,deque,tuple,unordered_set,unordered_map,setandatomic.Please, note, that this PR doesn't cover all cases, only cases when it is obviously missing or obviously obsolete.
Also most of changes belongs to to dash specific code; but for cases of original bitcoin code I keep it untouched, such as missing in
src/psbt.hI used this script to get a list of files/headers which looks suspicious
./headers-scanner.sh std::optional optional:How Has This Been Tested?
Built code locally
Breaking Changes
n/a
Checklist: