Skip to content

[30.x] More backports#34283

Merged
fanquake merged 15 commits intobitcoin:30.xfrom
fanquake:30_3_backports
Jan 29, 2026
Merged

[30.x] More backports#34283
fanquake merged 15 commits intobitcoin:30.xfrom
fanquake:30_3_backports

Conversation

theStack and others added 2 commits January 14, 2026 12:18
The previous `assert` used `>=`, allowing `input_index == psbt.inputs.size()` and out-of-bounds access in `psbt.inputs[input_index]`.

Found during review: bitcoin#31650 (comment)

Github-Pull: bitcoin#34272
Rebased-From: 2f5b1c5
@fanquake fanquake added this to the 30.3 milestone Jan 14, 2026
@DrahtBot
Copy link
Contributor

DrahtBot commented Jan 14, 2026

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34283.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK willcl-ark, marcofleon

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

The regex `(.*)` was capturing `\r` from subprocess output on Windows,
causing the closing parenthesis in logs to wrap to the next line.

Stripping whitespace from the regex match fixes the formatting.

Github-Pull: bitcoin#34282
Rebased-From: 979d41b
Facilitate use on distros that might have 'tar' as something else, such
as 'gtar', i.e Chimera.

Github-Pull: bitcoin#34390
Rebased-From: be2b48b
MarcoFalke added 2 commits January 28, 2026 14:24
The section claims to be for ccache builds, however those are already
fixed after commit 1cc58d3.

If there are still any build or debug problems after that commit,
dedicated instructions can be added back, along with exact steps to
reproduce and test.

Github-Pull: bitcoin#34413
Rebased-From: fa06cd4
The -ffile-prefix-map option is no longer used and it seems fine to
remove the warning about it possibly breaking coverage builds.

If this needs documentation, the dev notes seem like a better place,
because it also affects other places, such as depends. C.f. commit
407062f

Github-Pull: bitcoin#34413
Rebased-From: fa2e1b8
removeprunedfunds removes all entries from mapTxSpends for the
inputs of the pruned tx. However, this is incorrect, because there could be
multiple entries from conflicting transactions (that shouldn't be
removed as well). This could lead to the wallet creating invalid
transactions, trying to double spend utxos.
The bug persists when the conflicting tx was mined, because
the wallet trusts its internal accounting instead of calling
AddToSpends again.

Github-Pull: bitcoin#34358
Rebased-From: 1f60ca3
We can use vswhere.exe directly to create a vs developer
prompt and so can remove this third party dependency.

Co-authored-by: David Gumberg <[email protected]>

Github-Pull: bitcoin#32513
Rebased-From: 7ae0497
m3dwards and others added 3 commits January 29, 2026 14:07
This sets up a vs developer command prompt and should hopefully should
be more resilient to upstream changes

Co-authored-by: David Gumberg <[email protected]>

Github-Pull: bitcoin#32513
Rebased-From: e1a1b14
The other executables have manifests and these should be checked in
addition to bitcoind. Skipping fuzz.exe, bench_bitcoin.exe and
test_bitcoin-qt.exe as they do not have manifests.

Github-Pull: bitcoin#32513
Rebased-From: 1569279
@fanquake fanquake marked this pull request as ready for review January 29, 2026 14:10
@fanquake fanquake requested a review from marcofleon January 29, 2026 14:19
Copy link
Member

@willcl-ark willcl-ark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 624c745

Backports are all clean (except #34344) and are listed in the release notes.

Copy link
Contributor

@marcofleon marcofleon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 624c745

@fanquake fanquake merged commit 3761863 into bitcoin:30.x Jan 29, 2026
20 checks passed
@fanquake fanquake deleted the 30_3_backports branch January 29, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.