Skip to content

refactor: store positions as a 64 bits integer in flatfiles - #36669

Merged
fanquake merged 2 commits into
bitcoin:masterfrom
darosior:2610_64bit_blockstorage
Oct 26, 2026
Merged

fanquake merged 2 commits into
bitcoin:masterfrom
darosior:2610_64bit_blockstorage

Conversation

@darosior

Copy link
Copy Markdown
Member

That field is the last 32-bit in flat files management that is only bounded indirectly by callers' usage (unlike the file number for instance). In the spirit of the ongoing effort to avoid unnecessarily using 32 bits integers or platform specific types (for instance #24214, #33724, #34109, #35097, #35616), i was scanning for fields it could be prudent to promote to prevent any possible future misuse. This one is a good candidate because it does not change on-disk representation, since we serialize positions as varints.

darosior and others added 2 commits October 19, 2026 10:44
This is the last field that is only bounded by the usage callers make of it
(unlike the file number, for instance). Promoting it to a 64 bits integer also
does not change on-disk representation since we serialize positions as varints.
Therefore, widen them to prevent any possible future misuse.
@DrahtBot

DrahtBot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

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

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK sedited, hebasto, instagibbs, l0rinc

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

@sedited sedited left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

tACK 48092a9

Also ran a few extra tests locally to stresss this a bit and tested and reproduced the windows code.

@hebasto hebasto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK 48092a9, I have reviewed the code and it looks OK.

@instagibbs instagibbs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK 48092a9

reproduced on linux only

@l0rinc l0rinc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

tested ACK 48092a9

About time we got rid of the 32-bit file offsets - checked the CBlockIndex layout with Clang and GCC, the padding nit can be addressed in a follow-up.

Comment thread src/chain.h
* candidates to be the next block. A blockindex may have multiple pprev pointing
* to it, but at most one of them can be part of the currently active branch.
*/
class CBlockIndex

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

48092a9 flatfile: use 64-bit file positioning syscalls in Windows:

This increases sizeof(CBlockIndex) slightly, we can bring that back in a followup PR by moving nTx after m_chain_tx_count.

Restore the CBlockIndex size
diff --git a/src/chain.h b/src/chain.h
index 830cabe3f6..b2380468b2 100644
--- a/src/chain.h
+++ b/src/chain.h
@@ -117,17 +117,17 @@ public:
     //! (memory only) Total amount of work (expected number of hashes) in the chain up to and including this block
     arith_uint256 nChainWork{};
 
-    //! Number of transactions in this block. This will be nonzero if the block
-    //! reached the VALID_TRANSACTIONS level, and zero otherwise.
-    //! Note: in a potential headers-first mode, this number cannot be relied upon
-    unsigned int nTx{0};
-
     //! (memory only) Number of transactions in the chain up to and including this block.
     //! This value will be non-zero if this block and all previous blocks back
     //! to the genesis block or an assumeutxo snapshot block have reached the
     //! VALID_TRANSACTIONS level.
     uint64_t m_chain_tx_count{0};
 
+    //! Number of transactions in this block. This will be nonzero if the block
+    //! reached the VALID_TRANSACTIONS level, and zero otherwise.
+    //! Note: in a potential headers-first mode, this number cannot be relied upon
+    unsigned int nTx{0};
+
     //! Verification status of this block. See enum BlockStatus
     //!
     //! Note: this value is modified to show BLOCK_OPT_WITNESS during UTXO snapshot

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

See #36501 for a thread on this

@fanquake
fanquake merged commit 2b5b6fe into bitcoin:master Oct 26, 2026
27 checks passed
@fanquake

Copy link
Copy Markdown
Member

Backported to 32.x in #36658.

@fanquake fanquake mentioned this pull request Oct 26, 2026
fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Oct 26, 2026
This is the last field that is only bounded by the usage callers make of it
(unlike the file number, for instance). Promoting it to a 64 bits integer also
does not change on-disk representation since we serialize positions as varints.
Therefore, widen them to prevent any possible future misuse.

Github-Pull: bitcoin#36669
Rebased-From: 17556cb
fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Oct 26, 2026
@fanquake

Copy link
Copy Markdown
Member

Backported to 31.x in #36661.

@fanquake fanquake mentioned this pull request Oct 26, 2026
fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Oct 26, 2026
This is the last field that is only bounded by the usage callers make of it
(unlike the file number, for instance). Promoting it to a 64 bits integer also
does not change on-disk representation since we serialize positions as varints.
Therefore, widen them to prevent any possible future misuse.

Github-Pull: bitcoin#36669
Rebased-From: 17556cb
fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Oct 26, 2026
sedited added a commit that referenced this pull request Oct 26, 2026
09a3519 flatfile: use 64-bit file positioning syscalls in Windows (Antoine Poinsot)
98f204f flatfile: store position as a 64 bits integer (Antoine Poinsot)
fc1dae6 net: enforce timeout interval for paused send peers (Antoine Poinsot)
a4b4cef sock: align exception monitoring between poll() and select() backends (Antoine Poinsot)
0460fc7 doc: update example bitcoin.conf for v32.1 (fanquake)
c2e6818 doc: update manual pages for v32.1 (fanquake)
b582aeb build: bump version to v32.1 (fanquake)
f2fb53f doc: update release notes for v32.1 (fanquake)
4fc75bf Revert "doc: clear out rel notes post 32.0" (fanquake)
af1184d Revert "doc: update release notes for v32.x" (fanquake)

Pull request description:

  Backports:
  * #36665
  * #36667
  * #36669

ACKs for top commit:
  instagibbs:
    ACK 09a3519
  willcl-ark:
    ACK 09a3519
  sedited:
    Reproduced ACK 09a3519
  l0rinc:
    ACK 09a3519

Tree-SHA512: 2f756ad29ce1760c7fd23321e89c1ee3d5374faefc8ebc6238ad139a568f0aac4d82fba7589e8b48ad4075b29ddeeb66a51c12199ed46a5786f6d64d58e7bdc7
fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Oct 26, 2026
This is the last field that is only bounded by the usage callers make of it
(unlike the file number, for instance). Promoting it to a 64 bits integer also
does not change on-disk representation since we serialize positions as varints.
Therefore, widen them to prevent any possible future misuse.

Github-Pull: bitcoin#36669
Rebased-From: 17556cb
fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Oct 26, 2026
@fanquake fanquake mentioned this pull request Oct 26, 2026
@fanquake

Copy link
Copy Markdown
Member

Backported to 30.x in #36664.

fanquake added a commit that referenced this pull request Oct 26, 2026
de4a5e3 doc: update release notes for v31.2 (fanquake)
307fbee flatfile: use 64-bit file positioning syscalls in Windows (Antoine Poinsot)
d47e0d7 flatfile: store position as a 64 bits integer (Antoine Poinsot)
18f8c16 net: enforce timeout interval for paused send peers (Antoine Poinsot)
9918ecd sock: align exception monitoring between poll() and select() backends (Antoine Poinsot)
a48dd27 doc: update example bitcoin.conf for v31.2 (fanquake)
30ce1db doc: update manual pages for v31.2 (fanquake)
cfde828 build: bump version to v31.2 (fanquake)

Pull request description:

  Backports:
  * #36665
  * #36667
  * #36669

ACKs for top commit:
  instagibbs:
    ACK de4a5e3
  l0rinc:
    ACK de4a5e3
  sedited:
    Reproduced and tested ACK de4a5e3

Tree-SHA512: d510d81e38f5d6e9a3589f3a8e925859ed651a0e148c41750c22b94501e7c510aab9ed422b4c479018ab1d1cedfccb6dc7b832ddeac6a2f03ed4976e0f7fac7e
@fanquake

Copy link
Copy Markdown
Member

Backported to 29.x in #36666.

fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Oct 26, 2026
This is the last field that is only bounded by the usage callers make of it
(unlike the file number, for instance). Promoting it to a 64 bits integer also
does not change on-disk representation since we serialize positions as varints.
Therefore, widen them to prevent any possible future misuse.

Github-Pull: bitcoin#36669
Rebased-From: 17556cb
@fanquake fanquake mentioned this pull request Oct 26, 2026
fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Oct 26, 2026
fanquake added a commit that referenced this pull request Oct 26, 2026
4186320 doc: update release notes for v30.4 (fanquake)
a9e7b35 flatfile: use 64-bit file positioning syscalls in Windows (Antoine Poinsot)
adb363c flatfile: store position as a 64 bits integer (Antoine Poinsot)
96b5372 net: enforce timeout interval for paused send peers (Antoine Poinsot)
d4a065b sock: align exception monitoring between poll() and select() backends (Antoine Poinsot)
298eac1 doc: update manual pages for v30.4 (fanquake)
897b2c0 build: bump version to v30.4 (fanquake)

Pull request description:

  Backports:
  * #36665
  * #36667
  * #36669

ACKs for top commit:
  l0rinc:
    ACK 4186320
  willcl-ark:
    ACK 4186320
  sedited:
    Reproduced ACK 4186320

Tree-SHA512: 4e5c5fc7989faa3521d5478fea0e8effcc81ec9a1a6267547a1e7f361e399f7d3830356ff0d02739e68c1af969a9bcadef92abd329429eef1360ae6f3bc59119
PastaPastaPasta added a commit to dashpay/dash that referenced this pull request Oct 29, 2026
Brings the v23.1.9 release into develop. upstream/master (728f505) is
an ancestor of the signed v23.1.9 tag, so merging the tag is identical
to merging master once it is fast-forwarded to the release.

New code taken from v23.1.9, adapted to develop's layout:
- judge every sig-share sender by its own verified shares: batch
  entries keyed by (NodeId, SigShareKey), ported into develop's
  NetSigning::ProcessPendingSigShares (develop already records malformed
  shares in badSources)
- reject negative transaction nVersion after DIP3 (PackVersionAndType)
- reject invalid decrypted DKG shares before aggregation; the QDATA
  contribution check from the deleted src/active/quorums.cpp is ported
  into NetQuorum::ProcessContribQDATA (src/llmq/net_quorum.cpp); the new
  feature_llmq_dkgerrors case passes numeric dkgsimerror rates, as
  develop's RPC requires
- verify DKG contributions individually when a batch vvec check fails;
  the new bls_tests case passes develop's explicit CBLSWorker::Start
  worker count
- cap orphan governance parent re-requests at 100 per tick; the test
  helper uses develop's governance::OrphanVote
- bitcoin#36665, bitcoin#36667
- bitcoin#36669: the system.{h,cpp} hunks land in util/fs_helpers.{h,cpp},
  where develop moved those helpers
- 64-bit flat-file seek/tell at txindex and blockstorage (with the
  util/fs_helpers.h include develop needs), plus develop's own
  BlockFilterIndex::LookupFilterRange seek
- release bookkeeping: v23.1.9 release notes, archived 23.1.8 notes,
  flatpak release entry, regenerated man pages; configure.ac keeps
  develop's 24.1.0 / IS_RELEASE=false

Resolved to develop's side:
- 2aa3a87 / 7fc0edb (netInfo decode guard and help text): develop
  reaches netInfo only through CHECK_NONFATAL, which turns the
  unknown-version payload into an RPC error, not a null dereference
