-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
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 |
---|---|---|
|
@@ -13,11 +13,13 @@ env: | |
base_template: &BASE_TEMPLATE | ||
skip: $CIRRUS_REPO_FULL_NAME == "bitcoin-core/gui" && $CIRRUS_PR == "" # No need to run on the read-only mirror, unless it is a PR. https://cirrus-ci.org/guide/writing-tasks/#conditional-task-execution | ||
merge_base_script: | ||
- if [ "$CIRRUS_PR" = "" ]; then exit 0; fi | ||
# Unconditionally install git (used in fingerprint_script) and set the | ||
# default git author name (used in verify-commits.py) | ||
- bash -c "$PACKAGE_MANAGER_INSTALL git" | ||
- git fetch $CIRRUS_REPO_CLONE_URL $CIRRUS_BASE_BRANCH | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "ci" | ||
- if [ "$CIRRUS_PR" = "" ]; then exit 0; fi | ||
- git fetch $CIRRUS_REPO_CLONE_URL $CIRRUS_BASE_BRANCH | ||
- git merge FETCH_HEAD # Merge base to detect silent merge conflicts | ||
stateful: false # https://cirrus-ci.org/guide/writing-tasks/#stateful-tasks | ||
|
||
|
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); | ||
Comment on lines
+66
to
+67
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. 💡 Verification agent 🧩 Analysis chainConsider handling the exit status. The 🏁 Script executed: #!/bin/bash
# Search for other MakeNodeInit calls to see how exit status is handled
rg -A 5 "MakeNodeInit.*exit_status" Length of output: 2413 Action Required: Handle the Exit Status in Test Initialization The grep results confirm that in other parts of the codebase (e.g., in
|
||
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 = nullptr
toNodeContext& context
creates an inconsistency with other context-related methods in the file. All other methods (e.g.,setContext
in EVO, GOV, LLMQ interfaces) use pointer-based context handling.Consider one of these approaches to maintain consistency:
📝 Committable suggestion