-
Notifications
You must be signed in to change notification settings - Fork 37.7k
[23.x] Backports #26921
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
[23.x] Backports #26921
Conversation
This class is the counterpart to CHashVerifier, in that it writes data to an underlying source stream, while keeping a hash of the written data. Github-Pull: bitcoin#26909 Rebased-From: da6c7ae
The previous logic would call it once for serializing into the filestream, and then again for serializing into the hasher. If AddrMan was changed in between these calls by another thread, the resulting peers.dat would be corrupt with non-matching checksum and data. Fix this by using HashedSourceWriter, which writes the data to the underlying stream and keeps track of the hash in one go. Github-Pull: bitcoin#26909 Rebased-From: 5eabb61
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
ACK 412cd1a 👬 Show signatureSignature:
|
Github-Pull: bitcoin#26924 Rebased-From: fadeb6b
Additional include fixes are required to make the 23.x branch compile using GCC 13.
Compiling 23.x (3987687) with GCC 13 requires additional include fixes to what is already backported, so I've added a commit with them. |
Additional include fixes are required to make the 23.x branch compile using GCC 13. Github-Pull: bitcoin#26921 Rebased-From: af86266
Github-Pull: bitcoin#26944 Rebased-From: d81ca66
Also merging this to unbreak the GCC 13 build. |
Backports: