-
Notifications
You must be signed in to change notification settings - Fork 1.2k
backport: bitcoin#22219, #22437, #22641, #22707, #22744, #22841, #22880, #22992, #23086, #24527 #6568
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
backport: bitcoin#22219, #22437, #22641, #22707, #22744, #22841, #22880, #22992, #23086, #24527 #6568
Changes from all commits
d34c000
078a791
7f53669
fec52a2
2dbb2c5
27ddee7
5d0ea79
8356044
029572d
bc51716
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 |
|---|---|---|
| @@ -1,5 +1 @@ | ||
| Building Dash | ||
| ============= | ||
|
|
||
| See doc/build-*.md for instructions on building the various | ||
| elements of the Dash Core reference implementation of Dash. | ||
| See [doc/build-\*.md](/doc) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| #include <config/bitcoin-config.h> | ||
| #endif | ||
|
|
||
| #include <interfaces/init.h> | ||
| #include <interfaces/node.h> | ||
| #include <qt/bitcoin.h> | ||
| #include <qt/test/apptests.h> | ||
|
|
@@ -62,7 +63,8 @@ int main(int argc, char* argv[]) | |
| } | ||
|
|
||
| NodeContext node_context; | ||
| std::unique_ptr<interfaces::Node> node = interfaces::MakeNode(&node_context); | ||
| int unused_exit_status; | ||
| std::unique_ptr<interfaces::Init> init = interfaces::MakeNodeInit(node_context, argc, argv, unused_exit_status); | ||
|
||
| gArgs.ForceSetArg("-listen", "0"); | ||
| gArgs.ForceSetArg("-listenonion", "0"); | ||
| gArgs.ForceSetArg("-discover", "0"); | ||
|
|
@@ -81,10 +83,8 @@ int main(int argc, char* argv[]) | |
| #endif | ||
|
|
||
| BitcoinApplication app; | ||
| app.setNode(*node); | ||
| app.setApplicationName("Dash-Qt-test"); | ||
|
|
||
| app.node().context()->args = &gArgs; // Make gArgs available in the NodeContext | ||
| app.createNode(*init); | ||
|
|
||
| int num_test_failures{0}; | ||
|
|
||
|
|
||
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.
🛠️ Refactor suggestion
Consider maintaining consistency in context handling pattern.
The change from
NodeContext* context = nullptrtoNodeContext& contextcreates an inconsistency with other context-related methods in the file. All other methods (e.g.,setContextin EVO, GOV, LLMQ interfaces) use pointer-based context handling.Consider one of these approaches to maintain consistency:
📝 Committable suggestion