-
Notifications
You must be signed in to change notification settings - Fork 1.2k
backport: Merge bitcoin#29404, 28144, 28118 #7124
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
base: develop
Are you sure you want to change the base?
Changes from all commits
0eda6ac
8898473
19b26e4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,6 +3,11 @@ | |||||||||||||||||||||||||||||||||||
| // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| #include <chainparamsbase.h> | ||||||||||||||||||||||||||||||||||||
| #if defined(HAVE_CONFIG_H) | ||||||||||||||||||||||||||||||||||||
| #include <config/bitcoin-config.h> | ||||||||||||||||||||||||||||||||||||
| #endif | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
|
Comment on lines
5
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. π¬ Nitpick: bitcoin-config.h include placed after another header (and stray blank line) The adapted hunk places
Suggested change
source: ['claude'] |
||||||||||||||||||||||||||||||||||||
| #include <external_signer.h> | ||||||||||||||||||||||||||||||||||||
| #include <rpc/server.h> | ||||||||||||||||||||||||||||||||||||
| #include <util/strencodings.h> | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
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.
π‘ Suggestion: Restore direct bitcoin-config.h include β Dash addressbookpage.cpp uses USE_QRCODE (upstream does not)
This PR's scripted-diff removed the direct
#include <config/bitcoin-config.h>from src/qt/addressbookpage.cpp to mirror upstream bitcoin#29404. The removal is correct for upstream because Bitcoin Core's addressbookpage.cpp does not reference any bitcoin-config.h token. Dash's copy of this file diverges: it usesUSE_QRCODEat lines 71, 107, 258, and 266, andUSE_QRCODEis defined viaAC_DEFINE([USE_QRCODE], [1], β¦)in configure.ac:1899, so it lives in bitcoin-config.h.After this PR, the file compiles only because of unrelated transitive includes through other qt/ headers. That contradicts the explicit invariant bitcoin#29404 establishes β every translation unit using a bitcoin-config.h token must include the header directly β and will silently disable the QR address-book actions in QR-enabled Qt builds if a later header cleanup ever removes the transitive path. Add the direct guarded include back at the top of the file (the same pattern used in src/qt/bitcoingui.cpp, src/qt/guiutil.cpp, etc., in this same backport).
source: ['codex']