mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-11 08:06:06 +01:00
7a4901c902test, refactor: Fix `-Warray-bounds` warning (Hennadii Stepanov)faf2759c8ctest: [refactor] Use reference over ptr to chainman (MarcoFalke) Pull request description: Just some minor test-only refactor commits to fix GCC false positive warnings, along with making the test code easier to read and understand: * First change requested in https://github.com/bitcoin/bitcoin/pull/33785#discussion_r2510727269 * Second change requested in commit 3b135a8fc4451c93b3ea50b3f4621e0d19f35daf Those changes are required in a bunch of pulls touching the CI system, so merging them allows to drop them in all pulls. ACKs for top commit: l0rinc: ACK7a4901c902hebasto: ACK7a4901c902, I have reviewed the code and it looks OK. Tree-SHA512: 64dca52ec7b25078bf489e2d8b43e449f4968fbac14a09c66a60cdc75b513588403665f248368820694a6f72c4f7f465589d9306355239cffe35c38111929eff