-
Notifications
You must be signed in to change notification settings - Fork 36.3k
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
[0.11] dbwrapper: Detect obfuscation #7259
[0.11] dbwrapper: Detect obfuscation #7259
Conversation
concept ACK fa24941 |
Won't this detect the no-op obfuscation too? That wouldn't be a good idea... |
@MarcoFalke luke-jr is right you need to also check for the null obfuscation key |
@pstratem Why would someone write a null obfuscation key? |
@MarcoFalke it's a quirk of how the obfuscation code works, it's XOR so a null obfuscation key is the same as no obfuscation key |
Do we ever write a null key? (as opposed to treating no key as null) |
@pstratem But it is never written to the db. This would be like saying I obfuscate every of my GitHub messages with the null obfuscation key. (It's redundant and not needed) |
@MarcoFalke I stand corrected |
Concept ACK but doubting if this or #6919 makes more sense. |
@laanwj This can be cherry-picked to 0.10 without conflicts as well. As this issue seems popular ( #7258 (comment) ) we need either #7259 (this) or #6919, imo. Keep in mind you can rebase #6919 simply on a commit which reverts #7259 (this), in case you want to reopen after #7259 (this) got merged. ("'Don't Let Perfect Be The Enemy Of Good'") |
Yeah, this is fine for 0.11. It's easier to test that it rejects a database than to test whether it works. Would be nice to have at least one tested ACK, though. |
Github-Pull: bitcoin#7259 Rebased-From: fa24941
Github-Pull: bitcoin#7259 Rebased-From: fa3cb49
Replaces #6919.
Fixes #7258.
Implements #6613 (comment).