-
Notifications
You must be signed in to change notification settings - Fork 1.2k
backport: trivial 2025 05 08 #6668
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: trivial 2025 05 08 #6668
Conversation
faf8c73 ci: Use monterey-xcode-13.3 (MarcoFalke) Pull request description: ACKs for top commit: hebasto: ACK faf8c73, I have reviewed the code and it looks OK, I agree it can be merged. Tree-SHA512: 5e6772371fc9600c7eedacf88344cf98e71250066e16d8759a749d4a53e5b8e855c9e90880023fdd7454f959bb7b5a90cd7a7ad1d8a2e4a65068c66ccf6b828d
…nd libnatpmp. Again :) 1659034 build: Fix `AC_CHECK_HEADERS` and `AC_CHECK_LIB` for `libnatpmp` package (Hennadii Stepanov) 65cddf6 build: Fix `AC_CHECK_HEADERS` and `AC_CHECK_LIB` for `miniupnpc` package (Hennadii Stepanov) bbbcb96 build, refactor: Fix indentation (Hennadii Stepanov) Pull request description: Apparently, bitcoin#24391 broke the [ability](bitcoin#22397) of the `configure` script to pick up Homebrew's `miniupnpc` and `libnatpmp` packages on macOS Apple M1. This PR fixes it. ACKs for top commit: promag: Tested ACK 1659034 jarolrod: tACK 1659034 Tree-SHA512: 93988f59f425890d60582b93d4ac5b2ad03011a5c6dbb44678a3ca591da7518c1c741bc1045b2c763bbe887947f32293b38d55fd7a96f09d2092ad34baa1db21
f0f5cd7 Bugfix: configure: Define default for use_libevent (Luke Dashjr) Pull request description: Another trivial fix like bitcoin#25051 - I think this is the only other one missing. ACKs for top commit: laanwj: Code review ACK f0f5cd7 Tree-SHA512: 888c2e6d032ef1de5af635e2a9b2b8ab560c86bd10a6cee54aa9aa62ae43f03c19889bb6a2b64cf8982d4cd514f97ca3ed743c71ed0651e9295a4b1726955b9b
…escanblockchain` d1a0004 test: add coverage for invalid parameters for `rescanblockchain` (brunoerg) Pull request description: This PR adds test coverage for the following errors: https://github.com/bitcoin/bitcoin/blob/2bd9aa5a44b88c866c4d98f8a7bf7154049cba31/src/wallet/rpc/transactions.cpp#L880-L894 ACKs for top commit: w0xlt: reACK bitcoin@d1a0004 Tree-SHA512: c357fbda3d261e4d06a29d2a5350482db5f97a815adf59abdac1971eb19b69cfd4d54e4d21836851e2e3b116aa2a820ea1437c7aededf86b06df435cca16ac90
…lled from homebrew b50a4b7 build: quiet warnings in system headers installed from homebrew (Cory Fields) Pull request description: From the included comment: Homebrew may create symlinks in `/usr/local/include` for some packages. Because MacOS's clang internally adds `-I /usr/local/include` to its search paths, this will negate efforts to use `-isystem` for those packages, as they will be found first in `/usr/local`. Use the internal `-internal-isystem` option to system-ify all `/usr/local/include` paths without adding it to the list of search paths in case it's not already there. This fixes the issue explained here: bitcoin#26056 (comment) ~Also temporarily includes bitcoin#26056 as a test. I will remove that commit if/when c-i is happy, and fanquake can rebase it post-merge.~ I've removed this commit now that c-i succeeded with it. ACKs for top commit: hebasto: ACK b50a4b7, tested as a part of bitcoin#26056 on macOS Monterey 12.6 (21G115, both Intel and Apple M1) + Apple clang 14.0.0: Tree-SHA512: 163aa359d27c31d52b444252762e32dd8a11acc043cf1a2aa953f902d1dab77ece52e2dfedcce637e6a1dda47e4c566bfeb8d3b092f82bfc73923843b7bc619c
…it is available" d216d71 Revert "build: Use Homebrew's sqlite package if it is available" (fanquake) Pull request description: This reverts ee7b84e from bitcoin#20527. That change was made without any rationale, maybe other than, a brew installed version might be newer, and that's "better". However when building from source on macOS, it just results in drastically worse performance, and issues / confusion like bitcoin#25724. The difference in performance can be observed using the example from bitcoin#25724 (comment), but minified i.e: ```bash time src/bitcoin-cli createwallet speedy true time src/bitcoin-cli importdescriptors '[ {"desc":"raw(00145846369f3d6ba366d6f5a903fb5cf4dca3763c0e)#k9wh6v62","timestamp":"now"}, {"desc":"raw(001420800aabf13f3a4c4ce3ce4c66cecf1d17f21a6e)#6m0hlfh4","timestamp":"now"}, {"desc":"raw(0014c6bf9715e06d73ebf9b3b02d5cc48d24d8bbabc1)#wyavh36r","timestamp":"now"}, {"desc":"raw(00141ba7807b3f46af113beaea5c698428ce7138cd8a)#jctdsups","timestamp":"now"}, {"desc":"raw(00140c1bd27f10fff01b36ddf3c1febaa1acff19b080)#9s6nc3pk","timestamp":"now"}, {"desc":"raw(00141226e31987e4bc2e63c0ee12908f675e40464b20)#9pp7qm39","timestamp":"now"}, {"desc":"raw(0014f73f149f7503960a5e849c6ee7a8a8c336f631cb)#qtkxv9fc","timestamp":"now"}, {"desc":"raw(0014c8ccb4d81ffc769fc5fdd8d7eed69b0e0cae5749)#hn39qayv","timestamp":"now"}, {"desc":"raw(001498565aead2d67a22a6021d55210f2a917fc22169)#6ar3vwsx","timestamp":"now"}, {"desc":"raw(001403013248ac0cd9eabe176cad162cda2a19f771e1)#4m47mukd","timestamp":"now"} ]' ``` Running master, when building from souce and using brew installed sqlite, this takes ~3.4s. With this PR, the same operation takes ~0.3s. Resolves the "build from source" portion of bitcoin#25724. Building from depends is still not ideal, however I have some other changes that might help improve things in that case. Related performance issue reports: * bitcoindevkit/bdk#749 * https://bitcoin.stackexchange.com/questions/113898/bitcoin-v23-is-10-times-slower-than-v22-on-macos-for-basic-regtest-tests * bitcoin#25724 * bitcoin#25985 (comment) ACKs for top commit: achow101: ACK d216d71 jarolrod: ACK d216d71 hebasto: ACK d216d71, I have reviewed the code and it looks OK, I agree it can be merged. No conflicts with our build [docs](https://github.com/bitcoin/bitcoin/blob/d216d714aae36e6f1c95f82aef81a0be74dee2f3/doc/build-osx.md#descriptor-wallet-support). Tree-SHA512: 1bb4b44385b11fa9fe66edd7449278f9e47a6cc679b7111f9adf17db94c34e29c9cceafc917454e134420db40b24b56da29226af6f43e6dbeff822b79b77ed60
9fbc5fc build: remove ancient unused define (Cory Fields) Pull request description: The generic define was removed in [upstream miniupnpc in 2014](miniupnp/miniupnp@f6774e3). Noticed while reviewing hebasto's new CMake buildsystem: hebasto#12 (comment). ACKs for top commit: RandyMcMillan: utACK 9fbc5fc hebasto: ACK 9fbc5fc TheCharlatan: ACK 9fbc5fc Tree-SHA512: 2075a2e63441e32d939c23f30f811c73dd1ab1ddcc9e6bf079cc8060e77d9a2a6d707add7b72e9251939a53b53e28a134e9bb330ccf3556244497728f1b091ae
ecfe507 fuzz: use `ConnmanTestMsg` in `connman` (brunoerg) Pull request description: Fixes bitcoin#27980 Using `ConnmanTestMsg` we can add nodes and be more effective fuzzing functions like `DisconnectNode`, `FindNode`, `GetNodeStats` and other ones. ACKs for top commit: MarcoFalke: review ACK ecfe507 dergoegge: utACK ecfe507 Tree-SHA512: 97c363b422809f2e9755c082d1102237347abfab72c7baca417bd8975f8a595ddf3a085f8353dbdb9f17fb98fbfe830792bfc0b83451168458018faf6c239efa
…n possible 025fda0 fuzz: addrman, avoid `ConsumeDeserializable` when possible (brunoerg) Pull request description: Using specific functions like `ConsumeService`, `ConsumeAddress` and `ConsumeNetAddr` may be more effective than using `ConsumeDeserializable`. They always return some value while `ConsumeDeserializable` may return `std::nullopt`. E.g.: In this part of the code, if `op_net_addr` is `std::nullopt`, we basically generated the addresses (if so) unnecessarily, because we won't be able to use them: ```cpp std::vector<CAddress> addresses; LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 10000) { const std::optional<CAddress> opt_address = ConsumeDeserializable<CAddress>(fuzzed_data_provider); if (!opt_address) { break; } addresses.push_back(*opt_address); } const std::optional<CNetAddr> opt_net_addr = ConsumeDeserializable<CNetAddr>(fuzzed_data_provider); if (opt_net_addr) { addr_man.Add(addresses, *opt_net_addr, std::chrono::seconds{ConsumeTime(fuzzed_data_provider, 0, 100000000)}); } ``` Also, if we are not calling `Add` effectively, it would also be affect other functions that may "depend" on it. ACKs for top commit: dergoegge: Code review ACK 025fda0 Tree-SHA512: 02450bec0b084c15ba0cd1cbdfbac067c8fea4ccf27be0c86d54e020f029a6c749a16d8e0558f9d6d35a7ca9db8916f180c872f09474702b5591129e9be0d192
8cfa22a build: move -fstack-reuse=none to CORE_CXXFLAGS (fanquake) Pull request description: This is not a hardening specific flag, it should be used at all times, regardless of if hardening is enabled or not. Note that this was still the case here, but having this exist in the hardening flags is confusing, and may lead someone to move it inside one of the `use_hardening` blocks, where it would become unused, with `--disable-hardening`. Noticed while reviewing hebasto#32 (comment). ACKs for top commit: theuni: ACK 8cfa22a. Agree it's confusing as-is and this better matches the intent. hebasto: ACK 8cfa22a luke-jr: utACK 8cfa22a TheCharlatan: ACK 8cfa22a Tree-SHA512: 74c3219301398361d06b1ef2257fc9ec18055b1661f8733ee909adefee61e458d70991c32adf0e0450905a7ffbddc99799f5fdac894f4896cfade19f961818df
WalkthroughThe changes update the macOS CI configuration to use a newer Xcode version and make several adjustments to build configuration in Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. Note ⚡️ Faster reviews with cachingCodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (5)
⏰ Context from checks skipped due to timeout of 90000ms (10)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (3)
src/wallet/walletdb.cpp (2)
1161-1172
: Avoid pointlessif constexpr (true)
– simplify and prevent dead–code noiseThe constant-true
if constexpr
adds no functional value, but it:
- Generates an always-false
else
branch that is retained in the source.
– With modern compilers and-Wunused
warnings this becomes a “dead‐code” diagnostic hotspot.- Requires readers to mentally unfold two layers (
#ifdef
andif constexpr
) to see that the code is effectively unconditional onceUSE_SQLITE
is defined.A direct return is clearer and makes the unreachable branch disappear entirely:
#ifdef USE_SQLITE - if constexpr (true) { - return MakeSQLiteDatabase(path, options, status, error); - } else +#ifdef USE_SQLITE + return MakeSQLiteDatabase(path, options, status, error); #else { error = Untranslated(strprintf( "Failed to open database path '%s'. Build does not support SQLite database format.", fs::PathToString(path))); status = DatabaseStatus::FAILED_BAD_FORMAT; return nullptr; } +#endif(Same pattern appears below for the BerkeleyDB path.)
1174-1183
: Duplicate pattern for BDB – apply the same clean-upReplicate the simplification for the BerkeleyDB section to keep both back-ends uniform and free of unnecessary
if constexpr
scaffolding.configure.ac (1)
795-797
: Clang-specific-internal-isystem
– guard with a compiler check
-Xclang -internal-isystem
is accepted by Clang only. When a user suppliesCC=/usr/bin/gcc
on macOS this test will fail and treat the flag as “unknown”, but the compile-test here is also Clang-only. A quick compiler guard (if test "$CLANG" = "yes"
) before attempting the check would keep the configure log cleaner.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (10)
.cirrus.yml
(1 hunks)configure.ac
(7 hunks)src/init/common.cpp
(1 hunks)src/netbase.cpp
(1 hunks)src/test/fuzz/addrman.cpp
(2 hunks)src/test/fuzz/connman.cpp
(3 hunks)src/test/fuzz/muhash.cpp
(1 hunks)src/test/uint256_tests.cpp
(2 hunks)src/wallet/walletdb.cpp
(1 hunks)test/functional/wallet_transactiontime_rescan.py
(2 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (3)
test/functional/wallet_transactiontime_rescan.py (1)
test/functional/test_framework/util.py (1)
assert_raises_rpc_error
(127-143)
src/netbase.cpp (1)
src/netaddress.cpp (4)
IsValid
(426-453)IsValid
(426-426)IsValid
(1085-1088)IsValid
(1085-1085)
src/test/fuzz/addrman.cpp (1)
src/test/fuzz/util.h (1)
ConsumeWeakEnum
(181-181)
⏰ Context from checks skipped due to timeout of 90000ms (10)
- GitHub Check: mac-build / Build source
- GitHub Check: win64-build / Build source
- GitHub Check: arm-linux-build / Build source
- GitHub Check: linux64_nowallet-build / Build source
- GitHub Check: linux64_sqlite-build / Build source
- GitHub Check: linux64_ubsan-build / Build source
- GitHub Check: linux64-build / Build source
- GitHub Check: linux64_fuzz-build / Build source
- GitHub Check: linux64_tsan-build / Build source
- GitHub Check: linux64_multiprocess-build / Build source
🔇 Additional comments (17)
src/test/fuzz/muhash.cpp (1)
46-57
: Appropriate warning suppression for intentional self-assignment test.The added compiler-specific pragmas correctly suppress Clang's
-Wself-assign-overloaded
warning only in the scope where it's needed. This is a clean approach that maintains the test's intention (verifying that self-division returns to initial state) without generating false positive warnings.src/netbase.cpp (1)
642-642
: Code simplification: Removed unnecessary logging for invalid proxy.The change simplifies the error handling by returning early without logging when a proxy is invalid. This is a sensible cleanup that reduces log verbosity while maintaining the same functionality.
.cirrus.yml (1)
178-178
: Updated macOS CI environment to newer Xcode version.The CI configuration now uses Xcode 13.3 instead of 13.2, which aligns with other compiler configuration changes in this PR. This ensures consistent testing environments.
test/functional/wallet_transactiontime_rescan.py (2)
14-14
: Added import for error assertion testing.Added the
assert_raises_rpc_error
import to support the new test cases.
163-166
: Improved error handling test coverage for rescanblockchain RPC.These new test cases thoroughly validate the parameter validation in the
rescanblockchain
RPC method, ensuring it correctly rejects negative heights and invalid height ranges with appropriate error messages.src/test/fuzz/connman.cpp (3)
36-40
: Using ConnmanTestMsg instead of CConnman for better test controlGood change using the test-specific connection manager class which gives better control over network behavior in the test environment.
52-55
: Enhancing test coverage with controlled node creationThis is a good improvement to the fuzz test coverage. The new loop creates and adds test nodes in a controlled manner, allowing for better testing of the connection manager's node handling functionality. The
LIMITED_WHILE
macro ensures the test won't run indefinitely.
148-148
: Proper cleanup of test resourcesAdding the
ClearTestNodes()
call ensures proper cleanup of resources after the test, which is a good practice to prevent resource leaks and state contamination between tests.src/init/common.cpp (1)
65-65
: Improved help text clarity for logging configurationThe updated help text provides clearer explanation of the log level options by:
- Better formatting the available severity levels
- Explicitly mentioning the default level
- Clearly stating which levels are always logged (error, warning, info)
This makes the documentation more user-friendly and reduces confusion about logging behavior.
src/test/uint256_tests.cpp (1)
271-298
: Properly suppressing expected compiler warnings for self-assignment testGood addition of compiler-specific pragmas to suppress the Clang self-assignment warning. The detailed comments explain why the suppression is necessary and the approach is correct:
- The test deliberately tests self-assignment operations on
arith_uint256
- The warning suppression is scoped only to this specific test
- The warning is properly re-enabled after the test case
- The comments document the Clang issue reference and explain why this is valid
This is good practice for maintaining clean builds while still testing edge cases.
src/test/fuzz/addrman.cpp (3)
274-274
: Simplified address consumption for more deterministic testingGood change to use
ConsumeAddress
to always generate valid addresses instead of conditionally consuming them, which simplifies the control flow and makes the test more deterministic.
276-276
: Using direct consumption for network addressesUsing
ConsumeNetAddr
for network address generation ensures valid network addresses are always used in the test, which improves test reliability and coverage.
279-289
: Streamlined service operations with direct consumption functionsGood improvement to use direct consumption functions (
ConsumeService
,ConsumeWeakEnum
) for various operations (Good, Attempt, Connected, SetServices). This simplifies the code by:
- Removing conditional branches that handle invalid data
- Making the test more deterministic by ensuring valid inputs
- Increasing the effectiveness of fuzzing by focusing on valid code paths
This aligns with fuzzing best practices to generate valid, structured inputs that explore deeper code paths.
configure.ac (4)
514-517
:-Wself-assign
flag: good idea, but be aware of GCC supportClang provides
-Wself-assign
; GCC < 12 ignores it silently.
Because you correctly guard it withAX_CHECK_COMPILE_FLAG
, the flag is only added when recognised, so no further action is required.
526-531
: Global-fstack-reuse=none
workaround: double-check non-GCC tool-chainsThe comment says “only gcc understands this flag”, but the compile-test is unconditional.
If Clang is the active compiler on a non-Linux build it will quietly drop the flag, yet the surrounding wording implies GCC-specific intent. Consider:AX_CHECK_COMPILE_FLAG([-fstack-reuse=none], [CORE_CXXFLAGS="$CORE_CXXFLAGS -fstack-reuse=none"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([[#if !defined(__GNUC__) || defined(__clang__) #error skip #endif int main() { return 0; }]])])to ensure it is only added for real GCC and avoid confusing diagnostics.
825-838
: New MINIUPNPC/NATPMP flag variables – ensure they propagateThe detection section now stores include/library paths in
MINIUPNPC_CPPFLAGS
/MINIUPNPC_LIBS
and similarly for NATPMP.
Please confirm that the relevantMakefile.am
targets use these variables (e.g.AM_CPPFLAGS += $(MINIUPNPC_CPPFLAGS)
). Otherwise the project may still compile locally (when headers are in a global path) but fail in clean CI environments.
1425-1463
: Tmp‐override ofCPPFLAGS
risks hiding user-provided flagsWhile temporarily appending
MINIUPNPC_CPPFLAGS
/NATPMP_CPPFLAGS
toCPPFLAGS
inside the detection block you restore the original value afterwards. Good.
Just ensure no macro later relies onCPPFLAGS
containing those paths – the real build picks them up from the dedicated substituted variables instead.
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.
Pull Request Overview
This pull request contains a batch of trivial backports addressing test improvements, conditional compilation refinements, and build configuration updates.
- Added tests in the wallet transaction time rescan to verify error handling for invalid parameters.
- Refactored conditional compilation blocks in walletdb.cpp using if constexpr for SQLite and Berkeley DB support.
- Updated several fuzz tests, build scripts, and CI configuration (e.g. upgraded the macOS Xcode image).
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
test/functional/wallet_transactiontime_rescan.py | Added invalid parameter tests for rescanblockchain RPC. |
src/wallet/walletdb.cpp | Refactored conditional compilation using if constexpr for database support. |
src/test/uint256_tests.cpp | Added clang diagnostic push/pop for self-assignment warnings handling. |
src/test/fuzz/muhash.cpp | Wrapped self-assignment warning suppression for clang in fuzz tests. |
src/test/fuzz/connman.cpp | Updated connection test node handling and switched to ConnmanTestMsg. |
src/test/fuzz/addrman.cpp | Simplified test consumption functions for addresses, net addrs and services. |
src/netbase.cpp | Removed extra logging on socket connection failures. |
src/init/common.cpp | Revised logging argument help text and flag handling. |
configure.ac | Updated compile flag checks and improved flag injection for external libs. |
.cirrus.yml | Upgraded the macOS CI image from monterey-xcode-13.2 to monterey-xcode-13.3. |
if constexpr (true) { | ||
return MakeSQLiteDatabase(path, options, status, error); | ||
} else | ||
#endif | ||
{ | ||
error = Untranslated(strprintf("Failed to open database path '%s'. Build does not support SQLite database format.", fs::PathToString(path))); | ||
status = DatabaseStatus::FAILED_BAD_FORMAT; | ||
return nullptr; | ||
} | ||
} | ||
|
||
#ifdef USE_BDB | ||
return MakeBerkeleyDatabase(path, options, status, error); | ||
#else | ||
error = Untranslated(strprintf("Failed to open database path '%s'. Build does not support Berkeley DB database format.", fs::PathToString(path))); | ||
status = DatabaseStatus::FAILED_BAD_FORMAT; | ||
return nullptr; | ||
if constexpr (true) { | ||
return MakeBerkeleyDatabase(path, options, status, error); | ||
} else | ||
#endif | ||
{ | ||
error = Untranslated(strprintf("Failed to open database path '%s'. Build does not support Berkeley DB database format.", fs::PathToString(path))); | ||
status = DatabaseStatus::FAILED_BAD_FORMAT; | ||
return nullptr; | ||
} |
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.
[nitpick] The use of 'if constexpr (true)' renders the else branch unreachable; consider refactoring this block to simplify the control flow and remove dead code.
Copilot uses AI. Check for mistakes.
fa3373d refactor: Compile unreachable code (MarcoFalke) Pull request description: When unreachable code isn't compiled, compile failures are not detected. Fix this by leaving it unreachable, but compiling it. Fixes bitcoin#28999 (comment) ACKs for top commit: achow101: ACK fa3373d ryanofsky: Code review ACK fa3373d. This looks good, and should prevent code in the else blocks from accidentally breaking. Tree-SHA512: 3a3764915dfc935bf5d7a48f1ca151dcbac340c1cbdce8236b24ae9b4f04d6ee9771ed058ca60bcbca6e19d13671de3517f828a8f7ab6444c7cc4e3538d1ba4e
fb4cc5f netbase: clean up Proxy logging (Matthew Zipkin) Pull request description: Follow up to bitcoin#27375 and see bitcoin#29649 (comment) This removes an extra log message when we can't connect to our own proxy, and another when the proxy is invalid. ## Before bitcoin#27375 if proxy is unreachable ``` 2024-04-15T17:54:51Z connect() to 127.0.0.1:9999 failed after wait: Connection refused (61) 2024-04-15T17:54:52Z connect() to 127.0.0.1:9999 failed after wait: Connection refused (61) 2024-04-15T17:54:52Z connect() to 127.0.0.1:9999 failed after wait: Connection refused (61) 2024-04-15T17:54:53Z connect() to 127.0.0.1:9999 failed after wait: Connection refused (61) 2024-04-15T17:54:53Z connect() to 127.0.0.1:9999 failed after wait: Connection refused (61) ``` ## After bitcoin#27375 if unix proxy is unreachable: ``` 2024-04-15T17:54:03Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2) 2024-04-15T17:54:03Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor 2024-04-15T17:54:04Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2) 2024-04-15T17:54:04Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor 2024-04-15T17:54:04Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2) 2024-04-15T17:54:04Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor 2024-04-15T17:54:05Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2) 2024-04-15T17:54:05Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor ``` ## After this PR: ``` 2024-04-15T18:18:51Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2) 2024-04-15T18:18:51Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2) 2024-04-15T18:18:52Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2) 2024-04-15T18:18:52Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2) ``` ACKs for top commit: tdb3: CR ACK for fb4cc5f laanwj: ACK fb4cc5f Tree-SHA512: f07b9f7f2ea9f4bc01780c09f0b076547108294a1fa7d158a0dd48d6d7351569e461e5cccf232b7b1413ce2e3679668e523e5a7c89cd58c909da76d3dcbc34de
c3a5e8a build: re-enable deprecated warning copy (Cory Fields) Pull request description: Noticed while looking at the `-wno-*` flags in bitcoin#30235. This was disabled in bitcoin#18738 due to the combo of old gcc and qt. We no longer support the affected gcc, and the old qt should no longer be relevant to us anyway. See old fixes in: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88136 and https://bugreports.qt.io/browse/QTBUG-75210 and https://codereview.qt-project.org/c/qt/qtbase/+/245434 ACKs for top commit: maflcko: ACK c3a5e8a fanquake: ACK c3a5e8a - this is in `-Wextra` for Clang and GCC. Tree-SHA512: bd008dc50134d15ca3bb0c4f78d910db5b7a0ee98b04c159122a6f13a24b18827806492f053293d9cc1f1528ba60dea6d9ed31a366f63840ccb7c55f002d263b
15796d4 build: warn on self-assignment (Cory Fields) 53372f2 refactor: disable self-assign warning for tests (Cory Fields) Pull request description: Belt-and suspenders after bitcoin#30234. Self-assignment should be safe _and_ discouraged. We used to opt out of this warning because something deep in our serialization/byteswapping code could self-assign, but that doesn't appear to be the case anymore. ACKs for top commit: maflcko: ACK 15796d4 fanquake: ACK 15796d4 - not a huge fan of inline pragma usage, but this seems fine, given it's to work around an already-fixed compiler bug, and we'll only be carrying it for a shortish time in any case. Tree-SHA512: 1f95f7c730b974ad1da55ebd381040bac312f2f380fff9d569ebab91d7c1963592a84d1613d81d96238c6f5a66aa40deebba68a76f6b24b02150d0a77c769654
a01c313
to
6dfb41e
Compare
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.
utACK 6dfb41e
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.
utACK 6dfb41e
Issue being fixed or feature implemented
Batch of trivial backports
How Has This Been Tested?
CI
Breaking Changes
Checklist:
Go over all the following points, and put an
x
in all the boxes that apply.