- b4cd3fa (#7549 credit pool snapshot): a v23 hand-port of develop's
  own 8503c5d / 0325195
- src/active/quorums.cpp stays deleted
- every other v23.1.9 commit is a backport of a develop PR already on
  develop; their conflicts take develop's code
PastaPastaPasta added a commit to dashpay/dash that referenced this pull request Oct 29, 2026
4722ad9 chore: prepare v23.1.9 release (pasta)
71b3f0c Merge #7556: fix: gate BLS vote-signature failure log behind gobject category (pasta)
14dddb1 Merge #7838: fix(wallet): authenticate unlock deadline extensions (pasta)
5f73355 Merge #7858: fix: do not InstantSend-lock provider transactions (pasta)
0d2e579 fix(evo): keep -allowprivatenet out of masternode address validation (Konstantin Akimov)
b4cd3fa fix(evo): only write credit pool snapshots inside a block-scoped EvoDB transaction (#7549) (pasta)
d215280 Merge #7846: fix: treat pending owner keys and Platform node IDs as one conflict namespace (pasta)
db9ec2b Merge #7826: fix: skip repeated authenticated Platform bans (pasta)
dcc9596 Merge #7867: fix: refuse masternode list RPCs for blocks outside the active chain (pasta)
197b14a Merge #7866: fix: stop `masternode payments` at the genesis block (pasta)
3055a19 Merge #7850: perf: let CHECKDATASIG use the signature cache (pasta)
4da0099 Merge #7821: fix: relock encrypted wallets after HD upgrade failures (pasta)
c7393c0 Merge #7833: fix: gate signing intake before quorum retrieval (pasta)
fdf40fe Merge #7828: fix: omit recovery words from invalid mnemonic errors (pasta)
8888af8 Merge #7753: fix: bound masternode list caches by size instead of by new block (pasta)
457af6d Merge #7738: refactor: avoid double lookups and default-inserting map access in governance (pasta)
be3b55e Merge #7662: fix: isolate missing quorums in InstantSend batches (pasta)
9bc1e77 Merge #7489: fix: conflict ProRegTx collateral reuse with in-mempool masternode updates (pasta)
5278ce8 Merge #7583: fix: bound pending DKG message retention per proTxHash (pasta)
9ebf78f Merge #7522: fix(net): bound verified inbound connections per proRegTxHash (pasta)
9f2946e Merge #7487: fix: bound DomainPort string deserialization and stop swallowing deser failures (pasta)
c077d32 Merge #7527: fix: require a valid masternode signature before caching an orphan governance vote (pasta)
dfa7db1 Merge #7518: fix: memoize governance vote signature checks to bound govsync cost (pasta)
bb09c49 Merge #7532: fix: bound DYNBITSET allocation against remaining stream size (pasta)
9739f35 Merge #7488: fix: validate ProUpServTx nType at mempool acceptance (pasta)
4687550 Merge #7385: fix: reject invalid extended masternode net info (Pasta)
58b9bce fix: keep flat-file positions 64-bit clean at the remaining raw seek/tell sites (Konstantin Akimov)
7a21752 Merge bitcoin#36667: net: enforce timeout interval for paused send peers (Konstantin Akimov)
58abb28 Merge bitcoin#36665: sock: align exception monitoring between poll() and select() backends (Konstantin Akimov)
8030deb Merge bitcoin#36669: refactor: store positions as a 64 bits integer in flatfiles (Konstantin Akimov)
b1178f9 fix(llmq): judge every sig-share sender by its own verified shares (pasta)
33ec74e fix(governance): cap the orphan parent objects re-requested per tick (pasta)
7fc0edb doc(rpc): mark provider payload network fields optional in the help (pasta)
2aa3a87 fix(rpc): don't dereference a missing netInfo when decoding provider payloads (pasta)
120b5db fix(llmq): verify DKG contributions individually when a batch vvec check fails (pasta)
808b105 Merge #7486: fix: guard VerifyContributionShares against an empty verification-vector set (pasta)
8351db9 fix(llmq): reject invalid decrypted DKG shares before aggregation (pasta)
07494dd fix(consensus): reject negative transaction nVersion after DIP3 (pasta)

Pull request description:

  ## Issue being fixed or feature implemented
  Merges the v23.1.9 release back into develop. v23.1.9 ships five security fixes and three Bitcoin Core network/storage backports that develop doesn't have yet. Without this merge, develop-based nodes (v24) stay exposed to all of them.

  Note on the base: `master` is still at 728f505 (v23.1.8 + crash fixes) and has not been fast-forwarded to the release yet. It is an ancestor of the signed `v23.1.9` tag, so this PR merges the tag commit (67c106f). That gives exactly the result of merging `master` once it is fast-forwarded.

  ## What was done?
  One merge commit. Most of v23.1.9 is backports of develop PRs that develop already has (#7385, #7486, #7487, #7488, #7489, #7518, #7522, #7527, #7532, #7556, #7583, #7662, #7738, #7753, #7821, #7826, #7828, #7833, #7838, #7846, #7850, #7858, #7866, #7867, and the `-allowprivatenet` fix from #7888). Those conflicts resolve to develop's code. The new payload, adapted to develop's layout:

  - **Sig-share sender aliasing** (`fix(llmq): judge every sig-share sender by its own verified shares`). The batch verifier is now keyed by `(NodeId, SigShareKey)`, so two peers pushing the same key can't be judged by each other's signature. Ported into develop's `NetSigning::ProcessPendingSigShares` (`net_signing.cpp`). The second half of the v23 fix (malformed share → `badSources`) was already on develop.
  - **Negative tx `nVersion`** (`fix(consensus): reject negative transaction nVersion after DIP3`). Applied as-is, plus `PackVersionAndType()` at all three pack sites.
  - **Invalid decrypted DKG shares** (`fix(llmq): reject invalid decrypted DKG shares before aggregation`). The QDATA check lived in `src/active/quorums.cpp`, which develop deleted; it is ported into `NetQuorum::ProcessContribQDATA` (`llmq/net_quorum.cpp`). The new `feature_llmq_dkgerrors.py` case passes numeric `dkgsimerror` rates, which develop's RPC requires.
  - **Batch vvec fallback** (`fix(llmq): verify DKG contributions individually when a batch vvec check fails`). The new `bls_tests` case calls develop's `CBLSWorker::Start(4)`, which takes an explicit worker count.
  - **Orphan governance re-request cap** (`fix(governance): cap the orphan parent objects re-requested per tick`). At most 100 orphan parents are re-requested per tick. The test helper uses develop's `governance::OrphanVote`.
  - **bitcoin#36665, bitcoin#36667**. Applied cleanly.
  - **bitcoin#36669**. Develop moved `TruncateFile`/`AllocateFileRange` into `util/fs_helpers.{h,cpp}`, so those hunks, `FileSeek64` and `FileTell64` land there.
  - **64-bit flat-file positions** (`fix: keep flat-file positions 64-bit clean at the remaining raw seek/tell sites`). Covers `txindex.cpp` and `blockstorage.cpp`, which now include `util/fs_helpers.h`. It also covers develop-only `BlockFilterIndex::LookupFilterRange` (from #7574's file-handle reuse), which seeks on a `FlatFilePos` the same way.
  - **Release bookkeeping**: v23.1.9 release notes, archived 23.1.8 notes, flatpak release entry and regenerated man pages. `configure.ac` keeps develop's 24.1.0 / `IS_RELEASE=false`.

  Deliberately resolved to develop's side:
  - `fix(rpc): don't dereference a missing netInfo when decoding provider payloads` and its help-text follow-up. On develop an unknown-version ProTx payload reaches `netInfo` only through `CHECK_NONFATAL`, so `decoderawtransaction` returns an RPC error instead of dereferencing null; the v23 commit message says this is the develop equivalent. Reporting the payload without network fields (as v23.1.9 now does) would be a nicer develop follow-up, but it doesn't belong in this merge.
  - `fix(evo): only write credit pool snapshots inside a block-scoped EvoDB transaction (#7549)`. This is a v23 hand-port of develop's own 8503c5d / 0325195.
  - `src/active/quorums.cpp` stays deleted.

  ## How Has This Been Tested?
  Linux x86_64, `--enable-debug --enable-werror`, built `dashd` and `test_dash`.

  - Unit suites, all passing: `llmq_utils_tests`, `transaction_tests`, `txvalidation_tests`, `sighash_tests`, `bls_tests`, `governance_inv_tests`, `llmq_dkg_tests`, `flatfile_tests`, `fs_tests`, `net_tests`, `sock_tests`, `evo_netinfo_tests`, `evo_assetlocks_tests`, `blockfilter_index_tests`, `txindex_tests`, `blockmanager_tests`.
  - Functional tests, all passing: `feature_llmq_dkgerrors.py` (including the new contribution-invalid case), `feature_llmq_signing.py` (both variants), `p2p_timeouts.py` (v1/v2), `mempool_accept.py`.
  - `git diff --remerge-diff` is empty on all eight v23.1.9 merge commits, so the release has no hidden merge-only changes.
  - An independent review compared each port with its v23.1.9 commit and checked develop for second copies of each bug: other `SigShareKey` batch verifiers, other decrypt-then-aggregate sites, other `fPauseSend` setters and other raw seeks on `FlatFilePos`. It also spot-checked that the PRs treated as "already on develop" have equivalent code there.

  I did not run the full functional suite locally; CI covers it.

  ## Breaking Changes
  Consensus: once DIP3 is active, transactions with a negative `nVersion` are rejected (`bad-txns-version`). Every v23.1.9 node already enforces this. Such transactions were already split-inducing, since a re-serialized copy changes `nType`.

  ## Checklist:
  - [x] I have performed a self-review of my own code
  - [x] I have commented my code, particularly in hard-to-understand areas
  - [x] I have added or updated relevant unit/integration/functional/e2e tests
  - [x] I have made corresponding changes to the documentation
  - [ ] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

ACKs for top commit:
  UdjinM6:
    utACK 257af26

Tree-SHA512: d6d19ecbfaa0a891b09887169ec2709a7dfde06af022203ca28e80fdf009ca360f2704ebadca1f830a97663dac09da78d05c979d9c30ee91780065550070b954
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Oct 29, 2026
…n flatfiles

48092a9 flatfile: use 64-bit file positioning syscalls in Windows (Antoine Poinsot)
17556cb flatfile: store position as a 64 bits integer (Antoine Poinsot)

Pull request description:

  That field is the last 32-bit in flat files management that is only bounded indirectly by callers' usage (unlike the file number for instance). In the spirit of the ongoing effort to avoid unnecessarily using 32 bits integers or platform specific types (for instance bitcoin#24214, bitcoin#33724, bitcoin#34109, bitcoin#35097, bitcoin#35616), i was scanning for fields it could be prudent to promote to prevent any possible future misuse. This one is a good candidate because it does not change on-disk representation, since we serialize positions as varints.

ACKs for top commit:
  sedited:
    tACK 48092a9
  hebasto:
    ACK 48092a9, I have reviewed the code and it looks OK.
  instagibbs:
    ACK 48092a9
  l0rinc:
    tested ACK 48092a9

Tree-SHA512: 0f7a8e5b14cd13b56eb9b663e8d17e03abf94da2662332a24c802fc9c608b9acb1bae01e476502228e4a2cc65332fddd934b96ec7bdbe14fadc9ba3db08b1542

Co-authored-by: merge-script <[email protected]>

(cherry picked from commit 8030deb)

v24.0.x adaptation: the file helpers that v23.1.x keeps in util/system.{h,cpp}
live in util/fs_helpers.{h,cpp} on this branch, so those hunks are applied there.
The upstream kernel/chain.h BlockInfo::data_pos hunk is applied to this branch's
interfaces/chain.h, and the streams.cpp ftell -> FileTell64 hunks to this branch's
AutoFile XOR read/write paths (it has no cached AutoFile position or seek wrapper).
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Oct 29, 2026
…tell sites

bitcoin#36669 widens FlatFilePos::nPos to 64 bits, but Dash still captures
the write position in WriteBlockToDisk and UndoWriteToDisk through a 32-bit
`long ftell()` and then narrows it with `(unsigned int)`. That cast is where
a position past 4 GiB wraps, and the `long` return is where Windows fails
past 2 GiB, so the widened field alone changes nothing at the write site.
Upstream dropped these lines when AutoFile started caching its position
(bitcoin#30884, bitcoin#31490), which Dash has not backported.

TxIndex::FindTx still seeks with a raw `fseek()` where upstream now goes
through AutoFile::seek(), itself a FileSeek64() wrapper.

Route both through FileTell64()/FileSeek64() and assign the position
without narrowing.

(cherry picked from commit 58b9bce)

v24.0.x adaptation: FileSeek64/FileTell64 are declared in util/fs_helpers.h on
this branch, so txindex.cpp and blockstorage.cpp include it, and txindex.cpp
keeps this branch's LogError() + return false error path.
BlockFilterIndex::LookupFilterRange, which exists only on this branch, seeks on
a FlatFilePos the same way and is routed through FileSeek64() too.
PastaPastaPasta added a commit to dashpay/dash that referenced this pull request Oct 29, 2026
…xes, #7947)

4722ad9 chore: prepare v23.1.9 release (pasta)
71b3f0c Merge #7556: fix: gate BLS vote-signature failure log behind gobject category (pasta)
14dddb1 Merge #7838: fix(wallet): authenticate unlock deadline extensions (pasta)
5f73355 Merge #7858: fix: do not InstantSend-lock provider transactions (pasta)
0d2e579 fix(evo): keep -allowprivatenet out of masternode address validation (Konstantin Akimov)
b4cd3fa fix(evo): only write credit pool snapshots inside a block-scoped EvoDB transaction (#7549) (pasta)
d215280 Merge #7846: fix: treat pending owner keys and Platform node IDs as one conflict namespace (pasta)
db9ec2b Merge #7826: fix: skip repeated authenticated Platform bans (pasta)
dcc9596 Merge #7867: fix: refuse masternode list RPCs for blocks outside the active chain (pasta)
197b14a Merge #7866: fix: stop `masternode payments` at the genesis block (pasta)
3055a19 Merge #7850: perf: let CHECKDATASIG use the signature cache (pasta)
4da0099 Merge #7821: fix: relock encrypted wallets after HD upgrade failures (pasta)
c7393c0 Merge #7833: fix: gate signing intake before quorum retrieval (pasta)
fdf40fe Merge #7828: fix: omit recovery words from invalid mnemonic errors (pasta)
8888af8 Merge #7753: fix: bound masternode list caches by size instead of by new block (pasta)
457af6d Merge #7738: refactor: avoid double lookups and default-inserting map access in governance (pasta)
be3b55e Merge #7662: fix: isolate missing quorums in InstantSend batches (pasta)
9bc1e77 Merge #7489: fix: conflict ProRegTx collateral reuse with in-mempool masternode updates (pasta)
5278ce8 Merge #7583: fix: bound pending DKG message retention per proTxHash (pasta)
9ebf78f Merge #7522: fix(net): bound verified inbound connections per proRegTxHash (pasta)
9f2946e Merge #7487: fix: bound DomainPort string deserialization and stop swallowing deser failures (pasta)
c077d32 Merge #7527: fix: require a valid masternode signature before caching an orphan governance vote (pasta)
dfa7db1 Merge #7518: fix: memoize governance vote signature checks to bound govsync cost (pasta)
bb09c49 Merge #7532: fix: bound DYNBITSET allocation against remaining stream size (pasta)
9739f35 Merge #7488: fix: validate ProUpServTx nType at mempool acceptance (pasta)
4687550 Merge #7385: fix: reject invalid extended masternode net info (Pasta)
58b9bce fix: keep flat-file positions 64-bit clean at the remaining raw seek/tell sites (Konstantin Akimov)
7a21752 Merge bitcoin#36667: net: enforce timeout interval for paused send peers (Konstantin Akimov)
58abb28 Merge bitcoin#36665: sock: align exception monitoring between poll() and select() backends (Konstantin Akimov)
8030deb Merge bitcoin#36669: refactor: store positions as a 64 bits integer in flatfiles (Konstantin Akimov)
b1178f9 fix(llmq): judge every sig-share sender by its own verified shares (pasta)
33ec74e fix(governance): cap the orphan parent objects re-requested per tick (pasta)
7fc0edb doc(rpc): mark provider payload network fields optional in the help (pasta)
2aa3a87 fix(rpc): don't dereference a missing netInfo when decoding provider payloads (pasta)
120b5db fix(llmq): verify DKG contributions individually when a batch vvec check fails (pasta)
808b105 Merge #7486: fix: guard VerifyContributionShares against an empty verification-vector set (pasta)
8351db9 fix(llmq): reject invalid decrypted DKG shares before aggregation (pasta)
07494dd fix(consensus): reject negative transaction nVersion after DIP3 (pasta)
11ea306 Merge #7947: fix: stop quorum key warming from stalling DKG on 2-core masternodes (pasta)
25d7c85 Merge #7826: fix: skip repeated authenticated Platform bans (pasta)
18073dd Merge #7850: perf: let CHECKDATASIG use the signature cache (pasta)
3759397 Merge #7833: fix: gate signing intake before quorum retrieval (pasta)
db98ee2 fix: keep flat-file positions 64-bit clean at the remaining raw seek/tell sites (Konstantin Akimov)
54c9738 Merge bitcoin#36667: net: enforce timeout interval for paused send peers (Konstantin Akimov)
f1adb2c Merge bitcoin#36665: sock: align exception monitoring between poll() and select() backends (Konstantin Akimov)
8becf6a Merge bitcoin#36669: refactor: store positions as a 64 bits integer in flatfiles (Konstantin Akimov)
4c0cbd6 fix(llmq): judge every sig-share sender by its own verified shares (pasta)
649259f fix(governance): cap the orphan parent objects re-requested per tick (pasta)
418f5ee fix(llmq): verify DKG contributions individually when a batch vvec check fails (pasta)
abf2eb0 fix(llmq): reject invalid decrypted DKG shares before aggregation (pasta)
39bda8f fix(consensus): reject negative transaction nVersion after DIP3 (pasta)

Pull request description:

  ## Issue being fixed or feature implemented

  Backports for v24.0.0-rc.5, on top of `v24.0.x` at the v24.0.0-rc.4 tag (0e7382d, #7917). This PR holds the must-haves for rc.5: the v23.1.9 fixes that v24.0.x does not have yet, and #7947 (DKG stalls that get 2-core masternodes PoSe-banned). Without the v23.1.9 part, rc.5 would be missing fixes that the already published v23.1.9 ships, and it would accept transactions that v23.1.9 nodes reject (see Breaking Changes).

  The remaining `backport-candidate-24.0.x` work (#7916 and its test prerequisite) will follow in a separate PR so this one stays reviewable.

  ## What was done?

  ### v23.1.9 fixes not yet on v24.0.x

  v23.1.9 (tag 67c106f) contains 46 commits since v23.1.8. Each one was checked by content against `v24.0.x`. Most are backports of develop PRs that `v24.0.x` already has, either from before its branch point or picked for rc.3/rc.4. The rest are picked here with `git cherry-pick -x` from `v23.1.x`, in v23.1.9 merge order:

  - `fix(consensus): reject negative transaction nVersion after DIP3` (07494dd), **consensus**. Context-only conflict in `primitives/transaction.h`.
  - `fix(llmq): reject invalid decrypted DKG shares before aggregation` (8351db9). The QDATA path that v23 has in `src/active/quorums.cpp` is `src/llmq/net_quorum.cpp` on this branch. The new `feature_llmq_dkgerrors.py` case passes numeric `dkgsimerror` rates.
  - `fix(llmq): verify DKG contributions individually when a batch vvec check fails` (120b5db). The new `bls_tests` case calls `CBLSWorker::Start(4)`, since `Start()` takes an explicit worker count here.
  - `fix(governance): cap the orphan parent objects re-requested per tick` (33ec74e). The test helper uses this branch's `governance::OrphanVote`.
  - `fix(llmq): judge every sig-share sender by its own verified shares` (b1178f9). Ported into `NetSigning::ProcessPendingSigShares` (`llmq/net_signing.cpp`). The second half of the v23 fix (malformed share → `badSources`) is already on this branch.
  - bitcoin#36669 (8030deb). The `util/system` hunks land in `util/fs_helpers.{h,cpp}`. Two upstream hunks that the v23 port dropped are restored here, because this branch has their equivalents: `BlockInfo::data_pos` becomes `uint64_t` (in `interfaces/chain.h`), and `AutoFile`'s XOR read/write paths use `FileTell64`.
  - bitcoin#36665 (58abb28), bitcoin#36667 (7a21752). Clean.
  - `fix: keep flat-file positions 64-bit clean at the remaining raw seek/tell sites` (58b9bce). Also covers `BlockFilterIndex::LookupFilterRange`, which only this branch has.
  - #7833 fix: gate signing intake before quorum retrieval
  - #7850 perf: let CHECKDATASIG use the signature cache
  - #7826 fix: skip repeated authenticated Platform bans

  The last three are develop merges, picked with `-m1 -x` from develop; they change exactly the same lines as their develop merges. Every adaptation above is described in its commit message, and each matches how the open v23.1.9 → develop merge (#7961) resolves the same commit.

  Already on `v24.0.x` in another form, so not picked:
  - The credit-pool snapshot fix for #7549 (b4cd3fa) is a v23 hand-port of develop's 8503c5d / 0325195 (#7639), which this branch already has.
  - `fix(evo): keep -allowprivatenet out of masternode address validation` (0d2e579) is already covered by #7888.
  - `fix(rpc): don't dereference a missing netInfo when decoding provider payloads` (2aa3a87) and its help-text follow-up (7fc0edb). Here those accesses go through `CHECK_NONFATAL`, so an unknown-version ProTx payload gets an RPC error instead of a crash. The v23 commit message names this as the develop equivalent.

  ### Merge of v23.1.9

  The last commit merges the v23.1.9 tag (67c106f, now `master`) with the tree unchanged (`-s ours`). `master` moved to v23.1.9 today, and `check_merge` requires `master` to fast-forward to `v24.0.x` plus the PR. The final v24.0.0 also has to contain every v23.1.9 commit. All of v23.1.9's content is already on the branch through the picks above, so every commit resolves to the `v24.0.x` side, as #7961 did on develop. Release bookkeeping (version, v23.1.9 release notes, man pages, flatpak entry) stays with v24's own release process. A trial real merge confirmed this: its only clean additions were those docs and three duplicate re-insertions of code the branch already has.

  ### #7947 fix: stop quorum key warming from stalling DKG on 2-core masternodes

  Picked with `-m1 -x`, before the merge. It changes exactly the same lines as its develop merge, and `v24.0.x` has 756fc4f (#7659), the commit it reverts.

  No version change is needed. `configure.ac` is already 24.0.0 with `CLIENT_VERSION_IS_RELEASE` false, so the build takes its version string from the `v24.0.0-rc.5` tag.

  ## How Has This Been Tested?

  Linux x86_64 against depends, `--enable-debug --enable-werror --disable-hardening --without-gui`: `dashd` and `test_dash` build cleanly.

  - Unit suites, all passing (149 cases): `transaction_tests`, `txvalidation_tests`, `sighash_tests`, `bls_tests`, `governance_inv_tests`, `llmq_utils_tests`, `llmq_dkg_tests`, `quorum_proofs_tests`, `flatfile_tests`, `fs_tests`, `net_tests`, `sock_tests`, `evo_netinfo_tests`, `evo_assetlocks_tests`, `blockfilter_index_tests`, `txindex_tests`, `blockmanager_tests`, `checkdatasig_tests`.
  - Functional tests, all passing: `feature_llmq_dkgerrors.py` (including the new contribution-invalid case), `feature_llmq_signing.py` (plain and `--spork21`), `feature_llmq_simplepose.py` (plain and `--disable-spork23`), `feature_llmq_rotation.py`, `feature_llmq_data_recovery.py`, `p2p_timeouts.py` (v1/v2), `mempool_accept.py`, `p2p_platform_ban.py`. In the first parallel run, `feature_llmq_data_recovery.py` (known flaky, see #7947), one `feature_llmq_signing.py --spork21` run and `p2p_platform_ban.py` failed while another build was loading the machine. All three pass when re-run on their own.
  - Each port was compared with its v23.1.9 commit and with #7961's develop resolution. The per-file changes are identical apart from the branch's own API differences listed above. A separate review checked v24-only call sites for second copies of each bug:
    - other `SigShareKey` batch verifiers;
    - other decrypt-then-aggregate paths;
    - other orphan re-request loops;
    - other tx version packing sites;
    - other raw `FlatFilePos` seeks.

    It also checked that the batch-vvec fallback cannot deadlock on a single-thread BLS pool; it runs on the DKG phase threads, not on a BLS worker.

  ## Breaking Changes

  - Consensus: once DIP3 is active, transactions with a negative `nVersion` are rejected (`bad-txns-version`). Every v23.1.9 node already enforces this, so mixed v23.1.9/rc.4 networks could disagree until rc.5 is deployed. Valid transactions and their txids are unchanged.
  - From #7947: quorum key share warming runs on its own `q-cache` thread again, which is one more thread per node.

  ## Checklist:
  - [x] I have performed a self-review of my own code
  - [ ] I have made corresponding changes to the documentation
  - [ ] I have assigned this pull request to a milestone

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

Top commit has no ACKs.

Tree-SHA512: eaf46d1446c5f6752f2ac5d7aeaa37234cb6da4430db0a1a432320cfe61242dc3bb90c42e0a364238c2817ce0b1b1654dcc0cdd1ed9570f3b35cd2af5330e98e
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Oct 29, 2026
…n flatfiles

48092a9 flatfile: use 64-bit file positioning syscalls in Windows (Antoine Poinsot)
17556cb flatfile: store position as a 64 bits integer (Antoine Poinsot)

Pull request description:

  That field is the last 32-bit in flat files management that is only bounded indirectly by callers' usage (unlike the file number for instance). In the spirit of the ongoing effort to avoid unnecessarily using 32 bits integers or platform specific types (for instance bitcoin#24214, bitcoin#33724, bitcoin#34109, bitcoin#35097, bitcoin#35616), i was scanning for fields it could be prudent to promote to prevent any possible future misuse. This one is a good candidate because it does not change on-disk representation, since we serialize positions as varints.

ACKs for top commit:
  sedited:
    tACK 48092a9
  hebasto:
    ACK 48092a9, I have reviewed the code and it looks OK.
  instagibbs:
    ACK 48092a9
  l0rinc:
    tested ACK 48092a9

Tree-SHA512: 0f7a8e5b14cd13b56eb9b663e8d17e03abf94da2662332a24c802fc9c608b9acb1bae01e476502228e4a2cc65332fddd934b96ec7bdbe14fadc9ba3db08b1542

Co-authored-by: merge-script <[email protected]>

(cherry picked from commit 8030deb)

v24.0.x adaptation: the file helpers that v23.1.x keeps in util/system.{h,cpp}
live in util/fs_helpers.{h,cpp} on this branch, so those hunks are applied there.
The upstream kernel/chain.h BlockInfo::data_pos hunk is applied to this branch's
interfaces/chain.h, and the streams.cpp ftell -> FileTell64 hunks to this branch's
AutoFile XOR read/write paths (it has no cached AutoFile position or seek wrapper).
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Oct 29, 2026
…tell sites

bitcoin#36669 widens FlatFilePos::nPos to 64 bits, but Dash still captures
the write position in WriteBlockToDisk and UndoWriteToDisk through a 32-bit
`long ftell()` and then narrows it with `(unsigned int)`. That cast is where
a position past 4 GiB wraps, and the `long` return is where Windows fails
past 2 GiB, so the widened field alone changes nothing at the write site.
Upstream dropped these lines when AutoFile started caching its position
(bitcoin#30884, bitcoin#31490), which Dash has not backported.

TxIndex::FindTx still seeks with a raw `fseek()` where upstream now goes
through AutoFile::seek(), itself a FileSeek64() wrapper.

Route both through FileTell64()/FileSeek64() and assign the position
without narrowing.

(cherry picked from commit 58b9bce)

v24.0.x adaptation: FileSeek64/FileTell64 are declared in util/fs_helpers.h on
this branch, so txindex.cpp and blockstorage.cpp include it, and txindex.cpp
keeps this branch's LogError() + return false error path.
BlockFilterIndex::LookupFilterRange, which exists only on this branch, seeks on
a FlatFilePos the same way and is routed through FileSeek64() too.
PastaPastaPasta added a commit to dashpay/dash that referenced this pull request Oct 30, 2026
bitcoin#36669 reached develop through the v23.1.9 merge (#7961) without two
of its upstream hunks, because v23.1.x's port had no equivalent sites for them:

- kernel/chain.h: BlockInfo::data_pos becomes uint64_t. Dash keeps BlockInfo in
  interfaces/chain.h; kernel/chain.cpp fills it from the now 64-bit
  CBlockIndex::nDataPos and TxIndex::CustomAppend builds a CDiskTxPos from it,
  so the position was narrowed back to 32 bits there.
- streams.cpp: AutoFile reads its position through FileTell64() instead of
  std::ftell(), which uses a 32-bit long on Windows. Dash's AutoFile has no
  cached position or seek wrapper, so this applies to the XOR read and write
  paths.

Neither path is reachable with today's 128 MiB block files and unset XOR
keys; this keeps the 64-bit position handling consistent with upstream.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to dashpay/dash that referenced this pull request Oct 30, 2026
…ile positions

f2d235c fix: complete bitcoin#36669 for BlockInfo and AutoFile file positions (pasta)

Pull request description:

  ## Issue being fixed or feature implemented

  bitcoin#36669 ("store positions as a 64 bits integer in flatfiles") reached develop with the v23.1.9 merge (#7961). Two of its upstream hunks were missing: the v23.1.x port had no equivalent sites for them, but develop does.

  - `src/interfaces/chain.h:100`: `BlockInfo::data_pos` is still `unsigned`. `kernel/chain.cpp` fills it from the now 64-bit `CBlockIndex::nDataPos`, and `TxIndex::CustomAppend` builds a `CDiskTxPos` from it, so the position is narrowed back to 32 bits there. Upstream changes this field in `kernel/chain.h`.
  - `src/streams.cpp:16,52`: `AutoFile`'s XOR read and write paths still call `std::ftell()`, which returns a 32-bit `long` on Windows. Upstream switches `AutoFile` to `FileTell64()`.

  Neither path is reachable today, because block files are capped at 128 MiB and no in-tree caller sets an XOR key. The change keeps the 64-bit position handling consistent with upstream. The same two hunks are part of the bitcoin#36669 pick in the v24.0.x backport PR #7965, where a review found them missing.

  ## What was done?

  - `BlockInfo::data_pos` is `uint64_t`.
  - `AutoFile::detail_fread` and `AutoFile::write` read their position with `FileTell64()`, and `streams.cpp` includes `util/fs_helpers.h`.

  ## How Has This Been Tested?

  Linux x86_64 against depends, `--enable-debug --enable-werror --disable-hardening --without-gui`: build is clean.

  - Unit suites, passing: `streams_tests`, `flatfile_tests`, `txindex_tests`, `blockfilter_index_tests`, `blockmanager_tests`, `fs_tests`.
  - Functional tests, passing: `feature_reindex.py`, `interface_rest.py`, `rpc_rawtransaction.py`, `feature_index_prune.py`.

  ## Breaking Changes

  None.

  ## Checklist:
  - [x] I have performed a self-review of my own code
  - [ ] I have made corresponding changes to the documentation
  - [ ] I have assigned this pull request to a milestone

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

ACKs for top commit:
  knst:
    utACK f2d235c

Tree-SHA512: c82f1ad457c3e9a0727b3de6c353a1eb56858440f13589227b09b34fa6cb37f9b3b617cd5091f5d27a12f6b9371d87470e98a41882c5b9d52d1b358f70e49218

@maflcko maflcko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

post-merge lgtm. Only three style nits, which I fixed in #36725

Comment thread src/flatfile.h
uint32_t nPos{0};
uint64_t nPos{0};

SERIALIZE_METHODS(FlatFilePos, obj) { READWRITE(VARINT_MODE(obj.nFile, VarIntMode::NONNEGATIVE_SIGNED), VARINT(obj.nPos)); }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

style-nit: While reviewing I found there is no test coverage at all for varint overflow

Comment thread src/util/fs_helpers.cpp
Comment on lines 207 to 208
nFileSize.u.LowPart = nEndPos & 0xFFFFFFFF;
nFileSize.u.HighPart = nEndPos >> 32;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

unrelated style-nit: After C++11, this should use the 64-bit QuadPart according to the official Windows docs

Comment thread src/util/fs_helpers.cpp
* it is advisory, and the range specified in the arguments will never contain live data
*/
void AllocateFileRange(FILE* file, unsigned int offset, unsigned int length)
void AllocateFileRange(FILE* file, uint64_t offset, unsigned int length)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

style-nit: I still feel uneasy about using u32 for the length here. Obviously this is fine for all callers today, but it seems more consistent and easier to read to just use 64-bits for all file sizes and lengths.

PastaPastaPasta added a commit to dashpay/dash that referenced this pull request Nov 6, 2026
d6c066f chore: add v23.1.10 to the flatpak release history (pasta)
202632c chore: release v24.0.0 (pasta)
2bf133c docs: cite #8042 for the index fixes in the v24.0.0 release notes (pasta)
8aa11f6 docs: add the v24.0.0-rc.7 picks and index fixes to the v24.0.0 release notes (pasta)
ad4e5d6 docs: drop the index caveat from the -reindex-chainstate man page entry (pasta)
19a90bb test: blocks orphaned while the address index is disabled are removed from it (pasta)
d2f2a1f fix(index): don't adopt an empty or rebuilt async index as migrated legacy data (pasta)
e3bafdb fix(index): reject an uncommitted tip the block index lost (pasta)
9198962 fix(index): check the blocks governance resumes from at startup (pasta)
baff347 fix(index): resume from the tip a skipped commit leaves behind (pasta)
2dbf5ca fix(index): write a rewound block's erasures in one batch with its locator (pasta)
252acbe fix(index): move the committed locator below the entries a rewind erases (Konstantin Akimov)
e9f9c8a Merge bitcoin#36150: indexes: set prune lock to genesis before first block (Konstantin Akimov)
2edeb98 partial Merge bitcoin#34897: indexes: Don't commit ahead of the flushed chainstate (Konstantin Akimov)
3eba84c Merge bitcoin#32875: index: handle case where pindex_prev equals chain tip in NextSyncBlock() (Konstantin Akimov)
399125c Merge bitcoin#32882: index: remove unnecessary locator cleaning in BaseIndex::Init() (Konstantin Akimov)
bb724c6 Merge bitcoin#33212: index: Don't commit state in BaseIndex::Rewind (Konstantin Akimov)
d5ff431 Merge bitcoin#32878: index: fix wrong assert of current_tip == m_best_block_index (Konstantin Akimov)
31c7d8f partial Merge bitcoin#32580: wallet, test: best block locator matches scan state follow-ups (Konstantin Akimov)
94f5c58 partial Merge bitcoin#30221: wallet: Ensure best block matches wallet scan state (Konstantin Akimov)
8e0b1e8 partial Merge bitcoin#32069: test: fix intermittent failure in wallet_reorgsrestore.py (Konstantin Akimov)
4d17947 Merge bitcoin#25193: indexes: Read the locator's top block during init, allow interaction with reindex-chainstate (Konstantin Akimov)
0127df8 Merge #8045: test: scale the mempool-loaded wait by timeout_factor so TSAN reindex restarts stop timing out (pasta)
62d0cef Merge #8036: fix(qt): let a shared masternode participant follow a revised invitation that keeps their share (merge-script)
775d31c Merge #8018: fix(consensus): require IPv4 masternode primaries until IPv4 is optional, pin mainnet ports (merge-script)
e1b826e Merge #8026: fix(qt): keep shared masternode contribution fields locked while coins are reserved (merge-script)
9fa3df3 Merge #8020: fix(rpc): make protx shared_sign sign only dissolutions that return every principal (merge-script)
246a465 Merge #8024: fix(qt): keep the shared masternode dissolve dialog consistent with what it will send (merge-script)
590ad0a Merge #8021: fix(qt): don't load a newer shared masternode session copy that changes your own share (merge-script)
974aaa3 Merge #8034: fix(qt): check a shared masternode's service and refund addresses before coins are reserved (merge-script)
0026e3e Merge #8027: fix(qt): fund a shared masternode's service update from this wallet by default (merge-script)
6a5d2dc Merge #8035: fix(qt): don't strand coins reserved for a shared masternode session (merge-script)
df6083a Merge #8032: fix(qt): don't offer a new operator key when reopening a shared masternode session (merge-script)
2b5bf30 Merge #8029: fix: let dashd -version, -help and first start work without an existing data directory (merge-script)
e33d9b1 Merge #8037: docs: list the config file path each Linux init system uses (merge-script)
6030ea0 docs: add the #8014 migratewallet fixes to the v24.0.0 release notes (pasta)
1b1ea95 Merge #8014: backport: bitcoin#28609, bitcoin#34215, bitcoin#34226, bitcoin#34370, partials bitcoin#31423, bitcoin#34156 (migratewallet fixes from 28.x) (merge-script)
608ff63 Merge bitcoin#28542: wallet: Check for uninitialized last processed and conflicting heights in MarkConflicted (DCG-Claude)
3af6f63 Merge bitcoin#28038: wallet: address book migration bug fixes (DCG-Claude)
2fe41fb docs: add ecosystem notes on Asset Unlock txids, coinbase payees and RPC errors (pasta)
0e3f653 docs: correct operator guidance in the v24.0.0 release notes for rc.7 (pasta)
11c8140 Merge #8019: fix(qt): stop reporting refused shared masternode broadcasts as sent (merge-script)
cdb250c doc: note operator-relevant v23.1.x patch-release changes for v24.0.0 (pasta)
fcd332b doc: state the provider-transaction InstantSend change on its own (pasta)
e6f3ad4 fix(bls): stop weighted contribution batch verification on an invalid partial aggregate (pasta)
e04acba fix(llmq): weight batched DKG contribution verification (UdjinM6)
ed96227 fix(bls): weight batch-verified signatures so complementary errors cannot cancel (UdjinM6)
b5c7985 fix(governance): don't vote on triggers while not synced (pasta)
a79f432 fix(governance): don't vote NO-FUNDING on triggers before their maturity window (pasta)
8615244 fix(llmq): accept equal DKG secret key shares when aggregating a member's share (pasta)
1c356f4 test: cover DKG members dealing identical contributions (UdjinM6)
f23f748 fix(llmq): drop DKG members whose verification vectors share coefficients (UdjinM6)
914c052 docs: add #8003 to the v24.0.0 release notes and man pages (pasta)
e81c511 Merge #8003: fix(net): don't refuse to start over the automatic onion service unless -listenonion=1 (merge-script)
41b4578 ci: run cppcheck as test/lint/cppcheck-dash.py, as develop does since #7966 (pasta)
c97f3b3 docs: regenerate man pages for v24.0.0-rc.6 (pasta)
784312c docs: add the v24.0.0-rc.6 changes to the v24.0.0 release notes (pasta)
f15a53a Merge #7991: fix(qt): shared masternode wizard fixes for taken shares, unconfirmed funding and reply handling (merge-script)
1c46224 Merge #7995: fix(wallet): don't let a waiting CoinJoin promotion/demotion queue block standard mixing (merge-script)
546db2f Merge #7996: fix(wallet): fill a CoinJoin promotion with sibling coins when needed (merge-script)
349859f Merge #7957: fix(qt): validate shared-masternode shares with the consensus rules (merge-script)
9091f0b Merge #8005: backport: bitcoin#27114, bitcoin#33395 (merge-script)
e915ab5 Merge #7990: fix(wallet): pay for 3 byte input and output counts so 253+ input sends work (merge-script)
4f4d188 Merge #7984: chore: Translations 2026-10 (pasta)
129a1fc Merge #7980: chore: update seeds, checkpoints, minimum chain work, assumevalid and tx stats for v24 (pasta)
5800e5d docs: state that SPORK_3/SPORK_9 were already hardened on mainnet (pasta)
ddc82a8 docs: separate extended addresses from shared masternodes in v24 notes (pasta)
8660e54 docs: complete the v24.0.0 release notes against the full v24 changeset (pasta)
11ea306 Merge #7947: fix: stop quorum key warming from stalling DKG on 2-core masternodes (pasta)
25d7c85 Merge #7826: fix: skip repeated authenticated Platform bans (pasta)
18073dd Merge #7850: perf: let CHECKDATASIG use the signature cache (pasta)
3759397 Merge #7833: fix: gate signing intake before quorum retrieval (pasta)
db98ee2 fix: keep flat-file positions 64-bit clean at the remaining raw seek/tell sites (Konstantin Akimov)
54c9738 Merge bitcoin#36667: net: enforce timeout interval for paused send peers (Konstantin Akimov)
f1adb2c Merge bitcoin#36665: sock: align exception monitoring between poll() and select() backends (Konstantin Akimov)
8becf6a Merge bitcoin#36669: refactor: store positions as a 64 bits integer in flatfiles (Konstantin Akimov)
4c0cbd6 fix(llmq): judge every sig-share sender by its own verified shares (pasta)
649259f fix(governance): cap the orphan parent objects re-requested per tick (pasta)
418f5ee fix(llmq): verify DKG contributions individually when a batch vvec check fails (pasta)
abf2eb0 fix(llmq): reject invalid decrypted DKG shares before aggregation (pasta)
39bda8f fix(consensus): reject negative transaction nVersion after DIP3 (pasta)
1ba2609 Merge #7951: fix(net): stop peers lingering after disconnect under edge-triggered epoll (pasta)
696d45f Merge #7861: feat: keep at least 4-days worth blocks after pruning (merge-script)
9cd1c72 Merge #7869: fix: let startup block replay handle quorum commitments and asset unlocks (pasta)
73e7254 Merge #7682: build: finish relic_conf.h regeneration before compiling BLS consumers (pasta)
7312925 ci: bake the macOS SDK into the CI runner image (pasta)
d885ecd Merge #7916: backport: bitcoin#27800, bitcoin#28125, bitcoin#28232, bitcoin#27695 (merge-script)
f55ad1d Merge bitcoin#28139: test: create wallet specific for test_locked_wallet case (DCG-Claude)
80f6cbe chore: add the v23.1.9 release entry to flatpak metainfo (pasta)
5ba801f chore: use translation source strings generated from v24.0.x (pasta)
a3b9e30 Merge #7974: chore: update man pages, translation strings, SECURITY.md and flatpak for v24.0.0 (pasta)
b5d26bd feat(consensus): schedule V24 and evo_shares on mainnet for November 9, 2026 (pasta)
fe78211 docs: state the earliest v24 activation height and the v23.1.9 fixes (pasta)
3bbe3e2 docs: address review of v24.0.0 release notes (pasta)
28c39fc docs: add v24.0.0 release notes and remove individual release notes files (pasta)
e8cbfaf docs: archive v23.1.8 and v23.1.9 release notes (pasta)
6c02b2b ci: let DEPENDS_ARCH override the machine arch for multiprocess and tsan (pasta)
ce5dbf3 Merge #7888: fix(consensus): canonical ExtNetInfo encoding and strict netInfo decoding (pasta)
54cba5c Merge #7537: fix: data races and check-then-act races in the CoinJoin server (pasta)
08d8bca Merge #7909: feat(mining): build the masternode list incrementally during block assembly (pasta)
5633761 Merge #7895: test: cover retroactive provider tx refusal, fix wording (pasta)
cbb9500 Merge #7846: fix: treat pending owner keys and Platform node IDs as one conflict namespace (pasta)
8efdf5e Merge #7857: fix: mine a pending ProUpServTx before a key change of its masternode (pasta)
e56e6ae Merge #7842: fix(wallet): reject mnemonic passphrases that seed derivation truncates (pasta)
79480ff test: follow-up for #7821: check if wallet is locked after failed upgrade instead creating brand-new scenario (Konstantin Akimov)
a56ed47 fix(net): announce sporks to new peers instead of requesting them during mnsync (pasta)
cdaea5f Merge #7894: fix: due to logical conflicts feature_pruning.py had been broken while (pasta)
98d92f6 Merge #7817: backport: partial bitcoin#34156 restore cleanup ownership (pasta)
35e6d18 Merge #7858: fix: do not InstantSend-lock provider transactions (pasta)
904d73d Merge #7881: fix: refuse to sign shared registrar updates that move the funder's coins (pasta)
95982f5 Merge #7782: fix(wallet): persist pending-observation coin locks once the record becomes readable (pasta)
cdf65d0 Merge #7836: backport: partial bitcoin#25812, bitcoin#29855 (pasta)
cc5716f Merge #7824: fix: retain initialized DKG sessions during inventory reads (pasta)
588e458 Merge #7827: backport: partial bitcoin#35984 (pasta)
795c6f1 Merge #7839: fix: release InstantSend tracking after mempool eviction (pasta)
dc1a6b2 Merge #7875: docs(rpc): clarify getchainlockbyheight availability (pasta)
e4798ff Merge #7876: fix(consensus): capture operator key scheme changes with unchanged bytes in state diffs (pasta)
fe68ecb Merge #7871: backport!: Merge bitcoin#27217: wallet: Replace use of purpose strings with an enum (pasta)
8348d22 Merge #7867: fix: refuse masternode list RPCs for blocks outside the active chain (pasta)
861a579 Merge #7866: fix: stop `masternode payments` at the genesis block (pasta)
efcef71 Merge #7521: fix: update masternode rate limit on failed governance trigger path (pasta)
0623182 Merge #7831: fix: bound governance object signatures and reset the governance cache (pasta)
b230657 Merge #7841: fix: authenticate cached InstantSend proof bytes (pasta)
a1f37ea Merge #7820: fix: hold chainstate lock during CoinJoin input validation (pasta)
50a5617 Merge #7829: fix: preserve wallet permissions when changing passphrases (pasta)
2ff0103 Merge #7818: fix: return REST errors for unavailable deployment data (pasta)
cb39369 Merge #7834: fix: validate Electrum import input boundaries (pasta)
e7e3daa Merge #7821: fix: relock encrypted wallets after HD upgrade failures (pasta)
2fea45f Merge #7792: fix: treat missing snapshots during evodb repair as repair errors (pasta)
3c5c039 Merge #7838: fix(wallet): authenticate unlock deadline extensions (pasta)
0bf80f8 Merge #7810: fix(rpc): handle unavailable masternode payment inputs (pasta)
bcefee4 Merge #7822: fix: reject malformed detached quorum share batches (pasta)
86a7737 Merge #7828: fix: omit recovery words from invalid mnemonic errors (pasta)
886d5c4 Merge #7816: fix: check credit pool amount accumulation (pasta)
00fc3b9 Merge #7851: fix(rpc): correct masternode status help for top-level service field (pasta)
0e75c22 Merge #7814: fix(qt): restore HTML escaping of send confirmation recipients (pasta)
fbe6526 Merge #7807: feat(consensus): hold EvoNode shares and multiple payouts behind a new evo_shares deployment (pasta)
57fd2d9 Merge #7776: fix: keep a pending ProUpServTx across a registrar update that keeps the operator key (pasta)
ca69801 Merge #7803: fix: return non-zero amount of accounts after sethdseed (pasta)
57a8f07 Merge #7796: backport: bitcoin#26720 (remaining), partial bitcoin#29523: weight-check the knapsack exact-match selection (pasta)
4eb82f6 Merge #7786: fix(net): keep a dedicated onion listener when -bind is given and correct the bind release note (pasta)
70626a0 Merge #7793: backport: partial bitcoin#28868 (wallet: reload wallet if migration exited early, keep mixed watchonly txs) (pasta)
250a3cd Merge #7790: fix: guard cached governance object flags with the object lock (pasta)
700c195 Merge #7787: fix: only sign EHF signals inside the deployment's start/timeout window (pasta)
a3b0f3c Merge #7785: fix: restore the txindex requirement when governance validation is enabled (pasta)
2d1735d Merge #7794: fix(wallet): floor the denomination gap threshold so rebalancing cannot oscillate (pasta)
d9f6592 Merge #7783: fix: stop fish completion from re-running the typed dash-cli command (pasta)
89d44c8 Merge #7795: backport: bitcoin#34272, partial bitcoin#31650 (pass PSBT by const reference in PSBTInputSignedAndVerified) (pasta)
a1d7411 Merge #7779: fix!: report legacy evonode Platform addresses when listdiff changes its address (pasta)
73f6ea2 Merge #7789: fix(qt): report malformed lang/font settings instead of aborting at startup (pasta)
40de493 Merge #7781: fix(rpc): use a consistent tip height in quorum dkgstatus (pasta)
7d1a90d Merge #7791: fix(net): request object votes from nPeersPerHashMax peers (pasta)
51b145c Merge #7778: test: use single-member in functional tests: feature_mnehf, feature_notifications, p2p_instantsend (pasta)

Pull request description:

  ## Issue being fixed or feature implemented
  Merges the v24.0.0 release back into develop, as the release process asks once `master` is fast-forwarded. `master`, `v24.0.x` and the signed `v24.0.0` tag all point to the same commit (938fba5).

  ## What was done?
  One merge commit of `master` into develop.

  `v24.0.x` was cut from develop, so all of its code is already here. Every commit on it that develop lacks by patch is one of these:
  - a `cherry-pick -x` of a develop commit;
  - covered by a develop PR: the index fixes by #8042, the mainnet V24 schedule by #7973, the cppcheck CI move by #7966;
  - release bookkeeping.

  Git reports conflicts in many files, because `v24.0.x` carries adapted copies of develop's changes. All of them resolve to develop's side, which keeps develop's code, translations and version (`configure.ac` stays at 24.1.0, `CLIENT_VERSION_IS_RELEASE` false).

  Taken from v24.0.0:
  - `doc/release-notes.md`: the v24.0.0 release notes. The v23.1.10 notes move to `doc/release-notes/dash/`.
  - The man pages regenerated for v24.0.0, replacing develop's older v24.0.0 pages. A few entries (`-prune`, `-par`, `-parbls`, `-maxconnections`) still trail develop's help text, as they did before, until the next regeneration.
  - `feature_addressindex.py`: the v24.0.x test that blocks orphaned while the address index is disabled are removed from it once it is re-enabled.

  Release notes:
  - Individual `doc/release-notes-*.md` files whose content is in the v24.0.0 notes are removed. This includes `release-notes-8018.md`, `release-notes-8029.md` and `release-notes-27114.md`, whose changes shipped in v24.0.0 without the files.
  - `release-notes-28113.md` and `release-notes-28414.md` also covered `descriptorprocesspsbt`, which only develop has. They are trimmed to that RPC instead of removed.
  - Notes for changes v24.0.0 doesn't include stay: #7812, #7847, #7860, #7862, bitcoin#25943, bitcoin#26485 and bitcoin#27501.

  ## How Has This Been Tested?
  macOS arm64 against depends, `--enable-debug --enable-werror --disable-hardening --without-gui`. `dashd`, `dash-cli` and `test_dash` build cleanly.

  - `src/` is byte-identical to develop's. The only non-doc change is the new `feature_addressindex.py` case.
  - Functional tests, all passing: `feature_addressindex.py` (with the new case) and `feature_spentindex.py`.
  - Unit suites, all passing: `txindex_tests`, `blockfilter_index_tests`, `coinstatsindex_tests`, `index_migration_tests`, `baseindex_tests`.
  - `lint-python.py`, `lint-whitespace.py`, `lint-includes.py` and `lint-circular-dependencies.py` pass.
  - An independent review checked every non-merge commit in `develop..master` against develop (by patch, by cherry-pick source, and line by line for the rest), re-merged each `v24.0.x` merge commit to look for content added in a merge, and checked each release-note file decision.

  I did not run the full functional suite locally; CI covers it.

  ## Breaking Changes
  None. Develop's code is unchanged; the only non-doc change is the new functional test case.

  ## Checklist:
  - [x] I have performed a self-review of my own code
  - [x] I have added or updated relevant unit/integration/functional/e2e tests
  - [x] I have made corresponding changes to the documentation
  - [x] I have assigned this pull request to a milestone _(if you have permission to set one)_

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

Top commit has no ACKs.

Tree-SHA512: 3c2d1b7d2885f983f1457a18920f42907009c8ca77522a6116739d387b011d8d5583da6a4b6a1227bcaa21fa07a7ef635aae58fb8b19e4f31a95582ee1ce2318
Fabcien added a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Nov 16, 2026
Summary:
Widen flatfile byte offsets from 32-bit to 64-bit (`FlatFilePos::nPos`,
`CBlockIndex` data/undo positions, and `CBlockFileInfo` size fields), and use
64-bit file positioning syscalls on Windows (`FileSeek64`, `_chsize_s`).

This is equivalent to [[bitcoin/bitcoin#36669 | core#36669]] but without the dependencies required for the backport. THis shouldn't interfere much when we later do the backports so it's fine.
Note that the on-disk format is unchanged since it uses varints.

Test Plan:
  ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D20957
mraksoll4 added a commit to dpowcore-project/dpowcoin that referenced this pull request Nov 18, 2026
…: private broadcast, flatfile/sock/net fixes, tx INV dedup, asmap, tests

bitcoin/pull/35878
bitcoin/pull/36312
bitcoin/pull/36309
bitcoin/pull/36665
bitcoin/pull/36667
bitcoin/pull/36669
bitcoin/pull/36199
bitcoin/pull/36201
bitcoin/pull/36177
bitcoin/pull/36218
bitcoin/pull/36045
bitcoin/pull/35937
bitcoin/pull/36599
bitcoin/pull/35168
bitcoin/pull/35914
bitcoin/pull/35978
bitcoin/pull/35908
bitcoin/pull/35928
bitcoin/pull/36377

- net_processing: process unique tx INVs only.
- net: private broadcast peers are no longer discouraged; private broadcast
  is marked experimental and the docs/RPC help scope their claims.
- flatfile/sock/net: file positions stored as 64-bit integers and 64-bit
  file positioning syscalls on Windows; exception monitoring aligned between
  poll() and select() backends; timeout interval enforced for paused send
  peers.
- net: RFC 9637 IPv6 documentation range treated as invalid, embedded asmap
  updated.
- proxy: network name case preserved in errors, "onion" used in help and
  examples.
- build/test/doc: avoid pipe2 on Darwin, Boost.Test signal stacks, LSAN
  options, ibd_wtxid getdata flake, m_blocks_unlinked LoadBlockIndex
  coverage, unused variable cleanups, openrc script, NetBSD/macOS build
  docs, BIP 461 in bips.md.
- release prep: example config updated for v31.2, version bumped to 31.3.0.

All of these are in official bitcoin/bitcoin 31.x.

Ported from bitcoin/bitcoin:
bitcoin/bitcoin@1278a5970d -- net_processing: process unique tx INVs only (Gregory Sanders)
bitcoin/bitcoin@eab6630add -- net: don't discourage private broadcast peers (Andrew Toth)
bitcoin/bitcoin@2630d8e6c9 -- doc: scope claims about private broadcast feature (Greg Sanders)
bitcoin/bitcoin@f413729983 -- private broadcast: mark feature as experimental (Greg Sanders)
bitcoin/bitcoin@1e0c407377 -- sock: align exception monitoring between poll() and select() backends (Antoine Poinsot)
bitcoin/bitcoin@cc2534cdf7 -- net: enforce timeout interval for paused send peers (Antoine Poinsot)
bitcoin/bitcoin@17556cb1f5 -- flatfile: store position as a 64 bits integer (Antoine Poinsot)
bitcoin/bitcoin@48092a9042 -- flatfile: use 64-bit file positioning syscalls in Windows (Antoine Poinsot)
bitcoin/bitcoin@e6c775c6d6 -- net: treat RFC 9637 new IPv6 documentation range as invalid (Fabian Jahr)
bitcoin/bitcoin@b48a27691d -- fuzz: assert invalid addresses are not routable (Fabian Jahr)
bitcoin/bitcoin@3c91db262b -- net: Update embedded asmap to 1788801420 (Fabian Jahr)
bitcoin/bitcoin@332c3e8e3e -- test: characterize proxy network name errors (Lőrinc)
bitcoin/bitcoin@b0375749d4 -- refactor: share proxy network parsing (Lőrinc)
bitcoin/bitcoin@fd65406b39 -- net: preserve network name case in proxy errors (Lőrinc)
bitcoin/bitcoin@6c7c27f615 -- doc: use onion in proxy help and examples (Lőrinc)
bitcoin/bitcoin@9c7748315d -- build: avoid pipe2 on Darwin (for now) (fanquake)
bitcoin/bitcoin@9eba3aafa6 -- test: avoid undersized Boost.Test signal stacks (Lőrinc)
bitcoin/bitcoin@fad9ab714b -- test: Append print_suppressions=0 to LSAN_OPTIONS, and suppress bitcoin-qt (MarcoFalke)
bitcoin/bitcoin@7777598f87 -- test: Fix intermittent timeout waiting for ibd_wtxid getdata (MarcoFalke)
bitcoin/bitcoin@3f44f9aef7 -- test: Add coverage for m_blocks_unlinked invariant in LoadBlockIndex (marcofleon)
bitcoin/bitcoin@da58e55986 -- test, refactor: Remove unused `warnings` in `wallet/test/util.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@fc28914de4 -- fuzz, refactor: Remove unused `linearization` in `cluster_linearize.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@3df0d067ad -- fuzz, refactor: Remove unused `random_string` in `locale.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@b7ae50e2e2 -- fuzz, refactor: Remove unused `header` in `p2p_transport_serialization.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@e50f422d25 -- test, refactor: Remove unused variables in `test/rbf_tests.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@e550945a39 -- test, refactor: Remove unused `removed_refs` in `txgraph_tests.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@422f1bd92f -- test, refactor: Remove unused `utxo_pool` in `coinselector_tests.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@3175d57628 -- test, refactor: Remove unused `error` in `wallet_tests.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@d837bb38a4 -- contrib/init: fix unused variables in openrc script (jpk68)
bitcoin/bitcoin@9b85c9814d -- doc: Drop GCC upgrade instructions for NetBSD (Hennadii Stepanov)
bitcoin/bitcoin@5964c7229f -- doc: Switch `pkg-config` package to modern `pkgconf` on NetBSD (Hennadii Stepanov)
bitcoin/bitcoin@222855ed11 -- doc: mention -DWITH_ZMQ=ON in macOS build guide (cyb3ralbert)
bitcoin/bitcoin@d57346d682 -- doc: add 461 (Deterministic ECDSA signatures with low-R grinding) to bips.md (Sebastian Falbesoner)
bitcoin/bitcoin@a48dd277ed -- doc: update example bitcoin.conf for v31.2 (fanquake)
bitcoin/bitcoin@bb5978023d -- build: bump version to v31.3 (fanquake)

Tree-SHA512: 91cbd45c614b2ea1bfbc47dbb66192ea61602b426dcd97c0a6851198969a86347b33e69852f0592131ae01e32ac0e76a4a90f2403eab934909116f664a2025fa
mraksoll4 added a commit to bitweb-project/bitweb that referenced this pull request Nov 19, 2026
…ep): private broadcast, versionbits, flatfile/sock/net fixes, tx INV dedup, asmap, tests

bitcoin/bitcoin/pull/35406
bitcoin/bitcoin/pull/35678
bitcoin/bitcoin/pull/35679
bitcoin/bitcoin/pull/35766
bitcoin/bitcoin/pull/35769
bitcoin/bitcoin/pull/34779
bitcoin/bitcoin/pull/35878
bitcoin/bitcoin/pull/36312
bitcoin/bitcoin/pull/36309
bitcoin/bitcoin/pull/36665
bitcoin/bitcoin/pull/36667
bitcoin/bitcoin/pull/36669
bitcoin/bitcoin/pull/36199
bitcoin/bitcoin/pull/36201
bitcoin/bitcoin/pull/36177
bitcoin/bitcoin/pull/36218
bitcoin/bitcoin/pull/36045
bitcoin/bitcoin/pull/35937
bitcoin/bitcoin/pull/36599
bitcoin/bitcoin/pull/35168
bitcoin/bitcoin/pull/35914
bitcoin/bitcoin/pull/35978
bitcoin/bitcoin/pull/35908
bitcoin/bitcoin/pull/35928
bitcoin/bitcoin/pull/36377

- private broadcast: outstanding txs limited to 10,000 with a new
  RPC_LIMIT_EXCEEDED error code, cs_main released between individual tx
  re-attempts, peers are no longer discouraged, feature marked experimental
  and docs/RPC help scope their claims.
- versionbits: live activation params and activation warnings limited per
  BIP 323, with test coverage and doc updates.
- net_processing: process unique tx INVs only.
- p2p: assume v2transport for addresses from seeds.
- flatfile/sock/net: file positions stored as 64-bit integers and 64-bit
  file positioning syscalls on Windows; exception monitoring aligned between
  poll() and select() backends; timeout interval enforced for paused send
  peers.
- net: RFC 9637 IPv6 documentation range treated as invalid, embedded asmap
  updated.
- proxy: network name case preserved in errors, "onion" used in help and
  examples.
- depends/build/test/doc: zeromq upstream patch, avoid pipe2 on Darwin,
  Boost.Test signal stacks, LSAN options, ibd_wtxid getdata flake,
  m_blocks_unlinked LoadBlockIndex coverage, fuzz Serialize/Deserialize
  cleanups, unused variable cleanups, openrc script, NetBSD/macOS build
  docs, BIP 323/461 in bips.md.
- release prep: example config updated for v31.2, version bumped to 31.3.0.

All of these are in official bitcoin/bitcoin 31.x.

Ported from bitcoin/bitcoin:
bitcoin/bitcoin@5aea3d0373 -- private broadcast: limit outstanding txs to count of 10,000 (Gregory Sanders)
bitcoin/bitcoin@cbf8c107c1 -- Release cs_main between individual private tx re-attempts (Greg Sanders)
bitcoin/bitcoin@82a02a2a22 -- rpc: define and use new RPC_LIMIT_EXCEEDED error code (stickies-v)
bitcoin/bitcoin@efa7f8c143 -- fuzz: Remove unused `DeserializeFromFuzzingInput` params overload (Hennadii Stepanov)
bitcoin/bitcoin@afab8d4225 -- fuzz, refactor: Remove `Serialize` overload (Hennadii Stepanov)
bitcoin/bitcoin@cf0f2aeae0 -- p2p: Assume v2transport for addresses from seeds (Martin Zumsande)
bitcoin/bitcoin@e446ea09c4 -- depends, zeromq: Apply upstream patch (Hennadii Stepanov)
bitcoin/bitcoin@f802edf57c -- versionbits: Limit live activation params and activation warnings per BIP323 (Anthony Towns)
bitcoin/bitcoin@1d5240574a -- qa: test we don't warn for ignored unknown version bits deployments (Antoine Poinsot)
bitcoin/bitcoin@107d4178d9 -- versionbits: update VersionBitsCache doc comment to match current behaviour (Antoine Poinsot)
bitcoin/bitcoin@94e3ac0b21 -- doc: bips doc update (release notes part not ported) (Antoine Poinsot)
bitcoin/bitcoin@1278a5970d -- net_processing: process unique tx INVs only (Gregory Sanders)
bitcoin/bitcoin@eab6630add -- net: don't discourage private broadcast peers (Andrew Toth)
bitcoin/bitcoin@2630d8e6c9 -- doc: scope claims about private broadcast feature (Greg Sanders)
bitcoin/bitcoin@f413729983 -- private broadcast: mark feature as experimental (Greg Sanders)
bitcoin/bitcoin@1e0c407377 -- sock: align exception monitoring between poll() and select() backends (Antoine Poinsot)
bitcoin/bitcoin@cc2534cdf7 -- net: enforce timeout interval for paused send peers (Antoine Poinsot)
bitcoin/bitcoin@17556cb1f5 -- flatfile: store position as a 64 bits integer (Antoine Poinsot)
bitcoin/bitcoin@48092a9042 -- flatfile: use 64-bit file positioning syscalls in Windows (Antoine Poinsot)
bitcoin/bitcoin@e6c775c6d6 -- net: treat RFC 9637 new IPv6 documentation range as invalid (Fabian Jahr)
bitcoin/bitcoin@b48a27691d -- fuzz: assert invalid addresses are not routable (Fabian Jahr)
bitcoin/bitcoin@3c91db262b -- net: Update embedded asmap to 1788801420 (Fabian Jahr)
bitcoin/bitcoin@332c3e8e3e -- test: characterize proxy network name errors (Lőrinc)
bitcoin/bitcoin@b0375749d4 -- refactor: share proxy network parsing (Lőrinc)
bitcoin/bitcoin@fd65406b39 -- net: preserve network name case in proxy errors (Lőrinc)
bitcoin/bitcoin@6c7c27f615 -- doc: use onion in proxy help and examples (Lőrinc)
bitcoin/bitcoin@9c7748315d -- build: avoid pipe2 on Darwin (for now) (fanquake)
bitcoin/bitcoin@9eba3aafa6 -- test: avoid undersized Boost.Test signal stacks (Lőrinc)
bitcoin/bitcoin@fad9ab714b -- test: Append print_suppressions=0 to LSAN_OPTIONS, and suppress bitcoin-qt (MarcoFalke)
bitcoin/bitcoin@7777598f87 -- test: Fix intermittent timeout waiting for ibd_wtxid getdata (MarcoFalke)
bitcoin/bitcoin@3f44f9aef7 -- test: Add coverage for m_blocks_unlinked invariant in LoadBlockIndex (marcofleon)
bitcoin/bitcoin@da58e55986 -- test, refactor: Remove unused `warnings` in `wallet/test/util.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@fc28914de4 -- fuzz, refactor: Remove unused `linearization` in `cluster_linearize.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@3df0d067ad -- fuzz, refactor: Remove unused `random_string` in `locale.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@b7ae50e2e2 -- fuzz, refactor: Remove unused `header` in `p2p_transport_serialization.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@e50f422d25 -- test, refactor: Remove unused variables in `test/rbf_tests.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@e550945a39 -- test, refactor: Remove unused `removed_refs` in `txgraph_tests.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@422f1bd92f -- test, refactor: Remove unused `utxo_pool` in `coinselector_tests.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@3175d57628 -- test, refactor: Remove unused `error` in `wallet_tests.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@d837bb38a4 -- contrib/init: fix unused variables in openrc script (jpk68)
bitcoin/bitcoin@9b85c9814d -- doc: Drop GCC upgrade instructions for NetBSD (Hennadii Stepanov)
bitcoin/bitcoin@5964c7229f -- doc: Switch `pkg-config` package to modern `pkgconf` on NetBSD (Hennadii Stepanov)
bitcoin/bitcoin@222855ed11 -- doc: mention -DWITH_ZMQ=ON in macOS build guide (cyb3ralbert)
bitcoin/bitcoin@d57346d682 -- doc: add 461 (Deterministic ECDSA signatures with low-R grinding) to bips.md (Sebastian Falbesoner)
bitcoin/bitcoin@a48dd277ed -- doc: update example bitcoin.conf for v31.2 (fanquake)
bitcoin/bitcoin@bb5978023d -- build: bump version to v31.3 (fanquake)

Local adjustments (not from upstream):
- node/blockstorage.cpp: BACKPORT comment for the m_blocks_unlinked dedup
  corrected; the BLOCK_HAVE_DATA guard is already in official 31.x, only
  the AddUnlinkedBlock dedup remains unmerged.
- test/util/time.h: typo fixed in the FakeNodeClock BACKPORT comment.
- private_broadcast.h: removed the stale BACKPORT marker for the TxSendStatus
  changes, now in official 31.x.

Tree-SHA512: 0afeda49b755a50ff21487839b8bc8da6010136a0431ac9015aa3bd9106721a88a6d86aa8607a282c92f61757a4bf7959ab28d049276d09b8429f84c1e7e4066
mraksoll4 added a commit to bitweb-project/bitweb that referenced this pull request Nov 19, 2026
…prep): private broadcast, versionbits, flatfile/sock/net fixes, tx INV dedup, asmap, tests

bitcoin/bitcoin/pull/35406
bitcoin/bitcoin/pull/35678
bitcoin/bitcoin/pull/35679
bitcoin/bitcoin/pull/35766
bitcoin/bitcoin/pull/35769
bitcoin/bitcoin/pull/34779
bitcoin/bitcoin/pull/35878
bitcoin/bitcoin/pull/36312
bitcoin/bitcoin/pull/36309
bitcoin/bitcoin/pull/36665
bitcoin/bitcoin/pull/36667
bitcoin/bitcoin/pull/36669
bitcoin/bitcoin/pull/36199
bitcoin/bitcoin/pull/36201
bitcoin/bitcoin/pull/36177
bitcoin/bitcoin/pull/36218
bitcoin/bitcoin/pull/36045
bitcoin/bitcoin/pull/35937
bitcoin/bitcoin/pull/36599
bitcoin/bitcoin/pull/35168
bitcoin/bitcoin/pull/35914
bitcoin/bitcoin/pull/35978
bitcoin/bitcoin/pull/35908
bitcoin/bitcoin/pull/35928
bitcoin/bitcoin/pull/36377

- private broadcast: outstanding txs limited to 10,000 with a new
  RPC_LIMIT_EXCEEDED error code, cs_main released between individual tx
  re-attempts, peers are no longer discouraged, feature marked experimental
  and docs/RPC help scope their claims.
- versionbits: live activation params and activation warnings limited per
  BIP 323, with test coverage and doc updates.
- net_processing: process unique tx INVs only.
- p2p: assume v2transport for addresses from seeds.
- flatfile/sock/net: file positions stored as 64-bit integers and 64-bit
  file positioning syscalls on Windows; exception monitoring aligned between
  poll() and select() backends; timeout interval enforced for paused send
  peers.
- net: RFC 9637 IPv6 documentation range treated as invalid, embedded asmap
  updated.
- proxy: network name case preserved in errors, "onion" used in help and
  examples.
- depends/build/test/doc: zeromq upstream patch, avoid pipe2 on Darwin,
  Boost.Test signal stacks, LSAN options, ibd_wtxid getdata flake,
  m_blocks_unlinked LoadBlockIndex coverage, fuzz Serialize/Deserialize
  cleanups, unused variable cleanups, openrc script, NetBSD/macOS build
  docs, BIP 323/461 in bips.md.
- release prep: example config updated for v31.2, version bumped to 31.3.0.

All of these are in official bitcoin/bitcoin 31.x.

Ported from bitcoin/bitcoin:
bitcoin/bitcoin@5aea3d0373 -- private broadcast: limit outstanding txs to count of 10,000 (Gregory Sanders)
bitcoin/bitcoin@cbf8c107c1 -- Release cs_main between individual private tx re-attempts (Greg Sanders)
bitcoin/bitcoin@82a02a2a22 -- rpc: define and use new RPC_LIMIT_EXCEEDED error code (stickies-v)
bitcoin/bitcoin@efa7f8c143 -- fuzz: Remove unused `DeserializeFromFuzzingInput` params overload (Hennadii Stepanov)
bitcoin/bitcoin@afab8d4225 -- fuzz, refactor: Remove `Serialize` overload (Hennadii Stepanov)
bitcoin/bitcoin@cf0f2aeae0 -- p2p: Assume v2transport for addresses from seeds (Martin Zumsande)
bitcoin/bitcoin@e446ea09c4 -- depends, zeromq: Apply upstream patch (Hennadii Stepanov)
bitcoin/bitcoin@f802edf57c -- versionbits: Limit live activation params and activation warnings per BIP323 (Anthony Towns)
bitcoin/bitcoin@1d5240574a -- qa: test we don't warn for ignored unknown version bits deployments (Antoine Poinsot)
bitcoin/bitcoin@107d4178d9 -- versionbits: update VersionBitsCache doc comment to match current behaviour (Antoine Poinsot)
bitcoin/bitcoin@94e3ac0b21 -- doc: bips doc update (release notes part not ported) (Antoine Poinsot)
bitcoin/bitcoin@1278a5970d -- net_processing: process unique tx INVs only (Gregory Sanders)
bitcoin/bitcoin@eab6630add -- net: don't discourage private broadcast peers (Andrew Toth)
bitcoin/bitcoin@2630d8e6c9 -- doc: scope claims about private broadcast feature (Greg Sanders)
bitcoin/bitcoin@f413729983 -- private broadcast: mark feature as experimental (Greg Sanders)
bitcoin/bitcoin@1e0c407377 -- sock: align exception monitoring between poll() and select() backends (Antoine Poinsot)
bitcoin/bitcoin@cc2534cdf7 -- net: enforce timeout interval for paused send peers (Antoine Poinsot)
bitcoin/bitcoin@17556cb1f5 -- flatfile: store position as a 64 bits integer (Antoine Poinsot)
bitcoin/bitcoin@48092a9042 -- flatfile: use 64-bit file positioning syscalls in Windows (Antoine Poinsot)
bitcoin/bitcoin@e6c775c6d6 -- net: treat RFC 9637 new IPv6 documentation range as invalid (Fabian Jahr)
bitcoin/bitcoin@b48a27691d -- fuzz: assert invalid addresses are not routable (Fabian Jahr)
bitcoin/bitcoin@3c91db262b -- net: Update embedded asmap to 1788801420 (Fabian Jahr)
bitcoin/bitcoin@332c3e8e3e -- test: characterize proxy network name errors (Lőrinc)
bitcoin/bitcoin@b0375749d4 -- refactor: share proxy network parsing (Lőrinc)
bitcoin/bitcoin@fd65406b39 -- net: preserve network name case in proxy errors (Lőrinc)
bitcoin/bitcoin@6c7c27f615 -- doc: use onion in proxy help and examples (Lőrinc)
bitcoin/bitcoin@9c7748315d -- build: avoid pipe2 on Darwin (for now) (fanquake)
bitcoin/bitcoin@9eba3aafa6 -- test: avoid undersized Boost.Test signal stacks (Lőrinc)
bitcoin/bitcoin@fad9ab714b -- test: Append print_suppressions=0 to LSAN_OPTIONS, and suppress bitcoin-qt (MarcoFalke)
bitcoin/bitcoin@7777598f87 -- test: Fix intermittent timeout waiting for ibd_wtxid getdata (MarcoFalke)
bitcoin/bitcoin@3f44f9aef7 -- test: Add coverage for m_blocks_unlinked invariant in LoadBlockIndex (marcofleon)
bitcoin/bitcoin@da58e55986 -- test, refactor: Remove unused `warnings` in `wallet/test/util.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@fc28914de4 -- fuzz, refactor: Remove unused `linearization` in `cluster_linearize.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@3df0d067ad -- fuzz, refactor: Remove unused `random_string` in `locale.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@b7ae50e2e2 -- fuzz, refactor: Remove unused `header` in `p2p_transport_serialization.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@e50f422d25 -- test, refactor: Remove unused variables in `test/rbf_tests.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@e550945a39 -- test, refactor: Remove unused `removed_refs` in `txgraph_tests.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@422f1bd92f -- test, refactor: Remove unused `utxo_pool` in `coinselector_tests.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@3175d57628 -- test, refactor: Remove unused `error` in `wallet_tests.cpp` (Hennadii Stepanov)
bitcoin/bitcoin@d837bb38a4 -- contrib/init: fix unused variables in openrc script (jpk68)
bitcoin/bitcoin@9b85c9814d -- doc: Drop GCC upgrade instructions for NetBSD (Hennadii Stepanov)
bitcoin/bitcoin@5964c7229f -- doc: Switch `pkg-config` package to modern `pkgconf` on NetBSD (Hennadii Stepanov)
bitcoin/bitcoin@222855ed11 -- doc: mention -DWITH_ZMQ=ON in macOS build guide (cyb3ralbert)
bitcoin/bitcoin@d57346d682 -- doc: add 461 (Deterministic ECDSA signatures with low-R grinding) to bips.md (Sebastian Falbesoner)
bitcoin/bitcoin@a48dd277ed -- doc: update example bitcoin.conf for v31.2 (fanquake)
bitcoin/bitcoin@bb5978023d -- build: bump version to v31.3 (fanquake)

Local adjustments (not from upstream):
- node/blockstorage.cpp: BACKPORT comment for the m_blocks_unlinked dedup
  corrected; the BLOCK_HAVE_DATA guard is already in official 31.x, only
  the AddUnlinkedBlock dedup remains unmerged.
- test/util/time.h: typo fixed in the FakeNodeClock BACKPORT comment.
- private_broadcast.h: removed the stale BACKPORT marker for the TxSendStatus
  changes, now in official 31.x.

Tree-SHA512: 0afeda49b755a50ff21487839b8bc8da6010136a0431ac9015aa3bd9106721a88a6d86aa8607a282c92f61757a4bf7959ab28d049276d09b8429f84c1e7e4066
yamada-guro-baru pushed a commit to monacoinproject/monacoin that referenced this pull request Nov 20, 2026
Backport of bitcoin/bitcoin#36669 (17556cb1f5, 48092a9042), the fix for
CVE-2026-117346, adapted to this tree.

Block files are limited to 128 MiB, but undo files have no size limit:
the undo data of all the blocks in a block file goes to the same undo file,
and the undo data of a block can be much larger than the block itself. The
positions in undo files were stored in 32-bit integers. Past 4 GiB a
position would wrap, and new undo data would overwrite older undo data,
which would make the node shut down when it needs that data for a reorg.
Recovering from that needs a reindex.

On Windows, long is 32 bits, so ftell() and fseek() could not go past
2 GiB, and _chsize() could not truncate a file past it.

- Store the positions and sizes in FlatFilePos, CBlockIndex and
  CBlockFileInfo as uint64_t. They are serialized as VARINTs, so the data on
  disk does not change for the positions that fitted in 32 bits.
- Use 64-bit file positioning functions on Windows (FileSeek64(),
  FileTell64(), _chsize_s()).

As in Bitcoin Core, 32-bit systems, where long is 32 bits as well, are not
fixed by this.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01843SxaoM7SrbdbSHDH9bXb
BitcoincashII added a commit to BitcoincashII/bitcoincashII-core that referenced this pull request Nov 26, 2026
…coin#36669)

Backport of bitcoin/bitcoin#36669:
  17556cb1f flatfile: store position as a 64 bits integer
  48092a904 flatfile: use 64-bit file positioning syscalls in Windows
(29.x backports 5c99cb674 and b2994bd0f).

FlatFilePos::nPos, CBlockFileInfo::nSize/nUndoSize and
CBlockIndex::nDataPos/nUndoPos are 64-bit. All of these are serialized
as VARINTs, so the on-disk format does not change.

BCH2 adaptations:
- The per-block paths are widened too: UndoWriteToDisk computes the undo
  size as uint64_t and FindUndoPos takes a uint64_t size. The 4-byte
  size field of the undo record header is informational only (undo data
  is located through nUndoPos and checked by its hash), so it is
  saturated at 0xffffffff.
- UndoWriteToDisk and WriteBlockToDisk use FileTell64; AutoFile's XOR
  position lookups use FileTell64 (v27's AutoFile has no Truncate/seek
  to convert).
- FileSeek64/FileTell64 use fseeko/ftello on non-Windows hosts, so
  32-bit hosts (configure sets _FILE_OFFSET_BITS=64) also handle
  positions past 2 GiB.
- AllocateFileRange takes a 64-bit length.
- Upstream's flatfile.h hunk applied by hand (v27 FlatFilePos differs).

Tests (new): flatfile_pos_64bit, flatfile_open_past_4gib (not on
Windows) and blockmanager_64bit_positions.
cdonnachie added a commit to AvianNetwork/Avian that referenced this pull request Nov 28, 2026
… 64-bit file positions, paused send timeout, duplicate INVs (#296)

* sock: align exception monitoring between poll() and select() backends

The select() backend, which Windows and macOS use, put every socket into
the exception set, whatever was asked of it. A peer whose receive side is
paused is waited on for sending only, and TCP urgent data then showed as an
error event; the socket handler reads on an error event, so the pause did
not hold and what was read was kept without bound. poll(), which Linux
uses, has no such case.

The exception set is now filled only for a socket that is waited on for
reading, and a socket nothing is asked of is left out of the call.

Backport of Bitcoin Core 30.4 commit d4a065bf0fab, by Antoine Poinsot.

Github-Pull: bitcoin/bitcoin#36665
Rebased-From: 1e0c407377034e9cbb4d52f1f534c06cdf202a36

* net: only use the select error set while connecting

After the change before this one a socket waited on for reading is still in
the exception set of select(). With urgent data pending on it the wait
returns at once, every time, with nothing for recv() to return: the socket
handler spins for as long as the byte is there.

Windows needs the exception set for one thing, a failed non-blocking
connect(), which it reports nowhere else. So ERR becomes an event that can
be asked for, ConnectToSocket() asks for it, and every other wait leaves the
set empty. With select() a socket waited on without ERR no longer reports
exceptional conditions; a closed or failed connection is seen by the read
that follows, as before. No change with poll().

The Stratum v2 listener disconnects a client on ERR. On Windows and macOS it
now finds a broken connection through recv(), like the P2P handler.

A unit test sends an urgent byte and checks that a wait for reading does
not report an error. Run on Linux with sock.cpp built for select(): it fails
on the code as it was and on the change before this one, and passes here.

Port of Bitcoin Core commit 97e3c9562, by Cory Fields, Vasil Dimov and
Antoine Poinsot, to the event names of 30.x.

Github-Pull: bitcoin/bitcoin#36716
Rebased-From: 97e3c9562291f5bbc2b03fef1c70e4975eb2a8c6

* flatfile: store positions as 64-bit integers

A position in a block or undo file was an unsigned int. Block files are
capped at 128 MiB, undo files are not: the undo data of the blocks of one
block file go into one undo file, and blocks that spend many large outputs
have far more undo data than block data. Past 4 GiB the position wrapped,
and on Windows fseek() takes a 32-bit long and failed from 2 GiB.

The position, the sizes kept per file and the offsets in the block index
are 64 bits wide, and seeking and truncating use the 64-bit calls on
Windows. Positions are written as varints, so nothing on disk changes.

Avian's own part: ReadRawBlock() computed the header position with a
brace-initialized int64_t, which does not take a uint64_t; it casts now.
Compiling the files that handle these positions with -Wshorten-64-to-32
before and after shows no place where a position is cut back to 32 bits.

Backport of Bitcoin Core 30.4 commits adb363c753ee and a9e7b35d06af, by
Antoine Poinsot.

Github-Pull: bitcoin/bitcoin#36669
Rebased-From: 17556cb1f52fcbc807f65245101f72e8ec1573d8
Rebased-From: 48092a9042d8fcfd6bb7ae5911a1d53b8746d546

* net: enforce timeout interval for paused send peers

A peer that does not read leaves the send buffer over its limit, and the
node stops queueing replies for it but goes on queueing announcements. The
time the buffer went over the limit is now kept, and a peer that has not
brought it back under within 20 minutes is disconnected.

In Bitcoin Core the peer that could stay in that state was one too old to
be asked for a pong. Avian refuses peers below protocol version 70033, all
of which answer pings, so the ping timeout already ends such a connection
here. The change is taken to keep the bound explicit and the code in step
with 30.x.

Backport of Bitcoin Core 30.4 commit 96b53721763e, by Antoine Poinsot.

Github-Pull: bitcoin/bitcoin#36667
Rebased-From: cc2534cdf7b14d0f1a18928ebaab7f7fdd7e839e

* net_processing: process unique tx INVs only

An inv message may name the same transaction up to 50,000 times, and each
entry was handled as if it were new. Entries are now passed over once their
hash has been seen in the message, txids and wtxids apart.

In Bitcoin Core the costly case is a wtxid announcement of an orphan, which
looks at every missing parent each time. Avian does not negotiate wtxid
relay and ignores wtxid announcements, so that path is not reached today;
it would be once wtxid relay is turned on.

The functional test of the upstream change is left out: it needs wtxid
relay, and the functional suite is not localized. Its txid cases were run
against a regtest node with the P2P layer of the framework set to Avian's
magic and version: one announcement per transaction with this change, two
on 5.0.6.

Backport of Bitcoin Core 30.5 commit 1bb5289d48c1, by Gregory Sanders.

Github-Pull: bitcoin/bitcoin#35878
Rebased-From: 1278a5970d5ada0979052a5bad899e896b8ab40b

* doc: release notes for the network fixes taken from Bitcoin Core 30.4 and 30.5
pzafonte added a commit to pzafonte/rust-bitcoinkernel that referenced this pull request Dec 3, 2026
…3f6397bb9

2f3f6397bb9 Merge bitcoin/bitcoin#37045: lint: Fix check-doc.py with spaces in paths
19209e52063 Merge bitcoin/bitcoin#36734: net: Do not add transaction reported as TX_CONSENSUS to the extrapool
2c0b8c4efc5 Merge bitcoin/bitcoin#36978: rpc: require a hex string for OP_RETURN data
d95dfa64e03 Merge bitcoin/bitcoin#37047: fuzz: unpoison argc/argv in LLVMFuzzerInitialize under MSan
8bb33f349e6 Merge bitcoin/bitcoin#36998: fuzz: DisableNextWrite in mempool targets
6f3bdf52b9b Merge bitcoin/bitcoin#37022: test: cover batched NOTFOUND fallback in p2p_tx_download.py
3a89a6a2a64 Merge bitcoin/bitcoin#37033: rpc: remove duplicate `avgfeerate` key in `getblockstats`
e9017473756 Merge bitcoin/bitcoin#37051: test: fix block file integrity check in feature_blocksxor.py
e4426584148 fuzz: unpoison argc/argv in LLVMFuzzerInitialize under MSan
6fb33164bc3 Merge bitcoin/bitcoin#37075: test: fix port collision in feature_torcontrol.py
0bc1e88dd33 Merge bitcoin/bitcoin#36758: rpc: handle malformed jsonrpc 2.0 requests correctly
9b28baef959 test: fix port collision in feature_torcontrol.py
8e5a5a25dad Merge bitcoin/bitcoin#36996: fuzz: fix timelock range in miniscript_smart
219c5c8ef79 test: fix block file integrity check in feature_blocksxor.py
3a9356cd974 lint: Fix check-doc.py with spaces in paths
e3a72a37443 Merge bitcoin/bitcoin#37008: cmake: Always disable `install_name_tool` search in macOS cross-builds
43236b86c28 Merge bitcoin/bitcoin#36952: doc: AssertUnreachable and NONFATAL_UNREACHABLE
590b74987f9 Merge bitcoin/bitcoin#36759: torcontrol: Improve connection logging
22d03bf4e61 rpc: inline SetHasKeys as a lambda in getblockstats
f41029ce205 rpc: remove duplicate avgfeerate key in getblockstats
cc27c50e87f Merge bitcoin/bitcoin#37040: test: fix private key check in wallet_listdescriptors.py
d397874563f Merge bitcoin/bitcoin#36981: depends: disable unused IPC accept filters in zeromq
1b24b4f3013 Merge bitcoin/bitcoin#36855: rpc: Deprecate watchonly wallet no-op named options
0fb48fe30ed cmake: Always disable `install_name_tool` search in macOS cross-builds
966e9800e84 Merge bitcoin/bitcoin#36940: mining: handle negative and NaN wait timeouts
28a77a4b0af test: fix private key check in wallet_listdescriptors.py
5c4e8374074 Merge bitcoin/bitcoin#36838: guix: backport oscrypto PBKDF2 timing fix
1575462b22b guix: backport oscrypto PBKDF2 timing fix
2e5d7540a1d Merge bitcoin/bitcoin#36923: test: construct `miniminer_tests` inputs/outputs declaratively
afa492e2338 Merge bitcoin/bitcoin#36988: guix: replace search-our-patches with local-file
fe1c21a54fa Merge bitcoin/bitcoin#36876: GUARDED_BY annotations for nTx, m_chain_tx_count
13eee77d0d7 guix: replace search-our-patches with local-file
693f5b302e7 test: cover batched NOTFOUND fallback in p2p_tx_download.py
1ea904d983f Merge bitcoin/bitcoin#37020: rpc: fix `getmempoolfeeratediagram` result description
376c0a02b40 Merge bitcoin/bitcoin#36961: ci: enable `readability-redundant-access-specifiers`
d293ef600db doc: add release note for rejected IPC wait timeouts
483ed3be8d1 Merge bitcoin/bitcoin#37010: test: fix no-immediate-response check in p2p_orphan_handling.py
0b17fa0ac10 rpc: fix getmempoolfeeratediagram result description
2f7a0750ef2 GUARDED_BY annotations for CBlockIndex's nTx, m_chain_tx_count
8e09dc7bf97 Merge bitcoin/bitcoin#37007: refactor: Add missing explicit instantiations of function templates
0790f68d867 Merge bitcoin/bitcoin#37011: test: fix input check of bumped tx in wallet_spend_unconfirmed.py
5b43f22f18a test: fix input check of bumped tx in wallet_spend_unconfirmed.py
a62be857f4d test: fix no-immediate-response check in p2p_orphan_handling.py
7ec6081ecab refactor: Add missing explicit instantiations of function templates
afedb19cca4 Merge bitcoin/bitcoin#37000: docs: update asmap-data URL with new github org
cd88fbd6433 docs: update asmap-data URL with new github org
2d8410dd633 fuzz: DisableNextWrite in mempool targets
54be7fb7e17 fuzz: fix timelock range in miniscript_smart
58e9d98f311 Merge bitcoin/bitcoin#36818: seeds: drop 21.ninja as a makeseeds source
b8db55c205d Merge bitcoin/bitcoin#36957: doc: add 389 (multipath) and 394 (rawtr) to bips.md
0629982adad Merge bitcoin/bitcoin#36916: test: avoid BSD ephemeral-port collisions in HTTP clients
09586041180 Merge bitcoin/bitcoin#36921: test: fix `mining_prioritisetransaction` check that always passes
525d69e3f9c mining: reject negative and NaN wait timeouts from IPC clients
44dbc7c8352 test: add check_order option to wait_and_do
dd96035e031 Merge bitcoin/bitcoin#36895: Keep witness stacks in serialized form in CScriptWitness
859de22565f Merge bitcoin/bitcoin#36967: lint: check copyright headers
63a3c03235b Merge bitcoin/bitcoin#36716: net: only monitor select exceptions while connecting
4ec95781e0c torcontrol: Warn about failed connections only if Tor control is configured
0e8f70a8631 Merge bitcoin/bitcoin#34193: wallet: make migration more robust against failures
98687dd5ba7 Merge bitcoin/bitcoin#35765: depends: keep local source archives in WORK_PATH
b19f0dafe61 Merge bitcoin/bitcoin#36958: test: drop `jinja2` dependency from `combine_logs.py`
c77b42d50ef Merge bitcoin/bitcoin#36709: guix: compute --build triplet when lowering, not at load time
5ba05739881 Merge bitcoin/bitcoin#36982: test: handle mainnet logs in `combine_logs.py`
97e3c956229 net: only use the select error set while connecting
801b7e82b45 lint: add copyright header linter
e743b8ed385 contrib: add shebang to asmap.py
f206c658528 refactor: add or fix copyright headers
3bed3cf56f1 test: drop --html option from combine_logs.py
ead7fb7a0fa test: drop jinja2 dependency from combine_logs.py
4e1dc2e0151 test: handle mainnet logs in combine_logs.py
b34dbdff71e depends: disable unused IPC accept filters in zeromq
4cf0f7c80cd Merge bitcoin/bitcoin#36950: test, bench: construct inputs/outputs declaratively in descriptor, bip352, group_outputs and ephemeral spends
f0518a30afb rpc: require a hex string for OP_RETURN data
56fa33eac63 doc: add release note for the reduced memory usage of witnesses
150002be68e script: store witness stacks as their serialization
3fca9597f0d span: add SameSpan
519aa85b6b7 script: remove CScriptWitness's old interface
77f8bac8a0e test, bench, fuzz: build witness stacks before constructing a CScriptWitness
5fc4db08a8f refactor: use CScriptWitness's interface where that needs more than a rename
68b0ae9d9b3 policy: iterate over witness stacks directly in IsWitnessStandard
0f1253eb5a6 script: build the witness execution stack with ToVectors()
0e317e2ab5d script: let ExecuteWitnessScript take its initial stack by value
e294e2812ac scripted-diff: replace witnesses as a whole instead of their stack
ce3c41bc3e8 scripted-diff: serialize CScriptWitness rather than its stack
afc3248f6b0 scripted-diff: read and compare CScriptWitness through its interface
a2230b147be scripted-diff: use CScriptWitness's size(), empty() and back()
4be65959983 test: check CScriptWitness against the vector of vectors it represents
fa34694a431 script: give CScriptWitness an interface that hides its representation
47187d8163a Merge bitcoin/bitcoin#36966: bench: fix `InputType` ODR violation
faab663f38a doc: Fix a typo in a wallet doc
fa347c99c1d test: remove stale -deprecatedrpc=removeprunedfunds
fae4ae54509 rpc: Deprecate watchonly wallet no-op named options
edcac28380b Merge bitcoin/bitcoin#36830: test: make `tx_mempool_block_doublespend` cases independent
5b4baa8dada bench: construct mempool_ephemeral_spends inputs/outputs declaratively
7352a745df5 test: construct group_outputs_tests output declaratively
3e4c803da8b Merge bitcoin/bitcoin#36109: test: fix coinbases built on arbitrary parents
c4112b4e473 Merge bitcoin/bitcoin#36293: contrib: exclude inactive keys from the binary quorum by default
399a5a38058 test: migrate a wallet with a leftover journal at its location
42131a81fdc test: migrate wallet located on a different filesystem
b8ef499909b wallet: migration, make sqlite creation robust against failures
e3a5a48a035 wallet: migration, add MigrationFilePrefix() helper
b6b2f9f12b1 wallet: use RunWithinTxn within MigrateToSQLite
cf5e6803f07 wallet: fail migration gracefully on non-writable wallets
84a9f486475 wallet: migration, restore backup if an exception is thrown
3a9ba874bb7 wallet: migration, handle exceptions during wallet creation
edbf3b62a2c wallet: migration, unify watchonly and solvables wallets creation
74f3ed9021e Merge bitcoin/bitcoin#36936: ci: add `CMAKE_LINK_WARNING_AS_ERROR` to macOS jobs
41c4df2eee6 test: avoid BSD ephemeral-port collisions in HTTP clients
66654bc5ce9 ci: add CMAKE_INTERPROCEDURAL_OPTIMIZATION to Alpine job
307b22b59d4 bench: put InputType enums in anonymous namespaces
bb84842234f Merge bitcoin/bitcoin#36782: doc: fix comments referring to nonexistent functions
01edf546595 Merge bitcoin/bitcoin#34909: wallet, refactor: modularise wallet by extracting out legacy wallet migration
c1cdf8dd5bd ci: add CMAKE_LINK_WARNING_AS_ERROR to native macOS jobs
4457a7d311c tidy: enable readability-redundant-access-specifiers
e520e4c1f4b qt: NOLINT redundant access specifiers around Q_SLOTS
e7862c5f1af refactor: drop redundant access specifiers
5301fdbdc72 doc: add 389 (multipath) and 394 (rawtr) to bips.md
85378534786 doc: fix comments referring to renamed members and functions
dbe9eacd17a Merge bitcoin/bitcoin#36773: doc: fix up some release notes
9fa6aa501f3 Merge bitcoin/bitcoin#36908: mining: avoid checkBlock crash when chain has no tip
faab9adae42 doc: AssertUnreachable and NONFATAL_UNREACHABLE
08ca210a921 Merge bitcoin/bitcoin#36863: test: fix wallet tests that check the wrong wallet
3294adfa451 Merge bitcoin/bitcoin#35756: cmake: De-duplicate libraries where possible
9c73fc80883 Merge bitcoin/bitcoin#35474: node: move index ownership to NodeContext
9fd8e543b3c wallet, refactor: rename file from migrate to legacybdb
f726ef740fa wallet: extract out migration specific LegacySPKM CWallet methods
e8165d53319 wallet: extract out public facing MigrateLegacyToDescriptor functions
156249d75e0 wallet: extract out utility functions from wallet/wallet to wallet/walletutil.h
5c8b0872b62 wallet: (move-only) extract out migration specific CWallet methods
73e8c18841e test: construct descriptor_tests spend transaction declaratively
19128e8b775 Merge bitcoin/bitcoin#36924: test: Speed up interface_ipc_mining.py and fix large timeout-factor bug
442b152c8b0 Merge bitcoin-core/gui#947: Update RPC console wallet when the active wallet changes
0afaa7311be Merge bitcoin/bitcoin#36704: doc: fix docs and enable `-Wdocumentation-pedantic`
e8b442c7610 build: enable -Wdocumentation-pedantic
038388724f4 doc: spell out escape sequences in doxygen comments
f3ce77ca5bd doc: use @param and @return in subprocess.h
0e9ac2cb225 doc: use doxygen comments for blocks containing @param
68e8429bc43 doc: fix incorrect @param annotations
f5a67cf4f3d Merge bitcoin/bitcoin#36912: doc: relax clang-format loop and template declaration rules
6388d1ad355 lint: check release note snippets reference their PR
463c15b594f doc: fix up some release notes
004cfb21a51 Merge bitcoin/bitcoin#36040: Wallet: Don't backdate locktime rbf
786ba167bb7 Merge bitcoin/bitcoin#36835: test: add BIP352 scanning to the functional test framework
8c360f0841a Merge bitcoin/bitcoin#36342: wallet: reject recipient amounts above MAX_MONEY
6090f0afe79 Merge bitcoin/bitcoin#36637: torcontrol: send -torpassword hex-encoded to avoid escaping bugs
3b6068ab86b Merge bitcoin/bitcoin#36586: coins: warn of low disk space before chainstate compaction
f98888efd2b Merge bitcoin/bitcoin#36387: wallet: rpc: Deprecate `encryptwallet` RPC for encrypting existing wallets.
570cef9b99c Merge bitcoin/bitcoin#36501: refactor : Reorder CBlockIndex members to save 8 bytes
3ee664ea989 Merge bitcoin/bitcoin#36087: util: Add and use AssertUnreachable
a690300ee0d Merge bitcoin/bitcoin#36888: test: construct `coinselection_tests` output declaratively
f498a5a6718 Merge bitcoin/bitcoin#36742: lint: shellcheck files with shell shebang
c3d1b4c0b33 Merge bitcoin/bitcoin#36890: Update secp256k1 subtree to latest master
c138ff92541 Merge bitcoin/bitcoin#36867: test: remove legacy wallet leftovers from wallet functional tests
830cca99046 Update secp256k1 subtree to latest master
b3dcf1931b9 Squashed 'src/secp256k1/' changes from a7f264373e..659f03b076
faa89b1ae68 test: Speed up interface_ipc_mining.py and fix large timeout-factor bug
fae567777fb test: Rename default_ipc_timeout -> default_ipc_timeout_ms
4cddbcf534e test: construct miniminer_tests inputs/outputs declaratively
3066c8e1284 test: check the rebuilt getblocktemplate transactions after prioritisetransaction
820120eb466 wallet: rpc: Deprecate `encryptwallet`
86c8fa61540 refactor: test: signrawtransaction isolate encrypted wallet test
8a3c12cea70 refactor: test: wallet_multiwallet.py use a new encrypted wallet
bb78fcca7f6 refactor: test: wallet_listdescriptors.py extract encrypted wallet test
7af91e41a05 refactor: test: wallet_fundrawtransaction.py avoid encryptwallet
c9b9ff4fe43 refactor: test: wallet_bumpfee.py isolate encrypted wallet tests
18ca5225b04 refactor: test: rpc_psbt.py extract encrypted wallet signing
2354ff7b7e8 refactor: test: Avoid encryptwallet in interface_bitcoin_cli.py
079437cca7a Merge bitcoin/bitcoin#36914: test: simplify wallet_basic and rpc_getblockfilter tests
1eeeee497e0 test: Drop hard-coded magic 3
fa06fd5a69a test: Use generateblock with submit=False to create header
66531447adb Merge bitcoin/bitcoin#36864: rpc: deprecate iswatchonly field of getaddressinfo
0fb50460628 Merge bitcoin/bitcoin#36868: test: remove unused nodes and restarts from wallet tests
fa07938a6f5 doc: clang-format: AlwaysBreakTemplateDeclarations: No
fa90a744553 doc: clang-format: AllowShortLoopsOnASingleLine: true
bb357fcd2fc node: move block filter index ownership to NodeContext
66892cdd563 net_processing: get block filter index via PeerManager::Options
e5b76bbdbba rpc: get index info from NodeContext indexes
fafedc683a7 node: move coinstatsindex ownership to NodeContext
2d1dc8f18a2 node: move txospenderindex ownership to NodeContext
530cf35c17f node: move txindex ownership to NodeContext
8cba4bace8d mining: avoid checkBlock crash when chain has no tip
d55f55eda79 Merge bitcoin/bitcoin#36889: cmake: Switch `include_directories` -> `target_include_directories`
95dcec43b86 Merge bitcoin/bitcoin#36903: doc: archive release notes
b7b762880e7 test: pad fork coinbase input scripts
5cdbfd5f01a test: derive fork subsidy from parent
33bbf91e1ae test: derive fork difficulty from parent
4745be9837f refactor: extract fork block reconstruction
bf551335beb test: characterize fork coinbase fields
6832a273e22 Merge bitcoin/bitcoin#36894: net_processing: set fDisconnect instead of calling DisconnectNode
7611c965535 rpc: requests that fail to parse can not be jsonrpc2.0 notifications
0ef1cb66575 rpc: handle malformed jsonrpc 2.0 requests correctly
d63068c58ec net_processing: set fDisconnect instead of calling DisconnectNode
2733c24a09a doc: archive release notes for v30.5
90c684c28e6 doc: archive release notes for v31.3
cd6d7e240bb test: add BIP352 scanning to the functional test framework
435d5b22774 cmake: Remove `WarnAboutGlobalProperties` module
fa9a4ddbaf1 test: Add assert_falsy linter, And use AssertUnreachable
fa20a5c7059 scripted-diff: Replace falsy assertions with AssertUnreachable
fa6b4604e8c test: Remove unused includes in util_tests.cpp
fa1574cdaae refactor: Use AssertUnreachable() and remove dead code
fa81e4700a9 util: Add AssertUnreachable
fa1c93477e6 refactor: Replace unreachable run-time assert with compile time assert
b9b33544aaf test: remove no-op -keypool=0 from wallet_hd
1ac0e9cd5b0 test: update wallet_backup docstring
363355a72dc test: remove dead multisig code from wallet_address_types
e211dd0186e Merge bitcoin/bitcoin#36869: refactor, memusage: Make fields of STL helper structs public
1fbb5253f7d Merge bitcoin/bitcoin#36875: scripted-diff: Drop `IWYU pragma: keep` from build config includes
8130b3b8836 Merge bitcoin/bitcoin#36451: refactor: Use NotNull for CreateNewBlock and pimpls
460f877fac2 cmake: Switch `include_directories` -> `target_include_directories`
4ef05d6f456 cmake: Link `bitcoin_ipc` against `core_interface`
53561d80374 lint: Update `lint_includes_build_config` function
04108a0dbb4 scripted-diff: Drop `IWYU pragma: keep` from build config includes
77476af7be7 test: construct coinselection_tests output declaratively
29f7e30d547 Merge bitcoin/bitcoin#36862: test: use long timeout for event waits in interface_ipc_mining
e1a27bbb38e Merge bitcoin/bitcoin#36848: test: drop flaky "server too slow" check from interface_http.py
b9a6b0ca518 memusage: Make fields of STL helper structs public
afbe6cd25ef test: remove duplicate restart from wallet_sendall
0ba20992e81 test: use one node in signrawtransactionwithwallet and derivehdkey
4f0d4e11c1e test: remove unused node from wallet_basic
5b2f979c9e4 doc: add release note for getaddressinfo iswatchonly deprecation
375dc869d8b rpc: deprecate iswatchonly field of getaddressinfo
13b2d21bebb test: check w8, not w7, after creating the avoid_reuse wallet
215f8b828bc test: restore each node's own wallet backup in wallet_keypool_topup
74135e2e625 test: use long timeout for event waits in interface_ipc_mining
a527a0077a0 Merge bitcoin/bitcoin#36791: test: fix waitTipChanged timeout on slow hosts and use monotonic clock in interface_ipc_mining
fa2028daaa4 lint: Remove global shellcheck exclude of SC2162
faf5cc398bb lint: shellcheck files with shell shebang
fa915864183 refactor: Return NotNull from CreateNewBlock
fa071a2c451 refactor: Mark pimpls as NotNull
fdfd7467cf7 test: Add `is_p2*` and witness version `script_util`
9183edd25e6 Merge bitcoin/bitcoin#36574: ci: Reword stale readme
8b0b5775ab7 Merge bitcoin/bitcoin#36488: rpc: wallet: Schedule mixed-case confTarget option deprecation
75a23e7d36a test: drop flaky "server too slow" check from interface_http.py
ff90ca6cd56 Merge bitcoin/bitcoin#36105: bitcoin wrapper: Fix Windows exec so wrapper waits for child process
dd9d016b2d7 Merge bitcoin/bitcoin#36408: test: allow 3 bytes of fee overestimate in assert_fee_amount
fa4785828e8 util: refactor: Add and use MakeNotNullShared and MakeNotNullUnique
791173ae952 Merge bitcoin/bitcoin#36224: test: Add test coverage for `PartiallySignedTransaction::Merge()`
6c7e464293b Merge bitcoin/bitcoin#36757: net: ignore privacy network peer's view of our address
fa05bcd88ff ci: Add a note on pinning dependencies
fa8e4b7094e ci: lint: Use shellcheck from apt install
faf2b224d56 ci: Reword readme
faf6ed1b3c7 ci: Update binfmt qemu note
a06515e9fdf Merge bitcoin/bitcoin#36807: refactor: Move `NodeId` declaration into `net_types.h` and fix includes in related modules
c68583ab5a8 Merge bitcoin/bitcoin#36068: fuzz: reuse one fuzzed wallet across inputs
d847ecd6b3b test: assert current RPC behavior when handling malformed request body
fd3b09e8bcb fuzz: reuse one fuzzed wallet across inputs
2553b4cd967 wallet: add test-only helper to clear in-memory transaction state
0d98c438ebc test: make tx_mempool_block_doublespend spends conflicting
fad45cacbca rpc: wallet: Schedule mixed-case confTarget option deprecation
6f1365e34f5 Merge bitcoin/bitcoin#36824: ci: Switch to self-hosted CDash
117c54d4c57 Merge bitcoin/bitcoin#36556: depends: fix non-atomic reads in capnp debug assertions
541a000542d refactor: Fix includes in `net`, `net_types` and `node/eviction` modules
f58f08c5652 refactor: Move `NodeId` declaration into `net_types.h`
07540640aa4 test: split tx_mempool_block_doublespend into independent test cases
9320233a3d5 Merge bitcoin/bitcoin#36817: ipc: remove pre-v14 libmultiprocess compat definitions
4677f8841f7 Merge bitcoin/bitcoin#36785: rpc: wallet: Add snake_case aliases for listunspent options
36be848e927 Merge bitcoin/bitcoin#36805: Enclose all header content in include guards
f16d5166a26 ci: Switch to self-hosted CDash
0b9c2c30bfa Merge bitcoin/bitcoin#36810: test: construct `miner_tests` transactions declaratively
d19c4f8b261 Merge bitcoin/bitcoin#36642: rpc: parse each batch element into its own request
ba9c60a61da ipc: remove pre-v14 libmultiprocess compat definitions
ca14da90250 lint: Require all code in a header to be inside its include guard
00e1f35524a Enclose all header content in include guards
e998f12b55c torcontrol: Log when an active onion service is lost
232cb5410a1 Merge bitcoin/bitcoin#36074: scripted-diff: [fuzz] Add util/check.h includes for assertions
229e79321c4 Merge bitcoin/bitcoin#36815: doc: Fix Doxygen attribution of file-level comments
8d33ffe47e3 test: construct miner_tests sigops transactions declaratively
b2ce6c1727e test: construct miner_tests package selection transactions declaratively
9cfd6014005 test: check privacy-network peers' view of our address is not used
533fee6b9da net: ignore privacy-network peers' view of our address
027f13c79e1 seeds: drop documentation about sipa's seed from the README
6b27e165e2e seeds: drop 21.ninja as a seed source
fa6c603af6a scripted-diff: [test] Sort includes
fa3d6b0cf1e scripted-diff: [fuzz] Add util/check.h includes for Assert
c4a68cc5ceb doc: Attach `subprocess.h` header comment to the file
4cb432772c4 doc: Fix `@file` descriptions that start with the file name
c7ebbbba6c9 doc: Fix Doxygen attribution of file-level comments
44901d8f64c Merge bitcoin/bitcoin#36798: test: spend an existing output in `TestBasicMining` double spend case
4ef7904c39f Merge bitcoin/bitcoin#36788: test, bench: construct inputs/outputs declaratively in txpackage, duplicate_inputs and p2sh tests
5861dd29a73 rpc: parse each batch element into its own request
49c3c7fe09a Merge bitcoin/bitcoin#36252: ci, iwyu: skip subtrees in compilation database
c6dcda33b0f Merge bitcoin/bitcoin#36744: refactor: fix mismatched and undefined declarations
b2c7f2545e9 test: spend an existing output in TestBasicMining double spend case
7b124184394 test: merge PSBT `m_tx_modifiable` coverage and renaming bit positions with BIP370 flags
5bf3bc5e263 Merge bitcoin/bitcoin#36772: test: Remove `BOOST_FAIL` and add info in descriptor_tests
faf85b03217 test: Add some NotNull test cases
46ee95db49c test: use time.monotonic() for durations in interface_ipc_mining
9b6dadb39c2 test: fix waitTipChanged timeout on slow hosts in interface_ipc_mining
a4a2647834a test: construct script_p2sh_tests inputs/outputs declaratively
7fc7d26e750 bench: construct duplicate_inputs inputs/outputs declaratively
411c971e75b Merge bitcoin/bitcoin#36613: test: add getblockfilter test coverage for header-only blocks
050982c52d9 Merge bitcoin/bitcoin#36623: build: enable `-Wunreachable-code-aggressive`
cabee9651fb Merge bitcoin/bitcoin#36378: test: Add SKIP_WRITE edge case to wallet_startup
b8b38ef7426 Merge bitcoin/bitcoin#36713: test: remove unused `DynSock::Pipe::GetNetMsg` and `PushNetMsg`
654d74cc1c8 Merge bitcoin/bitcoin#36591: test: deduplicate PSBT unknown-field coverage in `rpc_psbt.py`
b6ccaaef051 Merge bitcoin/bitcoin#36779: Update leveldb subtree to latest master
589fca48cf0 Merge bitcoin/bitcoin#36475: bench: add BIP-352 pubkey extraction benchmarks (standard + P2PKH worst-case)
e71cebc016f Merge bitcoin/bitcoin#36694: test: construct `mempool_tests` inputs/outputs declaratively
1f69c5cfdd9 build: swap -Wunreachable-code for aggressive variant
27da2de66fb refactor: fix -Wunreachable-code-aggressive warnings
f12cc4aed14 Merge bitcoin/bitcoin#36783: Update minisketch subtree to latest master
d531a37c342 Merge bitcoin/bitcoin#36752: net_processing: always disconnect for SENDTXRCNCL after VERACK
4e3b0a441ec Merge bitcoin/bitcoin#36765: fuzz: push messages to one of m_nodes in connman target
521bbaf4093 Merge bitcoin/bitcoin#36731: test: use monotonic clock for durations in test framework and http_interface
f5a887c1996 test: Remove `BOOST_FAIL` and add info in descriptor_tests
f22abab451b Merge bitcoin/bitcoin#36036: build: Bump clang minimum supported version to 19
fcf76ea549f Merge bitcoin/bitcoin#36333: wallet: Delete `removeprunedfunds` RPC
6996cf7abad Merge bitcoin/bitcoin#36725: refactor: Use u64 consistently for flatfile sizes
46a004d0123 Merge bitcoin/bitcoin#36741: policy: Document rounding behavior of feerate fee getters
80d1da3c074 Merge bitcoin/bitcoin#36775: test: wallet: BnB marks exhaustive search complete
facf53acf43 refactor: Re-use a single GetOptionWithAlias
fab4cb51b45 rpc: wallet: Add snake_case aliases for listunspent options
5a699cc2539 torcontrol: send -torpassword hex-encoded to avoid escaping bugs
83e4347e048 Merge bitcoin/bitcoin#36777: refactor: rpc: doc: Mark longpoll counter u32
9f03a91c0bc Merge bitcoin/bitcoin#36384: rpc: Use self.Arg<_>(name) helper over manual and duplicate parsing
093586bf8bd Merge bitcoin/bitcoin#36609: ci: update some lint infra
a8a0e3ae6ff Merge bitcoin/bitcoin#36774: test: Add missing suppression for race:std::__1::__pad_and_output
828ba5a3ba4 Update minisketch subtree to latest upstream
be064af99df Squashed 'src/minisketch/' changes from a12f5de1c9..d44dca4e3f
fa8c3c014d1 refactor: Remove unused include for clang-cl on Windows
faffaeb2b66 build: Drop unused clang-17 -Wno-c++23-extensions workaround
fa31e259556 refactor: Drop unused libc++-16 workarounds
fa6299f87a2 clang-format: Use Standard: Latest
fa909de36f3 build: Bump clang minimum supported version to 19
0fe899d0ede Merge bitcoin/bitcoin#36489: wallet: rpc: Add snake_case aliases for wallet funding options
fa3d4f09928 policy: Document rounding behavior of feerate fee getters
b4f341a93f1 Merge bitcoin/bitcoin#36192: test: cover unsatisfiable mining timestamp
d2897c20617 Merge bitcoin/bitcoin#35598: test: cover feeThreshold = MAX_MONEY in interface_ipc_mining.py
fefea34e152 Merge bitcoin/bitcoin#36592: build: Bump macOS SDK version to 15.0
93bd4e1df47 Merge bitcoin/bitcoin#36747: Update libmultiprocess subtree to add nonunix platform support and fix race conditions
7580a91fe06 Update leveldb subtree to latest master
94497239608 Squashed 'src/leveldb/' changes from 24a446f834..e267773191
ef7c5a900c2 Merge bitcoin/bitcoin#36771: ci: Add missing --error-on=any to apt update
fa8817e6087 refactor: rpc: doc: Mark longpoll counter u32
42b28c8a231 Merge bitcoin/bitcoin#36470: test: make p2p_eviction actually exercise block-time protection
d7a8360f4ef guix: compute --build triplet when lowering, not at load time
fa294de4c4f lint: Allow clang-format to be used in scripted-diff
fa7a154c9f3 ci: Add missing --error-on=any to apt update
fa3821edc0b test: Add missing suppression for race:std::__1::__pad_and_output
ac2c946d3b2 test: BnB marks exhaustive search complete
e9e57d10567 lint: set ruff target-version to py310
80020a95640 ci: use pyzmq 27.3.0
cec51655f36 ci: use MLC 1.3.0
a8520e6433a ci: use mypy 2.4.1
a1053449c67 ci: use ruff 0.17
661b4755425 ci: use uv 0.13
377c7711cf6 Merge bitcoin/bitcoin#36193: guix: introduce a minimal `linux-base-gcc` variant
d206226b499 Merge bitcoin/bitcoin#36458: Test: Add script vectors for interpreter edges
7ce161872eb Merge bitcoin/bitcoin#36405: test: look for the wtxid in p2p_blocksonly
16b314094d7 Merge bitcoin/bitcoin#36769: doc: Permit snippets at /doc/release-notes-uniq-name.md
e0b4592e266 Merge bitcoin/bitcoin#35170: test: Better test coverage for ParseHDKeypath()
6a45c243fdd Merge bitcoin/bitcoin#36770: test: Fix log and comment in mempool_reorg.py
fdd93cbbc0e Merge bitcoin/bitcoin#36142: net: validate Tor onion service replies and cached keys
5336eaa7fa7 test: construct txpackage_tests inputs/outputs declaratively
3b1ba022efd Merge bitcoin/bitcoin#36750: test: construct multisig_tests inputs/outputs declaratively
fa2003a2394 doc: Permit snippets at /doc/release-notes-uniq-name.md
2438fbcade9 test: Fix log and comment in mempool_reorg.py
ec7f64d02e3 doc: release note for removeprunedfunds rpc deletion
3d8c55734e9 wallet: rpc: Delete removeprunedfunds
0e38ad26af9 Merge bitcoin/bitcoin#36612: doc: Merge all BSD build docs back into build-unix.md
902190b6242 Merge bitcoin/bitcoin#36406: test: make p2p_orphan_handling's never-requested checks able to fail
504aab70a08 Merge bitcoin/bitcoin#36580: refactor: Use util::log::FormatString in BaseIndex::FatalErrorf and LogConnectFailure
e319d306850 Merge bitcoin/bitcoin#36601: test: avoid reusing AssumeUTXO coin insertion method in test fixtures
ad51e87ecfd fuzz: push a message to an actually connected node in connman target
102f78306cc Merge bitcoin/bitcoin#36617: test: Fix intermittent issue in p2p_orphan_handling.py
bfab449be1e Merge bitcoin/bitcoin#36670: fuzz: check GetStale() returns exactly the stale private broadcast txs
5965d4761d0 Merge bitcoin/bitcoin#36539: gui: Use PSBT v0
fa7b2d05387 doc: Fix typo in walletcreatefundedpsbt dev comment
fa62bc2b42f refactor: rpc: Use self.Arg<_>(name) helper over manual isNull() ? fallback : getter()
faee904d88f rpc: Align psbt_version parsing
fab17591d51 rpc: Parse generatetoaddress maxtries as u64
fa105f82c3c rpc: doc: Use proper RPCArg::Default in verifychain
6666c799b95 rpc: Use the first arg name in GetParamIndex
d5f7524897d doc: Bump minimum required Cap'n Proto version to 0.9.2
94181c18e25 Merge bitcoin/bitcoin#36348: doc/i2p: mention -privatebroadcast bypasses persistent address
4898199d8f9 build: suppress -Wc++23-lambda-attributes in warn_interface
c4ffd4e69fe Merge commit '270f5dbe3ddac5191ec6b21ceb17c3dddb79b12f' into pr/subtree-15
270f5dbe3dd Squashed 'src/ipc/libmultiprocess/' changes from e8de5c7b68e..acded1aafae
037a33ded14 Merge bitcoin/bitcoin#36679: ci: enable IPC in the i686 job
a0ebf34b006 Merge bitcoin/bitcoin#36686: test: cover cumulative input value range in CheckTxInput tests.
14edee63b64 Reorder CBlockIndex members to save 8 bytes
fef06b8697f Merge bitcoin/bitcoin#36685: wallet: export replaces_txid and replaced_by_txid
59cadd7c5a3 Merge bitcoin/bitcoin#36619: rest: don't log an error for /spenttxouts on a block without undo data
31d8f58717c Merge bitcoin/bitcoin#36754: test: Use `contains` in miniminer_tests
6355c9f8cf6 Merge bitcoin/bitcoin#36632: kernel: document the import_blocks abort
d97f027a697 Merge bitcoin/bitcoin#36578: p2p: clean up a 1p1c package child that is already in the mempool
158a9868f53 test: Use `contains` in miniminer_tests
fa1b829b234 doc: Merge all BSD build docs back into build-unix.md
fa0cad21858 doc: Rework build-unix.md memory limits notes
f103de70de0 Merge bitcoin/bitcoin#36254: bench: add and use undo-data for BlockToJsonVerbosity3 bench
eb1b70d8431 Merge bitcoin/bitcoin#36615: guix: add --no-same-owner to codesign.sh TAR_OPTIONS
2e06f37190b Merge bitcoin/bitcoin#35492: wallet: fail dump on incomplete writes
cfe5cceab6d Merge bitcoin/bitcoin#31507: build: Use clang-cl to build on Windows natively
002b119ce66 Merge bitcoin/bitcoin#35041: descriptor: speed-up `Parse` (xpub/xpriv) in ~30%
3b5ba5d376a Merge bitcoin/bitcoin#36748: test: Small test sync fixups
596dd6fd88e Test: bumpfee does not backdate the locktime
87310779af8 net_processing: always disconnect for SENDTXRCNCL after VERACK
c723c37de69 test: construct multisig_tests inputs/outputs declaratively
ed3d34ba0c0 Merge bitcoin/bitcoin#36706: policy: remove unused GetVirtualTransactionInputSize
f3cd4e4bf85 Merge bitcoin/bitcoin#36494: wallet: reject unknown options in sendall
fa6f1c00c5f test: Use send_self_transfer_chain
fa2986921cd test: Use generateblock with submit=False over manual create_block from tmpl
9d39cec97de Merge bitcoin/bitcoin#36636: netaddress: make .onion suffix check case-insensitive
facf4a0ea98 test: Remove redundant sync_blocks
fb19fed3df0 Merge bitcoin/bitcoin#35728: rpc: Properly throw on internal I/O errors in GetTransaction
9e8e61ae8e3 p2p: clean up a 1p1c package child that is already in the mempool
67d9d7fe439 Merge bitcoin/bitcoin#36344: wallet: reject duplicate inputs in sendall
5f972485ffd http: use MockableSteadyClock::time_point in ShouldDisconnect declaration
bad11ff68ec qt: remove undefined BanTableModel::{start,stop}AutoRefresh
0ae65892445 rpc: remove undefined RPCResult::ToStringObj and ToDescriptionString
3fa42941d16 common: make FeeModeInfo static, remove mismatched declaration
410843a684d rpc: make AddInputs static, remove mismatched declaration
f5e10868da4 Merge bitcoin/bitcoin#36584: kernel: make btck_LogEntry opaque
35195e66fcc Merge bitcoin/bitcoin#36707: net_processing: remove redundant `peer` check in `MaybePunishNodeForBlock`
654a92a9d3e wallet: reject duplicate inputs in sendall
331902f1dda doc: Rename `build-windows-msvc.md` to `build-windows-native.md`
fe2ffef6bc7 doc: Add clang-cl release notes
4f1e6de6c44 cmake: Drop support for the MSVC compiler (cl.exe)
720f381a264 Couple `BSWAP_CONSTEXPR` definition to bswap implementation
4d7e07035df cmake: Adjust diagnostic flags for clang-cl
c4111989e47 cmake: Link to clang-cl builtins library on Windows
d2645f7ed48 cmake: Always link `bitcoinqt` to `shlwapi` when building on Windows
5ec877a74df guix: pass --disable-libstdcxx-filesystem-ts to libstdc++
57964dc5bf8 guix: pass --enable-clocale=generic to (non-GUI) libstdc++
6e9ad623236 guix: pass --with-libstdcxx-zoneinfo=no to (non-GUI) libstdc++
6cb41040a10 guix: pass --disable-wchar_t to (non-GUI) libstdc++
7bc757ce87b net: Do not add consensus invalid transactions to extrapool
e381e29f9a1 depends: patch around Boost Test std::wcrtomb usage
ddea9196493 Merge bitcoin/bitcoin#36554: cmake: Reject warnings in `check_cxx_source_compiles_with_flags()`, use `-msse4.1` for SHA-NI
38ece2a9c85 Merge bitcoin/bitcoin#36712: fees: prevent divide by zero in CFeeRate
3581d56b30a Merge bitcoin/bitcoin#36305: net: Use exclusive P2P listen sockets on Windows
a7d3a429732 test: use monotonic clock in interface_http
eccca10e646 test: use monotonic clock for durations in test framework
e310efb202b Merge bitcoin/bitcoin#36618: test: Wait for index sync in all tests
d54844eaeba Merge bitcoin/bitcoin#36091: test: Add debug output to common tested types
cd74d9650e8 Merge bitcoin/bitcoin#36715: refactor: Enable bugprone-signed-char-misuse
f442fa20d43 fees: prevent divide by zero in CFeeRate
fa2c8df1810 Add test coverage for varint overflow
faed02f6d0a refactor: Use LARGE_INTEGER QuadPart on Windows
faf8d0e33ad refactor: Use u64 consistently for flatfile sizes
fad49fd81fc Add doc/release-notes-35728.md
fa7d278aad8 refactor: Use GetTransaction in ProcessPSBT
fa32e607531 rpc: Properly throw on internal FindTx IO errors in ProcessPSBT and GetTransaction
4f3dcb76ab3 fuzz: check GetStale() returns exactly the stale private broadcast txs
98f9eb6afdf test: cover negative input in CheckTxInputs
2077d1571ee kernel: document the import_blocks abort
6c01bd0b2dc Merge bitcoin/bitcoin#36687: test: wait for the node to finish the last block in p2p_ping_ibd
71133aeccb4 Merge bitcoin/bitcoin#35818: bloom: avoid undefined sizing calculations
40689f98ccf Merge bitcoin/bitcoin#36714: net_processing: remove m_wtxid_relay_peers
862f6038ebc Merge bitcoin/bitcoin#36011: btcsignals: destroy callbacks on disconnect
ab7e668cc6a Merge bitcoin/bitcoin#36611: test: consolidate mempool constants
fa6efa5da55 refactor: Enable bugprone-signed-char-misuse
7a840e29205 net_processing: remove m_wtxid_relay_peers
e172eb69df9 test: remove unused DynSock::Pipe::GetNetMsg and PushNetMsg
b048a3e8386 Merge bitcoin/bitcoin#36701: ci: Disable tests on ARM32 in GHA yaml
43a33e513c4 Merge bitcoin-core/gui#970: Remove legacy BIP70 merchant name from tx details window
faaf4a751c6 test: Add test to check RPCs throw on IO errors
fad44f18b88 rpc: Return proper error messages from getrawtransaction
66292fa4b57 net_processing: remove redundant peer check in MaybePunishNodeForBlock
3e2cf63da50 policy: remove unused GetVirtualTransactionInputSize
07efc592927 Merge bitcoin/bitcoin#36703: test: Sync blocks in test_witness_block in p2p_segwit.py
3c51322d9f9 Merge bitcoin/bitcoin#36594: net: make orphan reconsideration more granular
fab8fd026cf test: Sync blocks in test_witness_block in p2p_segwit.py
fa01c3c533b ci: Disable tests on ARM32 in GHA yaml
d1fb1ba36aa Merge bitcoin/bitcoin#36071: refactor: fuzz: remove cost_of_change from coin-grinder fuzz target
d14b94ddad2 Merge bitcoin/bitcoin#36663: test: Use single node in mempool_reorg.py
133714d1695 test: cover cumulative input value range in CheckTxInputs
b7abd88f0f2 test: construct mempool_tests inputs/outputs declaratively
6ed5aad0611 Merge bitcoin/bitcoin#36124: http: Make `HTTPRequest` update state internally
18953bd01f1 Merge bitcoin/bitcoin#36606: test, bench: construct inputs/outputs declaratively in context-dependent cases
05187ec2496 Merge bitcoin/bitcoin#29843: policy: Allow non-standard scripts with -acceptnonstdtxn=1 (test nets only)
bdf58dd89cc test: construct transaction_tests test_Get inputs/outputs declaratively
24d00c45394 bench: construct ccoins_caching inputs/outputs declaratively
363d9e9d381 Merge bitcoin/bitcoin#36682: refactor: Use std::erase and std::erase_if
a45478aa275 test: construct sigopcount_tests BuildTxs inputs/outputs declaratively
524d554e2bf test: construct CreateBlockChain coinbase declaratively
60be0930ca9 test: construct transaction_utils inputs/outputs declaratively
6a5212fb97c doc: Add missing names to activate grouping syntax
9bf4815b94b Merge bitcoin/bitcoin#35714: validation: return block-file flush errors
f8c6cd84e08 test: support multiple inputs in CheckTxInputs test helper
9af82f9872c test: wait for the node to finish the last block in p2p_ping_ibd
bff0a2fabfe wallet: export replaces_txid and replaced_by_txid
0f27bed5b29 Merge bitcoin/bitcoin#36676: cli: respect -rpcclienttimeout even when sending
b1172114df0 Merge bitcoin/bitcoin#36098: fuzz: add corpus reachability checks
4d99cc5c9bb Merge bitcoin/bitcoin#36684: test: check AddToBlockIndex keeps first-seen header on equal work
c3ca59bab7c Merge bitcoin/bitcoin#36683: doc: fix `v32.1` release notes archive
41952c4730e doc: archive release notes for v29.5
24d0af054a3 doc: archive release notes for v30.4
c8ff8e8eadd doc: archive release notes for v31.2
1a45b913f39 doc: archive v32.1 release notes
f8c9f2b5377 Merge bitcoin/bitcoin#36678: doc: adapt release notes template to security disclosure policy update
ad68edfb92f doc: link to security disclosure policy in release notes template
701545e5b57 test: check AddToBlockIndex keeps first-seen header on equal work
fa917ddcb1c Remove legacy BIP70 merchant name from tx details window
fa87bfe31df refactor: Use std::erase and std::erase_if over iterator-based erase
fa93a025631 refactor: Use std::erase and std::erase_if over list removal or vector erase-remove
3ce364124c0 test: bip32_tests: Add some more tests cases
72414a709d5 test: bip32_tests: Add round-trip tests
60bdfdb19e9 test: bip32_tests: Add expected result checks
7b5ce9c529b test: Refactor in bip32_tests: extract test data in an array
1176a20d526 doc: add release note for -acceptnonstdtxn changes
1df59107204 validation: Add compile-time checks for consensus flags
425115713c5 validation: Check only (potential) block script flags when -acceptnonstdtxn is set
703ebdf9de8 validation: Be explicit about whether CheckInputScripts is for block/mempool
65ddcb4f35c ci: Enable IPC in the i686 job
ae658dd8061 doc: adapt release notes template to security disclosure policy update
148210fe99b refactor: Flatten HTTPRemoteClient::ReadRequest() into HTTPRemoteClient::TryReadRequestInternal()
9692e6f7d00 refactor: Extract HTTPRemoteClient::TryReadRequestInternal() from static HTTPRemoteClient::TryReadRequest()
05897e53b2f http: Extract HTTPRequest::Load() to remove SetState()
aa76bd266df Merge bitcoin/bitcoin#36529: test: measure rpcwaittimeout floor with monotonic time
dc27539d42b test: measure rpcwaittimeout floor with monotonic time
e5d9a7e04b5 cli: fail to send a request when the socket does not become writable
db31a3ad1f7 test: check P2P listen port exclusivity
0dbd271eb4a net: use exclusive P2P listen sockets on Windows
d8cca0c110b test: use MAX_FUTURE_BLOCK_TIME from blocktools
9ee579b6cba test: move DEFAULT_ANCESTOR_LIMIT to mempool_util
8f4caec8959 test: consolidate DEFAULT_CLUSTER_LIMIT to mempool_util
75a611998e3 test: add MAX_REPLACEMENT_CANDIDATES to mempool_util
aa7d0a5b582 test: use TRUC constants from mempool_util
23288073d4e Merge bitcoin/bitcoin#36588: refactor: Enable more tidy bugprone checks
631b0065a7f Merge bitcoin-core/gui#955: qt: filter addhdkey from RPC console history
15ba42294eb Merge bitcoin/bitcoin#36674: Update leveldb subtree to latest master
eebc145847b rest: don't log an error for /spenttxouts on a block without undo data
e1dfb04fcf2 Squashed 'src/leveldb/' changes from 53a1914e00..24a446f834
8d3d929e4d7 Update leveldb subtree to lastest master
2b5b6fe231f Merge bitcoin/bitcoin#36669: refactor: store positions as a 64 bits integer in flatfiles
5da09030f74 Merge bitcoin/bitcoin#36667: net: enforce timeout interval for paused send peers
3fdc45d1fa2 refactor: psbt: Don't set a default version for PSBT constructor
23dcb03a2c6 gui: wallet: Use v0 PSBT
cc2534cdf7b net: enforce timeout interval for paused send peers
2186232955f Merge bitcoin/bitcoin#36665: sock: align exception monitoring between poll() and select() backends
dd9d2b919d6 Merge bitcoin/bitcoin#36610: test: add `plyvel` to deps table
fa3aeb51cfb test: Extract first test case in mempool_reorg.py
fa329d62c51 test: Use single node in mempool_reorg.py
fabf5c52ccb test: refactor: Use trigger_reorg helper in mempool_reorg.py
0574f096abf netaddress: make .onion suffix check case-insensitive
1e0c4073770 sock: align exception monitoring between poll() and select() backends
a773e1e33b3 Merge bitcoin/bitcoin#36624: test: Enable noban_tx_relay in a few more tests
2fcfa1dae75 doc: add chainstate compaction release note
cef76701a81 coins: skip compaction if disk space is low
f57a6973da9 logging: share full compaction logs
facb2209061 refactor: Enable bugprone-return-const-ref-from-parameter to find missing LIFETIMEBOUND annotations
fa211896e55 refactor: Enable some useful bugprone checks, which are clean right now
faa76b44c6e refactor: Enable bugprone-inaccurate-erase
fafce023b3d refactor: Enable bugprone-string-literal-with-embedded-nul
fa704c5d3ca test: Use faster noban_tx_relay in mempool tests
fa6f7e36a8c test: [doc] Clarify noban_tx_relay comment
faf2e3aba59 test: Use proper noban permission for faster tx relay
fa74dc72d94 test: refactor: Wait for index sync by default
a4d470e1e9a test: add plyvel to deps table
df0dc1e2d20 Merge bitcoin/bitcoin#36616: test: keep noban_tx_relay config after node is restarted
b469ff8fddb test: keep noban_tx_relay config after node is restarted
fa8009ba299 test: Wait for index sync in wallet_fast_rescan.py
83003cafaa8 qa: test a single orphan is processed per peer turn, regardless of its validation result
faf819bf23e test: Fix intermittent issue in p2p_orphan_handling.py
d2e5108ea2d guix: add --no-same-owner to codesign.sh TAR_OPTIONS
64cf455b481 test: add getblockfilter test coverage for header-only blocks
152a55397e4 Merge bitcoin/bitcoin#35395: doc: Improve test suite dependencies documentation
2cd1db40fdb Merge bitcoin/bitcoin#36581: subprocess: fix command line memory leak on Windows
cf30d0a4123 subprocess: fix command line memory leak on Windows
722d08e0398 test: Convert `BOOST_CHECK` macros with known debug string
d735b94803a test: Add display `operator<<` overloads to `common.{h,cpp}`
f655a8df755 Merge bitcoin/bitcoin#36599: test: Fix intermittent timeout waiting for ibd_wtxid getdata
2034d3078ee Merge bitcoin/bitcoin#36456: Test: Cover malformed and truncated tx encodings
3eca89820e1 Merge bitcoin/bitcoin#36590: doc: archive release notes for v32.0
1c62336903c test: avoid snapshot insertion in coin fixtures
7777598f87e test: Fix intermittent timeout waiting for ibd_wtxid getdata
28a41e61ab5 net: reconsider at most one orphan per call, whatever the validation result
ef4310097bd test: combine redundant PSBT unknown field merge cases into `test_combinepsbt_preserves_unknown_fields`
de96f3ae6d1 Merge bitcoin/bitcoin#36465: Test: Add P2SH scriptSig stack-size boundary tests
316ea3280e9 Merge bitcoin/bitcoin#36457: Test: Cover malformed merkle trees and nBits
eaa8d1f5a5f build: Bump macOS SDK version to 15.0
10f7cf84879 Test: Cover malformed and truncated tx encodings
0c0e6ba0167 Test: Cover malformed merkle trees and nBits
7efbdb6437a Merge bitcoin/bitcoin#36287: build: Bump Xcode CLT minimum supported version to 26.3
be322f6f50a doc: archive release notes for v32.0
40eba5eb20b test: extract unknown fields passthrough to its own method
f86c614e692 Merge bitcoin/bitcoin#35919: p2p: cap maxconnections at 2,000 to reduce crash risk
fab3062590e refactor: Enable bugprone-unused-raii
9878e2a5cf3 Merge bitcoin/bitcoin#36279: test: non-inbound version message promotes address to tried table
a2d42ce892d Merge bitcoin/bitcoin#36579: refactor: Enable some string performance tidy rules
4fe28722a57 Merge bitcoin/bitcoin#36453: util, cli: name the Sock wait timeout cap and use it for -rpcclienttimeout=0
d3c3871b593 Merge bitcoin/bitcoin#36509: refactor: remove more dead code
355d998dae4 Merge bitcoin/bitcoin#36449: addrman: use uniform sampling inside buckets
61f1e2a57ff Merge bitcoin/bitcoin#36531: guix: use `--load-path` for local modules
4510d3dbdd0 Merge bitcoin/bitcoin#35461: util: Clarify the assertion message in assertion failures (Assert, Assume, etc.)
81fde00cc7f util: Unify assertion and unreachable handling
aa64d77ce8f util: Rename assertion_fail() -> internal_abort_helper()
2e3a53464d3 util: In Assert clarify the failing condition in the message
b30f750de56 p2p: cap maxconnections at 2000
48092a9042d flatfile: use 64-bit file positioning syscalls in Windows
b2c077394a5 kernel: make btck_LogEntry opaque
4303f3b7f07 Merge bitcoin/bitcoin#36582: test: reorder functional tests by current runtimes
649e075655c test: move slow tests to run earlier
6a59afd317d test: move fast tests to run later
fabb6bbe53e refactor: Use single-char overload in execute_process WIN32 block
fafbcadc1bc refactor: Use util::log::FormatString in BaseIndex::FatalErrorf and LogConnectFailure
6799119cef7 Merge bitcoin/bitcoin#36397: scripted-diff: [wallet] Remove trailing newlines from one-line log messages
9c79f5550ab Merge bitcoin/bitcoin#36573: test: cover gettxspendingprevout error without txospenderindex
06edf059002 Merge bitcoin/bitcoin#36177: net: fix startup failures from stale Tor examples
0a8e904ceea Merge bitcoin/bitcoin#35321: p2p: Misbehave on invalid compact block in optimistic reconstruction
020fcb281eb Merge bitcoin/bitcoin#36553: test: Add missing sync_mempools in wallet_conflicts.py
bbbb9c6d73a refactor: Enable performance-faster-string-find
5bb7c5646a7 cmake, crypto: Use `-msse4.1` instead of `-msse4` for x86 SHA-NI
9ab42235c15 cmake: Treat warnings as errors in `CheckSourceCompilesWithFlags`
c4763b716db cmake: Make sanitizer and fuzzer checks warning-free
faae016796e refactor: Enable performance-prefer-single-char-overloads
fa7973e1138 refactor: Enable performance-string-view-conversions
61cb3d966a8 descriptor: replace O(n) INPUT_CHARSET.find() with precomputed lookup table
75fd00099cc descriptor, key_io: avoid redundant work when parsing keys
d0d1e49c8c1 Merge bitcoin/bitcoin#36559: test: zero-pad the port in feature_anchors' expected hex
8ba6cb08dfa cmake, minisketch: Make CLMUL check warning-free
17556cb1f52 flatfile: store position as a 64 bits integer
a7a584fc8e2 Merge bitcoin/bitcoin#36407: test: make orphanage_dos_many fill the orphanage
2fd9be21e28 test: make p2p_eviction actually exercise block-time protection
89bc05fe832 cmake, crc32c: Make SSE4.2 check warning-free
ebb53105035 Merge bitcoin/bitcoin#36341: wallet: return error from bitcoin-wallet create
3983b5823ba Merge bitcoin/bitcoin#36339: wallet: avoid int overflow in listtransactions
53865a0addc cmake: Initialize variables in ARMv8 SHA-NI check
cd3353c6892 cmake: Add `[[maybe_unused]]` annotation to atomic library check
01b51c0f1fa Merge bitcoin/bitcoin#36295: refactor: Remove args-wrappers in favor of naked value_or()
368c1382315 Merge bitcoin/bitcoin#36231: test: add pow tests covering live mutants
e921dfaab17 Merge bitcoin/bitcoin#36438: test: a switch to tx relay via filterclear can trigger eviction
619334569b4 Merge bitcoin/bitcoin#36541: test: Small p2p_node_network_limited.py cleanups
edf0d13ad5f test: cover gettxspendingprevout error without txospenderindex
fa0c552cc5a wallet: Reject trailing newline in format strings
fada75ccb05 util: Add option to reject trailing newline in format strings
fa57d5244b3 scripted-diff: [wallet] Remove trailing newlines from one-line log messages
fa6c7942ad8 wallet: Remove inconsistent and redundant trailing error newlines
fa89aeec855 test: [move-only] Move test_LogEscapeMessage to logging tests
6301d464f72 Merge bitcoin/bitcoin#36422: test: check unconnecting headers don't reset the getheaders rate limit
bb19150a32b Merge bitcoin/bitcoin#36159: http: Improve HTTPRemoteClient::MaybeDisconnect()
276db20b64e Merge bitcoin/bitcoin#36524: common: drop locale setting hack
fe52f520de1 Merge bitcoin/bitcoin#36368: bitcoin-tx: reject in and outscript arguments with too many separators
fa1061481bb test: Add missing sync_mempools in wallet_conflicts.py
fa3986f5c1d test: Remove redundant sync call after self.generate called sync_all
71fa0439278 Merge bitcoin/bitcoin#36545: test: Fix intermittent issue in p2p_initial_headers_sync.py
2f7622e3f6f test: zero-pad the port in feature_anchors' expected hex
d22d3565128 util, cli: name the Sock wait timeout cap and use it for -rpcclienttimeout=0
6e8e85ddcf2 depends: fix non-atomic reads in capnp debug assertions
924f4c4ac78 Merge bitcoin/bitcoin#36552: refactor: drop lifetimebound `__has_attribute` check
702ec9d40f8 wallet: reject unknown options in sendall
fad76375294 test: Fix intermittent issue in p2p_initial_headers_sync.py
84f8bfb9abc refactor: drop lifetimebound __has_attribute check
b13ba1a7d3a Merge bitcoin/bitcoin#36439: test: poll more frequently in sync helpers and RPC connection wait
89a3a13c44e Merge bitcoin/bitcoin#35724: cmpctblock: Improve logging of `cmpctblock` message reconstruction statistics [part of prefill series]
38ac0d530ff Merge bitcoin/bitcoin#36522: test: check MIN_PEER_PROTO_VERSION peers are not disconnected
49b4b4add34 Merge bitcoin/bitcoin#36514: ci: Remove confusing -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON from CONFIG_ALL
87fbedf5f83 Merge bitcoin/bitcoin#36544: test: Fix intermittent issue in p2p_eviction.py
c50817fe2d8 Merge bitcoin/bitcoin#36535: policy: sum package weight in int64_t
43bb5e3c467 doc: add release note for #36524
cbd2964db77 common: drop locale setting hack
1164c77d2d4 test: run GUI nodes in Dutch with -lang
fa9a9657506 test: Fix intermittent issue in p2p_eviction.py
8898f832d9d test: poll more frequently in sync helpers and RPC connection wait
fadcd0b64e3 test: Remove confusing ensure_for
fa13e8954d2 test: Fix block height typos in test logs
cce32b16874 Merge bitcoin/bitcoin#36379: fuzz: fix stale comments in http_request
faaabe4454c policy: sum package weight in int64_t
649bc0a645e Merge bitcoin/bitcoin#36511: test: Small mempool_compatibility.py cleanups
48eed2fc277 guix: use --load-path for local modules
3c30b8ae4fe Merge bitcoin/bitcoin#36446: test: remove some avoidable test waits
5aaaf7b8d1e test: check network filtering and uniformity of addrman Select
3f7f845cf51 fuzz: fix stale comments in http_request
b1ddb7d6857 Wallet: Do not allow bumpfee to backdate the replacement transaction locktime
4f5ce816db1 cmpctblock: log: Print sizes of all tx types and prefill redundancies
f13ae519de9 Merge bitcoin/bitcoin#36469: refactor: deduplicate block validation state catcher
60ebd98c790 Merge bitcoin/bitcoin#36425: guix: declare python-setuptools in codesign manifest
5b07c48b838 test: check MIN_PEER_PROTO_VERSION peers are not disconnected
570c4a184f4 build: enable -Wunused-macros & -Wunused-template
7981e617644 test: remove unused equal from check_equal()
e8a70c0c688 qt: remove unused WalletController::m_options_model
2e23a5b1f16 qt: remove unused AddressBookPage::sendCoins signal
18a5e90179d qt: remove unused ClientModel::getNumBlocks and its cache
3a3e0ced8c1 qt: remove unused BitcoinAmountField::setReadOnly
f226197c001 qt: remove unused BitcoinAmountField::SetMaxValue
92ad4ad4042 qt: remove unused removeAllWallets
4881802c3f6 qt: remove stale PeerTablePriv forward declaration
3f40af46727 fuzz: remove unused FuzzedWallet::GetScriptPubKey
fc21d187411 qt: remove unused COLOR_BLACK
830a95548a4 refactor: remove unused ScriptHash(const CScriptID&) constructor
d6ffa22e287 fuzz: remove unused MockedDescriptorConverter::IdIsXpub
664c2f4600d logging: remove unused Logger::AddCategoryLogLevel
fb7a3aef1bc addrman: remove unused AddrMan::Unserialize(AutoFile&) instantiation
54fe34c6b32 policy: remove unused EXTRA_DESCENDANT_TX_SIZE_LIMIT
71f598018bc refactor: remove unused BinarySemaphoreGrant alias
a781e482898 qt: remove unused TrafficGraphWidget::getGraphRange
8a8a46d7b61 qt: remove unused OptionsDialog::proxyIpChecks signal
2fecbfd1e15 qt: remove unused QValueComboBox::setRole
50fb338f94e qt: remove unused ClientModel::isReleaseVersion
101345feaa0 script: remove unused FillableSigningProvider::GetCScripts
5eddbb45c2a ipc: remove unused FooImplementation::passBlockState
15959641816 test: remove unused GetMockableDatabase declaration
98136193f6b kernel: remove unused MemPoolLimits::NoLimits
d7c16aa057e netbase: remove unused Proxy::GetFamily
d28d1a98099 span: remove unused MakeWritableUCharSpan
173ec9a06cf Merge bitcoin/bitcoin#36517: Update crc32c subtree to latest master
577eb5610e1 cmpctblock: log: Log extrapool separately from mempool
a6cc3f30ef4 cmpctblock: log: debuglevel=trace print TXID's of all missing tx'es.
4b4cdde064c Merge bitcoin/bitcoin#36504: test: Add missing timeouts for HTTPConnection
2958dda3908 Update crc32c subtree to latest master
55f7dd00213 Squashed 'src/crc32c/' changes from 60bcf13edf..5bd2a6bcf9
22535b46056 test: look for the wtxid in p2p_blocksonly
fa13e6e1751 ci: Refactor BITCOIN_CONFIG_ALL into array
fac89d44e30 ci: Remove confusing -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON from CONFIG_ALL
badc9574810 Merge bitcoin/bitcoin#36485: ci: refactor BUILD_TARGETS use
fae8a8fd3cc test: Small mempool_compatibility.py cleanups
3b07eeeae08 Merge bitcoin/bitcoin#36294: mempool: Remove -persistmempoolv1 option
1605d8873e8 Merge bitcoin/bitcoin#36440: test: speed up functional tests by removing avoidable waits
fa4308dfbf3 test: make wait_until timing arguments keyword-only
fa5ad60c328 test: Add test for getrawtransaction block read errors
fad441867c9 test: Add missing timeouts for HTTPConnection
60afa0b8d71 Merge bitcoin/bitcoin#36441: doc: fix How to Upgrade section for bitcoin wrapper and libexec
a8b69bdeafd Merge bitcoin/bitcoin#36271: Revert #36057 & document mingw-w64 requirement
5a4cd705470 Test: Add P2SH scriptSig stack-size boundary tests
4307c2e0b01 doc/i2p: mention -privatebroadcast bypasses persistent address
56c0f168d1a bench: add worst-case P2PKH benchmark for BIP-352 pubkey extraction
228877d7836 Merge bitcoin/bitcoin#36467: test: Set socket timeout in interface_http.py
d71bc7127f0 bench: add benchmarks for BIP-352 pubkey extraction (standard inputs)
c067aa716f8 Merge bitcoin/bitcoin#36337: fuzz: Cover block filter P2P messages
faeb073ca68 test: Use new named arg aliases in tests
fac8ef10f4c wallet: rpc: Add snake_case aliases for wallet funding options
fa5643ff99a ci: refactor BUILD_TARGETS use
4bacf21a13c Merge bitcoin/bitcoin#36474: ci: Run valgrind --exclude tests again
acdb3269341 Merge bitcoin/bitcoin#35989: wallet: fix crash on importdescriptors with a range ending at 2^31-1
8dc80cafa2e test: wake p2p wait_until on message delivery instead of polling
10cfeb33357 test: set noban_tx_relay to speed up slow tx relay tests
f739c7876b8 Merge bitcoin/bitcoin#36450: test: Use timeout_factor for drain timeout in check_slow_read_throttle
8ad7e25d1ff Merge bitcoin/bitcoin#34374: kernel: use struct-based logging and simplify logging interface
c9cccf6d68c refactor: deduplicate block validation state catcher
fa486a48432 ci: Run valgrind --exclude tests again
442884f5f3b Merge bitcoin/bitcoin#35037: ipc: support per-address max-connections options on -ipcbind
8406af1c0d6 Merge bitcoin/bitcoin#36436: ci: Derive CONTAINER_NAME from the ci config file name
6b93788355b Merge bitcoin/bitcoin#36471: bitcoin-util: print genesis hash in display order
f60450e98fc Merge bitcoin/bitcoin#36416: test: use ipaddress in addr_to_hex
cc8285e8c98 bitcoin-util: print genesis hash in display order
fa5551cc6de test: Rework 413 Too Large tests in interface_http.py
282a05b8d10 Merge bitcoin/bitcoin#36462: rpc: fix OpenRPC hex pattern to allow empty strings
fab1529ebc7 test: Set socket timeout in interface_http.py
fab64c032c1 test: DestroyAllBlockFilterIndexes in ~ChainTestingSetup()
fadc2c93d3d fuzz: Cover block filter P2P messages
4d7e00d36bf rpc: Fix OpenRPC hex pattern to allow empty strings
db0bde16b91 Merge bitcoin/bitcoin#36418: kernel: document that btck_WriteBytes may receive a null pointer
9a0e095c687 addrman: use uniform sampling inside buckets
5d2fb8d3098 Test: Add script vectors for interpreter edges
b497a71c663 kernel: document that btck_WriteBytes may receive a null pointer
9dfde64cc32 Merge bitcoin/bitcoin#36447: test: Misc fixes for pending validation events races
35e3c9324e6 Merge bitcoin/bitcoin#36029: cmake: Detect and log MinGW-w64 version when cross-compiling for Windows
ff623cfa9be Merge bitcoin/bitcoin#36392: test: Extract and use sigterm_node in init_fd_overflow_test
fa466dea808 test: Avoid pending validation events from TestChain100Setup
fa339713dbc test: Drain all validation events before stopping indexes
9523d2b4a18 Merge bitcoin/bitcoin#34844: util: Add util::NotNull<SmartPtrType>
fa845f76d5c test: Use timeout_factor for drain timeout in check_slow_read_throttle
14a328f75df Merge bitcoin/bitcoin#36338: BIP-352: fix P2PKH pubkey extraction from malleated scriptSig
5661a65c9fb Merge bitcoin/bitcoin#36432: wallet: show real fee_reason strings in help
672c2d21377 Merge bitcoin/bitcoin#36448: randomenv: use `KERN_POSIX1` over `KERN_OSREV`
6b8a5524f7e Merge bitcoin/bitcoin#36291: test: add script_tests cases covering interpreter mutants
14f89aeea6d Merge bitcoin/bitcoin#36340: util: cap Sock::WaitMany timeout to fix -rpcclienttimeout=0 on macOS
12f691cf286 validation: return block-file flush errors
07d23eb7552 test: characterize writes after flush failure
d1f9a5b3e05 randomenv: use KERN_POSIX1 over KERN_OSREV
2abf671d2e1 http: Flatten control flow in HTTPRemoteClient::ShouldDisconnect()
5b98d56c93b test: Verify behavior of HTTPRemoteClient::ShouldDisconnect()
59a3e8803c1 refactor: Switch client idle timeout to mockable clock
5fba3308338 refactor: Rename MaybeDisconnect() to ShouldDisconnect() and make it const
cb8f4b0a303 http: Add log message for remaining case where we set m_disconnect = true
0cd0789c86b test: use ipaddress in addr_to_hex
fa21ac647dc test: [move-only] wallet rescan tests to separate TU
fa2cdb6a3c1 ci: [refactor] remove redundant GOAL=install
fa547e8204c ci: [refactor] Remove redundant set -o errexit
fa8fd9164fb ci: Derive CONTAINER_NAME from the ci config file name
93c8aec3fbc doc: add release note for #35989
aef8a04966d Merge bitcoin/bitcoin#36435: ci: isolate container test networks
3cb91bc7da6 Merge bitcoin/bitcoin#36308: test: Set tsan enable_adaptive_delay=1 by default
fa42e286841 refactor: Return util::NotNull<std::unique_ptr<ChangeSet>> from CTxMemPool::GetChangeSet()
fa04fafb3aa refactor: In CNode use util::NotNull<std::unique_ptr<Transport>> m_transport
fae9ab0f0dc refactor: Use NotNull pointer to input fetching pool
fa0184afa2f refactor: Use util::NotNull<std::unique_ptr<LevelDBContext>> m_db_context
fafa44e020a util: Add util::NotNull<SmartPtrType>
c04e968b2b8 guix: update certvalidator for Python 3.12
acaf322fc43 Merge bitcoin/bitcoin#36152: test: cover the feature-negotiation version boundary in p2p_leak
f55788e8455 Merge bitcoin/bitcoin#36277: net: always complete all initial private broadcast connections
cf80493e236 Merge bitcoin/bitcoin#34729: Reduce log noise
2c992472842 Merge bitcoin/bitcoin#36303: http: Log bytes received from client, use to replace receive-throttle regression test
28706086611 doc: fix How to Upgrade section for bitcoin wrapper and libexec
ce1d88b2632 test: avoid unused wallet test chains
40619d06874 bench: honor configured wallet epochs
79bb94f0924 test: cap expected IPC timeouts
06cb869112d test: shorten network limited negative wait
7dc0e8174c7 test: a switch to tx relay via filterclear can trigger eviction
09e22fbbb0c Merge bitcoin/bitcoin#35873: test: add a tx_valid vector for CVE-2024-38365
b47ec7c6e14 Merge bitcoin/bitcoin#35835: test: add CONST_SCRIPTCODE failure-path vectors to script_tests.json
889e7c5af84 Merge bitcoin/bitcoin#36329: psbt: add new test vectors
0036d5f1fa0 Merge bitcoin/bitcoin#36262: test: cover orphan reconsideration interruptibility
36e9e52f169 Merge bitcoin/bitcoin#34907: wallet, test: make wallet_fast_rescan robust
8c49a9abe91 Merge bitcoin/bitcoin#36151: makeseeds: fix off-by-one in field count check
b42ea675334 Merge bitcoin/bitcoin#36349: rpc: avoid copying unbroadcast transaction IDs just to count them
fa966fd7676 ci: Use one subnet per container
714261b508c Merge bitcoin/bitcoin#36426: test: check IBD insufficient work disconnect of outbound peers
fae564e66ab ci: Use one network per container and rm it after success
367119018de Merge bitcoin/bitcoin#36320: test: refactor: make chain_dir consistent with CreateBaseChainParams
6e419391cf4 Merge bitcoin/bitcoin#32895: wallet: Prepare for future upgrades by recording versions of last client to open and decrypt
c7835db15a5 Merge bitcoin/bitcoin#36080: p2p: Suspend ping timeout while downloading blocks from a peer
b3f9d8e1ddf Merge bitcoin/bitcoin#36128: test: add script_tests cases covering more interpreter mutants
b6a1b0ff707 Merge bitcoin/bitcoin#36327: test: speed up secp256k1 fixed-base multiplication and Schnorr signing
052cf121ab0 rpc: avoid copying unbroadcast txids to count them
781d8dbd500 wallet: show real fee_reason strings in help
1c96b08cb60 nix: drop MSVCRT build
cd7605a6b78 doc: document mingw-w64 requirement in Windows build docs
8073ff101f5 Revert "build: check for SetThreadDescription() at configure time"
66776840beb Merge bitcoin/bitcoin#36415: rpc: clarify preciousblock help text
c502b65c007 test: check IBD insufficient work disconnect of outbound peers
c8e852d3a02 Merge bitcoin/bitcoin#36404: fuzz: don't set random state for private broadcast test
dd809d2c08a Merge bitcoin/bitcoin#36299: cli: Improve empty-response and fix -rpcclienttimeout regression
802eb7daa9a Merge bitcoin/bitcoin#34213: net: preserve anchors when network is disabled
11977b42acc guix: declare python-setuptools
15d09263995 rpc: clarify preciousblock help text
a7acf277dc3 test: check unconnecting headers don't reset the getheaders rate limit
65896ac58ea Merge bitcoin/bitcoin#36411: ci: drop `-Wno-error=maybe-uninitialized` from win64 cxx flags
eb086540b68 kernel: make logging struct-based and simplify configuration
0c327a34748 kernel: add KernelLogger
16bff77a5aa test: cover orphan reconsideration interruptibility
5f22014aca2 test: require an int in PeerTxRelayer.assert_never_requested
a3c4ad12e92 test: make orphan inherit-rejection getdata checks able to fail
3d976f464d5 kernel: remove API to format and disable logging
4ec80a5d4fa kernel: add log level and category name helpers to wrapper
2ce6cd3d906 kernel: expose btck_LogEntry
d83647e7c48 p2p: Don't apply ping timeout while downloading blocks
69142eacd13 Merge bitcoin/bitcoin#36383: util: remove unused exception parameter in `Popen::execute_process`
2b43c62d8ef p2p: move ping timeout check into SendMessages
8b5bbfe1fca test: add functional test for pings during IBD
a829aeaac1a Merge bitcoin/bitcoin#36412: ci: drop `-U_FORTIFY_SOURCE` from TSAN job
c57ef546c39 ci: use LLVM libc++ 23.1.2
f2a0e7392c6 ci: drop -U_FORTIFY_SOURCE from TSAN job
963f557a721 ci: drop -Wno-error=maybe-uninitialized from win64 flags
9f059527952 Merge bitcoin/bitcoin#36052: ci: Doc: Move all config comments right next to the option they explain
050409b2c55 test: allow 3 bytes of fee overestimate in assert_fee_amount
86ff13a0af0 test: make orphanage_dos_many fill the orphanage
1d19cca0761 fuzz: don't set random state for private broadcast test
6c7c27f615a doc: use onion in proxy help and examples
fd65406b39a net: preserve network name case in proxy errors
b0375749d4d refactor: share proxy network parsing
332c3e8e3e1 test: characterize proxy network name errors
00c1b52ee56 net: remove PrivateBroadcast::DidNodeConfirmReception
dc95a705d40 net: always complete all initial private broadcast connections
7988380da98 Merge bitcoin/bitcoin#36272: guix: split Linux toolchain
01491f22b2c depends: store local package tarballs in WORK_PATH instead of SOURCES_PATH
776fb263759 test: merge PSBT `fallback_locktime` coverage
6fc2ebd5216 test: only merge PSBTs with same version
81ef18236fc tests: test tx rejection for both -acceptnonstdtxn=0 and 1
d4b0e1e4b07 Merge bitcoin/bitcoin#35833: log: prevent user input from injecting fake log lines
b9788a5a10b test: disconnect receiving invalid cmpctblock on optimistic path
8dcf90a9b32 util: cap Sock::WaitMany timeout
fad49a733d6 test: Extract and use sigterm_node in init_fd_overflow_test
7b32155458c wallet: Set last opened and decrypted features du…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants