build: update Bitcoin Core submodule #1056

Manually merged
vasild merged 1 commit from update_bitcoin_a into qt6 2026-11-09 18:56:19 +00:00 AGit
vasild commented 2026-10-30 08:51:44 +00:00 (Migrated from github.com)

This resolves a good amount of conflicts and depends on https://github.com/bitcoin/bitcoin/pull/36685.

This resolves a good amount of conflicts and depends on https://github.com/bitcoin/bitcoin/pull/36685.
vasild (Migrated from github.com) reviewed 2026-10-30 09:13:38 +00:00
vasild (Migrated from github.com) commented 2026-10-30 09:10:09 +00:00

This change deserves a special attention.

Before github.com/bitcoin/bitcoin@74245c20e0

The last argument to the CreatedTransactionResult constructor was const FeeCalculation&. It would store that argument to a FeeCalculation fee_calc member. The code here in QML GUI would pass a default constructed FeeCalculation{} which would have a default initialized member FeeReason reason = FeeReason::NONE.

So the code here was passing "none" for a reason.

After github.com/bitcoin/bitcoin@74245c20e0

Now the last argument to the CreatedTransactionResult constructor is FeeReason and it is stored in a FeeReason fee_reason member. That does not include "none" anymore:

enum class FeeReason {
    FEE_RATE_ESTIMATOR,
    MEMPOOL_MIN,
    USER_SPECIFIED,
    FALLBACK, 
    REQUIRED,
};  

The "none" option has been moved to BlockPolicyEstimateReason::NONE.

So the code here cannot pass "none" anymore.

I arbitrarily decided to pass FeeReason::FEE_RATE_ESTIMATOR instead of "none". All 3 occurrences of this are in tests.

cc @ismaelsadeeq

This change deserves a special attention. Before https://github.com/bitcoin/bitcoin/commit/74245c20e05e6fb5844a9bdfca489f107c6c8aca ----- The last argument to the `CreatedTransactionResult` constructor was `const FeeCalculation&`. It would store that argument to a `FeeCalculation fee_calc` member. The code here in QML GUI would pass a default constructed `FeeCalculation{}` which would have a default initialized member `FeeReason reason = FeeReason::NONE`. So the code here was passing "none" for a reason. After https://github.com/bitcoin/bitcoin/commit/74245c20e05e6fb5844a9bdfca489f107c6c8aca ----- Now the last argument to the `CreatedTransactionResult` constructor is `FeeReason` and it is stored in a `FeeReason fee_reason` member. That does not include "none" anymore: ```cpp enum class FeeReason { FEE_RATE_ESTIMATOR, MEMPOOL_MIN, USER_SPECIFIED, FALLBACK, REQUIRED, }; ``` The "none" option has been moved to `BlockPolicyEstimateReason::NONE`. So the code here cannot pass "none" anymore. I arbitrarily decided to pass `FeeReason::FEE_RATE_ESTIMATOR` instead of "none". All 3 occurrences of this are in tests. cc @ismaelsadeeq
johnny9 (Migrated from github.com) reviewed 2026-10-30 22:54:07 +00:00
johnny9 (Migrated from github.com) left a comment

The submodule update has three CI blockers beyond the declared dependency on bitcoin/bitcoin#36685. Details and proposed fixes are in the inline comments.

The submodule update has three CI blockers beyond the declared dependency on bitcoin/bitcoin#36685. Details and proposed fixes are in the inline comments.
johnny9 (Migrated from github.com) commented 2026-10-30 22:54:07 +00:00

Both Depends Build jobs stop before compilation because patches/depends-Add-Qt-Qml-and-Qt-Quick-modules.patch no longer applies to native_qt.mk, qt.mk, or qt_details.mk. This pin updates Qt from 6.8.3 to 6.8.4, but the patch still contains the 6.8.3 context and archive hashes. Refresh the patch and the qtdeclarative, qtshadertools, and qtsvg hashes for 6.8.4, then rerun both depends jobs.

Failed CI job.

