mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:03:39 +00:00
build: update Bitcoin Core submodule #1056
No reviewers
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml!1056
Loading…
Reference in a new issue
No description provided.
Delete branch "update_bitcoin_a"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This resolves a good amount of conflicts and depends on https://github.com/bitcoin/bitcoin/pull/36685.
This change deserves a special attention.
Before
github.com/bitcoin/bitcoin@74245c20e0The last argument to the
CreatedTransactionResultconstructor wasconst FeeCalculation&. It would store that argument to aFeeCalculation fee_calcmember. The code here in QML GUI would pass a default constructedFeeCalculation{}which would have a default initialized memberFeeReason reason = FeeReason::NONE.So the code here was passing "none" for a reason.
After
github.com/bitcoin/bitcoin@74245c20e0Now the last argument to the
CreatedTransactionResultconstructor isFeeReasonand it is stored in aFeeReason fee_reasonmember. That does not include "none" anymore: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_ESTIMATORinstead of "none". All 3 occurrences of this are in tests.cc @ismaelsadeeq
The submodule update has three CI blockers beyond the declared dependency on bitcoin/bitcoin#36685. Details and proposed fixes are in the inline comments.
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.
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 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.
Seems like LLM text, is it?
I think I fixed the problem but didn't follow the above instructions.
2b10e41faa357437a41befad1b2fe4e467afcde6...5ab89e1424b846e042c9f7b6034ffab93062e5ea: rebase on the latestqt6branch (6e54a48ab5) and pull latest bitcoin submodule (b8b38ef742). Address suggestions.🔵 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-uninitializedto 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 reportthe 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.
I addressed this by adding
-Wno-error=maybe-uninitializedto.github/workflows/ci.ymlbecause 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/bitcoinrepo.Rechecked at
9ede9a5; the maximum-send fee-cap issue is still reproducible.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.9ede9a5c8ee4ab4b2fa9ab6cbd4cefbbeda6187b...8245ad4fec8fa1c13c18bf4c4c6a7d3aabe58bb1: address https://github.com/bitcoin-core/gui-qml/pull/1056#discussion_r4501927895 and pull latest bitcoin submodule (github.com/bitcoin/bitcoin@44901d8f64)Done, I also checked that this is the only location in the new GUI where
m_max_tx_feeis referenced. Presumably both checks have to be carried together.ACK
8245ad4fecVerified 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 extrareturn {};after the switch inSendRecipientsListModel::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 withCMAKE_COMPILE_WARNING_AS_ERROR=ONfails on it. We can remove the redundant return in the upcoming linting PR.Thanks! 🎉