Both Depends Build jobs stop before compilation because patches/depends-Add-Qt-Qml-and-Qt-Quick-modules.patch no longer applies to native_qt.mk, qt.mk, or qt_details.mk. This pin updates Qt from 6.8.3 to 6.8.4, but the patch still contains the 6.8.3 context and archive hashes. Refresh the patch and the qtdeclarative, qtshadertools, and qtsvg hashes for 6.8.4, then rerun both depends jobs. [Failed CI job](https://github.com/bitcoin-core/gui-qml/actions/runs/41029310034/job/123974931020).
johnny9 (Migrated from github.com) commented 2026-10-30 22:54:07 +00:00

The Ubuntu 24.04 and 26.04 builds fail with -Werror=unused-const-variable because this pin adds -Wunused-const-variable to warn_interface, which bitcoinqml inherits through core_interface. GB_BYTES and DEFAULT_PRUNE_TARGET_GB in qml/guiconstants.h, and DEFAULT_PROXY_HOST and DEFAULT_PROXY_PORT in qml/models/nodemodel.h, are defined in headers and unused in some translation units. Declare the shared constants inline constexpr, matching Core's Qt constants, then rerun the warning-as-error build matrix.

Failed CI job.

The Ubuntu 24.04 and 26.04 builds fail with -Werror=unused-const-variable because this pin adds -Wunused-const-variable to warn_interface, which bitcoinqml inherits through core_interface. GB_BYTES and DEFAULT_PRUNE_TARGET_GB in qml/guiconstants.h, and DEFAULT_PROXY_HOST and DEFAULT_PROXY_PORT in qml/models/nodemodel.h, are defined in headers and unused in some translation units. Declare the shared constants inline constexpr, matching Core's Qt constants, then rerun the warning-as-error build matrix. [Failed CI job](https://github.com/bitcoin-core/gui-qml/actions/runs/41029310158/job/123974931191).
johnny9 (Migrated from github.com) commented 2026-10-30 22:54:07 +00:00

The Ubuntu 22.04 build fails in the pinned Core's src/wallet/walletdb.cpp:826: GCC 12.3 reports that der_index may be used uninitialized, and the job treats it as an error. The parser sets parent to false only after extracting der_index, so this diagnostic alone does not establish a runtime uninitialized read. Initialize der_index or restructure the optional-index parsing in Core, then include that fix in the pin and rerun the GCC 12 Release build.

Failed CI job.

The Ubuntu 22.04 build fails in the pinned Core's src/wallet/walletdb.cpp:826: GCC 12.3 reports that der_index may be used uninitialized, and the job treats it as an error. The parser sets parent to false only after extracting der_index, so this diagnostic alone does not establish a runtime uninitialized read. Initialize der_index or restructure the optional-index parsing in Core, then include that fix in the pin and rerun the GCC 12 Release build. [Failed CI job](https://github.com/bitcoin-core/gui-qml/actions/runs/41029310158/job/123974931319).
vasild (Migrated from github.com) reviewed 2026-11-06 13:24:48 +00:00
vasild (Migrated from github.com) commented 2026-11-06 13:24:48 +00:00

Seems like LLM text, is it?

I think I fixed the problem but didn't follow the above instructions.

Seems like LLM text, is it? I think I fixed the problem but didn't follow the above instructions.
vasild commented 2026-11-06 13:26:30 +00:00 (Migrated from github.com)

2b10e41faa357437a41befad1b2fe4e467afcde6...5ab89e1424b846e042c9f7b6034ffab93062e5ea: rebase on the latest qt6 branch (6e54a48ab5) and pull latest bitcoin submodule (b8b38ef742). Address suggestions.

`2b10e41faa357437a41befad1b2fe4e467afcde6...5ab89e1424b846e042c9f7b6034ffab93062e5ea`: rebase on the latest `qt6` branch (6e54a48ab571cb46b813eb1d98a301401089192f) and pull latest bitcoin submodule (b8b38ef7426cab0e88b920873f27b749b58eccb5). Address suggestions.
rreview commented 2026-11-06 13:55:18 +00:00 (Migrated from github.com)

🔵 Suggestion · Passphrase-change storage failures are reported as an incorrect password

When a passphrase change fails to write the master key, the bumped Core now returns GenericError, but the GUI reports an incorrect current password instead of the storage failure.

Location: test/test_walletqmlmodel.cpp:401 (head).

🔵 Suggestion · The GCC 12 warning downgrade has no documented removal condition

The Ubuntu 22.04 / GCC 12 job still adds -Wno-error=maybe-uninitialized to configure-wide CXXFLAGS, with no comment saying which diagnostic it works around or when it can be removed. Because the flag covers every target, maybe-uninitialized warnings in bitcoinqml and the app tests no longer fail that job. The Ubuntu 24.04 and 26.04 jobs still build with -DCMAKE_COMPILE_WARNING_AS_ERROR=ON, so only GCC-12-specific diagnostics stop being enforced. This is a CI maintenance concern, not a build or runtime defect.

Location: .github/workflows/ci.yml:24 (head).

Review coverage was incomplete.


Reviewed: 8245ad4fec8f · Review report

<!-- ralph-major:bitcoin-core/gui-qml --> **🔵 Suggestion · Passphrase-change storage failures are reported as an incorrect password** When a passphrase change fails to write the master key, the bumped Core now returns `GenericError`, but the GUI reports an incorrect current password instead of the storage failure. Location: [test/test_walletqmlmodel.cpp:401](<https://github.com/bitcoin-core/gui-qml/blob/8245ad4fec8fa1c13c18bf4c4c6a7d3aabe58bb1/test/test_walletqmlmodel.cpp#L401>) (head). **🔵 Suggestion · The GCC 12 warning downgrade has no documented removal condition** The Ubuntu 22.04 / GCC 12 job still adds `-Wno-error=maybe-uninitialized` to configure-wide CXXFLAGS, with no comment saying which diagnostic it works around or when it can be removed. Because the flag covers every target, maybe-uninitialized warnings in bitcoinqml and the app tests no longer fail that job. The Ubuntu 24.04 and 26.04 jobs still build with `-DCMAKE_COMPILE_WARNING_AS_ERROR=ON`, so only GCC-12-specific diagnostics stop being enforced. This is a CI maintenance concern, not a build or runtime defect. Location: [.github/workflows/ci.yml:24](<https://github.com/bitcoin-core/gui-qml/blob/8245ad4fec8fa1c13c18bf4c4c6a7d3aabe58bb1/.github/workflows/ci.yml#L24>) (head). Review coverage was incomplete. <!-- Review tier: sensitive --> --- Reviewed: [`8245ad4fec8f`](<https://github.com/bitcoin-core/gui-qml/commit/8245ad4fec8fa1c13c18bf4c4c6a7d3aabe58bb1>) · [Review report](<https://review.fish.foo/report/gui/1056-8245ad4fec8fa1c13c18bf4c4c6a7d3aabe58bb1-2415-4.html>)
johnny9 (Migrated from github.com) reviewed 2026-11-06 19:56:24 +00:00
johnny9 (Migrated from github.com) commented 2026-11-06 19:56:24 +00:00

the text was describing that the patches we have in the repo for adding depends support need to be updated. LLM but it was accurate. Anyway, looks like the problem is resolved will review.

the text was describing that the patches we have in the repo for adding depends support need to be updated. LLM but it was accurate. Anyway, looks like the problem is resolved will review.
vasild (Migrated from github.com) reviewed 2026-11-07 05:45:10 +00:00
vasild (Migrated from github.com) commented 2026-11-07 05:45:10 +00:00

I addressed this by adding -Wno-error=maybe-uninitialized to .github/workflows/ci.yml because fixing compilation warnings in a submodule is out of scope here.

I wonder why this warning is not shown up in the CI in the bitcoin/bitcoin repo.

I addressed this by adding `-Wno-error=maybe-uninitialized` to `.github/workflows/ci.yml` because fixing compilation warnings in a submodule is out of scope here. I wonder why this warning is not shown up in the CI in the `bitcoin/bitcoin` repo.
johnny9 (Migrated from github.com) reviewed 2026-11-07 13:33:32 +00:00
johnny9 (Migrated from github.com) left a comment

Rechecked at 9ede9a5; the maximum-send fee-cap issue is still reproducible.

Rechecked at `9ede9a5`; the maximum-send fee-cap issue is still reproducible.
johnny9 (Migrated from github.com) commented 2026-11-07 13:33:32 +00:00

With -maxfeerate=0.00001000 (1 sat/vB), Use maximum at 2 sat/vB reports success, but Core rejects broadcast and the inputs become unavailable.

This Core update adds the broadcast cap, so check fee > wallet->m_max_tx_fee_rate.GetFee(size.vsize) in the QML builder and return a translated preparation error. Add tests for automatic and selected-input maximum sends: reject above the cap without committing or spending inputs, and still broadcast below it. The existing custom-fee tests do not cover this cap.

With `-maxfeerate=0.00001000` (1 sat/vB), **Use maximum** at 2 sat/vB reports success, but Core rejects broadcast and the inputs become unavailable. This Core update adds the broadcast cap, so check `fee > wallet->m_max_tx_fee_rate.GetFee(size.vsize)` in the QML builder and return a translated preparation error. Add tests for automatic and selected-input maximum sends: reject above the cap without committing or spending inputs, and still broadcast below it. The existing custom-fee tests do not cover this cap.
vasild commented 2026-11-09 16:03:37 +00:00 (Migrated from github.com)

9ede9a5c8ee4ab4b2fa9ab6cbd4cefbbeda6187b...8245ad4fec8fa1c13c18bf4c4c6a7d3aabe58bb1: address https://github.com/bitcoin-core/gui-qml/pull/1056#discussion_r4501927895 and pull latest bitcoin submodule (github.com/bitcoin/bitcoin@44901d8f64)

`9ede9a5c8ee4ab4b2fa9ab6cbd4cefbbeda6187b...8245ad4fec8fa1c13c18bf4c4c6a7d3aabe58bb1`: address https://github.com/bitcoin-core/gui-qml/pull/1056#discussion_r4501927895 and pull latest bitcoin submodule (https://github.com/bitcoin/bitcoin/commit/44901d8f64cb617714707bd025ecd83f108353c2)
vasild (Migrated from github.com) reviewed 2026-11-09 16:04:43 +00:00
vasild (Migrated from github.com) commented 2026-11-09 16:04:43 +00:00

Done, I also checked that this is the only location in the new GUI where m_max_tx_fee is referenced. Presumably both checks have to be carried together.

Done, I also checked that this is the only location in the new GUI where `m_max_tx_fee` is referenced. Presumably both checks have to be carried together.
johnny9 (Migrated from github.com) approved these changes 2026-11-09 18:37:38 +00:00
johnny9 (Migrated from github.com) left a comment

ACK 8245ad4fec

Verified the maximum-send fee-cap fix with automatic and selected inputs: above-cap sends are rejected, and sends at or below the cap broadcast. All eight local CTest targets pass.

The Core update enables -Wunreachable-code-aggressive. This exposes an extra return {}; after the switch in SendRecipientsListModel::data(): every case, including the default, already returns, so that final return cannot run. The Clang CI job does not enable warnings-as-errors, so it reports the warning and still passes. Our local Clang 23 check with CMAKE_COMPILE_WARNING_AS_ERROR=ON fails on it. We can remove the redundant return in the upcoming linting PR.

ACK 8245ad4fec8fa1c13c18bf4c4c6a7d3aabe58bb1 Verified the maximum-send fee-cap fix with automatic and selected inputs: above-cap sends are rejected, and sends at or below the cap broadcast. All eight local CTest targets pass. The Core update enables `-Wunreachable-code-aggressive`. This exposes an extra `return {};` after the switch in `SendRecipientsListModel::data()`: every case, including the default, already returns, so that final return cannot run. The Clang CI job does not enable warnings-as-errors, so it reports the warning and still passes. Our local Clang 23 check with `CMAKE_COMPILE_WARNING_AS_ERROR=ON` fails on it. We can remove the redundant return in the upcoming linting PR.
vasild commented 2026-11-10 13:38:24 +00:00 (Migrated from github.com)

Thanks! 🎉

Thanks! :tada:
Sign in to join this conversation.
No description provided.