Skip to content

test: add fuzz test for private broadcast - #35129

Merged
sedited merged 2 commits into
bitcoin:masterfrom
vasild:private_broadcast_fuzz
Jun 30, 2026
Merged

sedited merged 2 commits into
bitcoin:masterfrom
vasild:private_broadcast_fuzz

Conversation

@vasild

@vasild vasild commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

Add a fuzz test that exercises the public methods of the PrivateBroadcast class from src/private_broadcast.h and checks for correctness.

@DrahtBot DrahtBot added the Tests label Apr 21, 2026
@DrahtBot

DrahtBot commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Code Coverage & Benchmarks

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

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK instagibbs, nervana21, frankomosh

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #34707 (net: keep finished private broadcast txs in memory by andrewtoth)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@vasild

vasild commented Apr 21, 2026

Copy link
Copy Markdown
Contributor Author

The test was originally provided by @kevkevinpal in #29415 (comment)

There is a complementary fuzz test in #35090 which exercises the peerman / connman call paths while this one here calls directly the PrivateBroadcast methods.

Comment thread src/test/fuzz/private_broadcast.cpp Resolved
Comment thread src/test/fuzz/private_broadcast.cpp Resolved
@DrahtBot

Copy link
Copy Markdown
Contributor

🚧 At least one of the CI tasks failed.
Task tidy: https://github.com/bitcoin/bitcoin/actions/runs/24723618894/job/72318638206
LLM reason (✨ experimental): CI failed because clang-tidy reported a warnings-as-errors performance-unnecessary-copy-initialization in test/fuzz/private_broadcast.cpp (copy-constructing tx from a const reference).

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

Comment thread src/test/fuzz/private_broadcast.cpp Resolved
Comment thread src/test/fuzz/private_broadcast.cpp Resolved
@vasild
vasild force-pushed the private_broadcast_fuzz branch from d31c86f to 0f07f37 Compare April 22, 2026 08:57
@vasild

vasild commented Apr 22, 2026

Copy link
Copy Markdown
Contributor Author

d31c86f255e12c94402c21b7e98f64eb6de93365...0f07f37c0e11b02f4ca2bfb421c95ce2ba922781: address suggestions and pet tidy

Comment thread src/test/fuzz/private_broadcast.cpp Resolved
Comment thread src/test/fuzz/private_broadcast.cpp Resolved
Comment thread src/test/fuzz/private_broadcast.cpp Resolved
@vasild
vasild force-pushed the private_broadcast_fuzz branch from 0f07f37 to 6cca706 Compare April 22, 2026 14:26
@vasild

vasild commented Apr 22, 2026

Copy link
Copy Markdown
Contributor Author

0f07f37c0e11b02f4ca2bfb421c95ce2ba922781...6cca706a155246cf6ed6c3b166416b2f43cd0415: address suggestions

@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.

concept ACK

coverage looks good

Comment thread src/test/fuzz/private_broadcast.cpp Resolved
Comment thread src/test/fuzz/private_broadcast.cpp Resolved
Comment thread src/test/fuzz/private_broadcast.cpp Resolved
@nervana21

Copy link
Copy Markdown
Contributor

Concept ACK

@frankomosh frankomosh 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.

Concept ACK

Assert(stale.size() <= transactions.size());

for (const auto& stale_tx : stale) {
Assert(transactions.contains(stale_tx));

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.

nit: Maybe, on top of checking that each returned tx is one we know about, we can additionally check time condition ? Maybe track time_added per tx and last_confirmed per node and assert the criterion directly, if it’s worth it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That would require a call to GetBroadcastInfo() and search into its result. I am leaving it as it is for now.

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.

Ok. what I had in mind didn't actually need GetBroadcastInfo(), just tracking time_added/last_confirmed directly in the harness's shadow state. Worked out a diff to confirm it's doable, but it's ~20 extra lines of code that might add a lot of review burden and might not be that useful for now anyways.

@nervana21

Copy link
Copy Markdown
Contributor

tACK 6cca706a155246cf6ed6c3b166416b2f43cd0415

vasild and others added 2 commits June 17, 2026 15:21
Sending more than one transaction to a given node would be a privacy
leak and thus enforce that this is not done. `GetSendStatusByNode()`
assumes unique node ids.

Note that sending more than one transaction to a given address is fine,
if that is done via separate connections, in which case the node ids
would be different.
Co-authored-by: Greg Sanders <[email protected]>
Co-authored-by: Vasil Dimov <[email protected]>
@vasild
vasild force-pushed the private_broadcast_fuzz branch from 6cca706 to 2ee4faf Compare June 17, 2026 13:40
@vasild

vasild commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

6cca706a155246cf6ed6c3b166416b2f43cd0415...2ee4fafa3f4887e1f8cfc1a65a980f9c055549ca: address suggestions

@instagibbs

instagibbs commented Jun 17, 2026 •

Copy link
Copy Markdown
Member

ACK 2ee4faf

Added the new assertion which avoids/detects peerid reuse, and took suggestions. Will run for a bit.

@fanquake
fanquake requested review from marcofleon and removed request for frankomosh June 17, 2026 14:08
Comment on lines +110 to +111
// Only give pristine node ids to PickTxForSend() as required.
const NodeId will_send_to_nodeid{next_nodeid++};

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.

2ee4faf: test: add fuzz test for private broadcast

Now that nodeid reuse is handled, should we update this portion of the fuzzing logic to test that path?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

How? That is a requirement on the caller.

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.

Actually, on second thought, it would be better to test this with a unit test instead of within this fuzz harness.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I mean - if the caller of PickTxForSend() calls it with duplicate node ids that will trigger an assert (in debug builds). Unit or fuzz tests, we don't have a way to trigger asserts and have the tests succeed.

@DrahtBot
DrahtBot requested a review from nervana21 June 22, 2026 10:53
Comment thread src/private_broadcast.cpp Resolved
@DrahtBot
DrahtBot requested a review from nervana21 June 22, 2026 10:54
@nervana21

Copy link
Copy Markdown
Contributor

re-ACK 2ee4faf

@frankomosh

Copy link
Copy Markdown
Contributor

Code Review ACK 2ee4faf.

@sedited
sedited merged commit e35c805 into bitcoin:master Jun 30, 2026
26 checks passed
@vasild
vasild deleted the private_broadcast_fuzz branch June 30, 2026 12:25
mraksoll4 added a commit to bitweb-project/bitweb that referenced this pull request Jul 5, 2026
…n, private-broadcast hardening, mempool package cleanup

bitcoin/bitcoin/pull/35550
bitcoin/bitcoin/pull/35267
bitcoin/bitcoin/pull/34873
bitcoin/bitcoin/pull/35129
bitcoin/bitcoin/pull/35017

- net_processing: enforce BIP152's requirement that sendcmpct's announce
  field be 0 or 1; misbehave and disconnect otherwise.
- rpc: getprivatebroadcastinfo/abortprivatebroadcast now throw if the node
  wasn't started with -privatebroadcast=1, instead of operating on an
  inactive state.
- private_broadcast: wrap the per-tx send-status vector in a TxSendStatus
  struct carrying time_added, and use it to give a freshly-added,
  not-yet-picked tx a 5min grace period before GetStale() flags it --
  previously it was flagged stale (and rebroadcast) within seconds of being
  queued. Also enforce that PickTxForSend() is never called twice with the
  same node id (privacy leak otherwise), and add a general-purpose fuzz
  harness covering the whole PrivateBroadcast API and this invariant.
- validation: on the belt-and-suspenders "PolicyScriptChecks succeeded but
  ConsensusScriptChecks failed" path (not known to be reachable, guarded by
  Assume(false)), remove the failing tx AND all subsequent txs in the
  package from the mempool, not just the one that failed -- avoids leaving
  a later tx whose validity depended on the failed one.

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

Ported from bitcoin/bitcoin:
bitcoin/bitcoin@2d0dce0af5 -- net_processing: fix BIP152 first integer interpretation (brunoerg)
bitcoin/bitcoin@abc33ff043 -- test: announce field must be 0 or 1 in sendcmpct (brunoerg)
bitcoin/bitcoin@7b821ef9b7 -- rpc: getprivatebroadcastinfo/abortprivatebroadcast throw if -privatebroadcast is disabled (Pol Espinasa)
bitcoin/bitcoin@fdc9fc1df2 -- test: check getprivatebroadcast/abortprivatebroadcast throw without -privatebroadcast (Pol Espinasa)
bitcoin/bitcoin@999d18ab1ca6 -- net: introduce TxSendStatus internal state container (Mccalabrese)
bitcoin/bitcoin@325afe664d10 -- net: delay stale evaluation and expose time_added in private broadcast (Mccalabrese)
bitcoin/bitcoin@08b7c61fc703 -- private broadcast: enforce sending to unique node ids (Vasil Dimov)
bitcoin/bitcoin@2ee4fafa3f48 -- test: add fuzz test for private broadcast (kevkevinpal, co-authored by Greg Sanders, Vasil Dimov)
bitcoin/bitcoin@ac9aa71b7f -- mempool: remove all subsequent tx in pkg on failure (Greg Sanders)

also addet helper for 31.x code base to src/test/util/time.h to support "FakeNodeTime"

Tree-SHA512: e7a7a18492eca2f2106fb04991fbd64f678890898ef261b4a7fb5cf49d85e8f8588c47350ef4d7ae1cb94e53ffb24e8d2125d145023175c8adc1bf7aea258da5
mraksoll4 added a commit to bitweb-project/bitweb that referenced this pull request Jul 5, 2026
…n, private-broadcast hardening, mempool package cleanup

bitcoin/bitcoin/pull/35550
bitcoin/bitcoin/pull/35267
bitcoin/bitcoin/pull/34873
bitcoin/bitcoin/pull/35129
bitcoin/bitcoin/pull/35017

- net_processing: enforce BIP152's requirement that sendcmpct's announce
  field be 0 or 1; misbehave and disconnect otherwise.
- rpc: getprivatebroadcastinfo/abortprivatebroadcast now throw if the node
  wasn't started with -privatebroadcast=1, instead of operating on an
  inactive state.
- private_broadcast: wrap the per-tx send-status vector in a TxSendStatus
  struct carrying time_added, and use it to give a freshly-added,
  not-yet-picked tx a 5min grace period before GetStale() flags it --
  previously it was flagged stale (and rebroadcast) within seconds of being
  queued. Also enforce that PickTxForSend() is never called twice with the
  same node id (privacy leak otherwise), and add a general-purpose fuzz
  harness covering the whole PrivateBroadcast API and this invariant.
- validation: on the belt-and-suspenders "PolicyScriptChecks succeeded but
  ConsensusScriptChecks failed" path (not known to be reachable, guarded by
  Assume(false)), remove the failing tx AND all subsequent txs in the
  package from the mempool, not just the one that failed -- avoids leaving
  a later tx whose validity depended on the failed one.

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

Ported from bitcoin/bitcoin:
bitcoin/bitcoin@2d0dce0af5 -- net_processing: fix BIP152 first integer interpretation (brunoerg)
bitcoin/bitcoin@abc33ff043 -- test: announce field must be 0 or 1 in sendcmpct (brunoerg)
bitcoin/bitcoin@7b821ef9b7 -- rpc: getprivatebroadcastinfo/abortprivatebroadcast throw if -privatebroadcast is disabled (Pol Espinasa)
bitcoin/bitcoin@fdc9fc1df2 -- test: check getprivatebroadcast/abortprivatebroadcast throw without -privatebroadcast (Pol Espinasa)
bitcoin/bitcoin@999d18ab1ca6 -- net: introduce TxSendStatus internal state container (Mccalabrese)
bitcoin/bitcoin@325afe664d10 -- net: delay stale evaluation and expose time_added in private broadcast (Mccalabrese)
bitcoin/bitcoin@08b7c61fc703 -- private broadcast: enforce sending to unique node ids (Vasil Dimov)
bitcoin/bitcoin@2ee4fafa3f48 -- test: add fuzz test for private broadcast (kevkevinpal, co-authored by Greg Sanders, Vasil Dimov)
bitcoin/bitcoin@ac9aa71b7f -- mempool: remove all subsequent tx in pkg on failure (Greg Sanders)

also addet helper for 31.x code base to src/test/util/time.h to support "FakeNodeTime"

Tree-SHA512: 8dd7987da716d9920c4920b32fbb84adb44727a3f259b10ae7aae1eab1c9e78c69615e822cfab2abd8ae339ef3b2ac6632092f35cbe7dab7d34860249aeec931
mraksoll4 added a commit to bitweb-project/bitweb that referenced this pull request Jul 5, 2026
bitcoin/bitcoin/pull/35550
bitcoin/bitcoin/pull/35129

- net_processing: enforce BIP152's requirement that sendcmpct's announce
  field be 0 or 1; misbehave and disconnect otherwise.
- validation: on the belt-and-suspenders "PolicyScriptChecks succeeded but
  ConsensusScriptChecks failed" path (not known to be reachable, guarded by
  Assume(false)), remove the failing tx AND all subsequent txs in the
  package from the mempool, not just the one that failed -- avoids leaving
  a later tx whose validity depended on the failed one.

Ported from bitcoin/bitcoin:
bitcoin/bitcoin@2d0dce0af5 -- net_processing: fix BIP152 first integer interpretation (brunoerg)
bitcoin/bitcoin@abc33ff043 -- test: announce field must be 0 or 1 in sendcmpct (brunoerg)
bitcoin/bitcoin@ac9aa71b7f -- mempool: remove all subsequent tx in pkg on failure (Greg Sanders)

Adapted for 30.x: net_processing.cpp's ProcessMessage() holds `peer` as a
local PeerRef (not a `Peer&` parameter as on master), so the misbehavior
call uses the existing 30.x dereference pattern, Misbehaving(*peer, ...),
matching the other 8 call sites in the same function. validation.cpp's
SubmitPackage() required no adaptation -- code context matched master's
pre-fix state exactly.

Tree-SHA512: 2660cc2316e0c6a0b1fe473cb55d42b60a4899d711d76366ec64a9a575d4de8340ccf74d0a4bb10c288a3ceaed631409ffc86947314b76fa81b7e80ede737ba2
}
};

struct CTransactionRefComp {

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.

Any particular reason to duplicate this? Maybe it's better to move it to util/hasher.{h,cpp}. I need the same comparator in #33922 / Sjors#120. In any case, I'll add a commit there to move it.

alexanderwiederin added a commit to alexanderwiederin/rust-bitcoinkernel that referenced this pull request Jul 9, 2026
…f591d0b84

2df591d0b84 kernel: Add script tracer
f26c15bdd28 Merge bitcoin/bitcoin#35397: ci: add OpenBSD Clang cross job
dc282ff31d1 Merge bitcoin/bitcoin#35597: logging: More fully remove libevent log category
ec98037f7ae Merge bitcoin/bitcoin#35615: fuzz: restore CreateSock in PCP targets
43d89bb6e10 Merge bitcoin/bitcoin#35610: bitcoin-util: Add netmagic command
e35c8054894 Merge bitcoin/bitcoin#35129: test: add fuzz test for private broadcast
a318f43254c bitcoin-util: Add netmagic command
3c76bd43568 Merge bitcoin/bitcoin#35603: build: QRencode cleanups
57b3bf84960 Merge bitcoin/bitcoin#35609: ci: Bump tsan config to ubuntu:26.04 with -U_FORTIFY_SOURCE
d64ea158240 ci: add openBSD cross CI job
5404b620742 depends: add openbsd_LDFLAGS
2a9e35d293b Merge bitcoin/bitcoin#35588: scripted-diff: Rename `Sock::{RECV,SEND,ERR}`
a0e5e30010a fuzz: restore CreateSock in PCP targets
41ceea400e8 scripted-diff: Rename `StatusLevel::{INFO,WARN,ERR}`
f395acdeeea scripted-diff: Rename `Sock::{RECV,SEND,ERR}`
7a74f652935 Merge bitcoin/bitcoin#35536: fuzz: share a single mocked steady clock across FuzzedSock instances
e1290ce7f74 Merge bitcoin/bitcoin#35543: test: introduce ExtendedPrivateKey and ExtendedPublicKey classes
7ac25c91771 util, refactor: Rename local `ERR` in `Sock::Accept`
bbbbab86a81 ci: Bump tsan config to ubuntu:26.04 with -U_FORTIFY_SOURCE
ea9afb61a1c Merge bitcoin/bitcoin#35602: doc: Clarify build docs about `pkgconf` / `pkg-config` requirements
672eedc46b0 Merge bitcoin/bitcoin#35220: fuzz: connman: strengthen assertions and extend coverage
0e5c718d8af Merge bitcoin/bitcoin#35506: test: ensure group data cluster pointers are live
93012d7ff91 Merge bitcoin/bitcoin#35601: wallet: remove experimental warning from send and sendall
829255c8bed cmake: Remove `SelectLibraryConfigurations` from `FindQRencode` module
5c55606da9b depends: Remove unused `lib/pkgconfig` in `qrencode` package
402ba10b20b cmake: Drop optional `PkgConfig` use in `FindQRencode` module
8ebfff0f88b doc: add send RPC release note
fb8a1038867 doc: Clarify build docs about `pkgconf` / `pkg-config` requirements
5884f5a4fa9 wallet: remove experimental warning from send RPCs
7b84e5106c3 Merge bitcoin/bitcoin#35595: ci: remove some packages from Chimera job
58560c281d0 ci: remove some packages from Chimera job
295ce6f45c8 Merge bitcoin/bitcoin#35576: test: raise `feature_reindex` RPC timeout
633044f1436 Merge bitcoin/bitcoin#35266: rpc, wallet: add an option to not load the wallet after migrating
d6269e2a903 Merge bitcoin/bitcoin#35594: fuzz: cover async chainstate compaction
3765b428d19 logging: More fully remove libevent log category
703a671fbc2 fuzz: compact coins view db during fuzzing
0868c85fd57 refactor: rename async coin compaction
6fa4132298a fuzz: share a single mocked steady clock across FuzzedSock instances
8791c4764ca test: use ExtendedPrivateKey in wallet_taproot.py
89ceafafb9f test: use ExtendedPrivateKey in wallet_listdescriptors.py
bbfffcab588 test: use ExtendedPrivateKey in wallet_send.py
2ab6e590f73 test: use ExtendedPrivateKey in wallet_keypool.py
9e20118720d test: use ExtendedPrivateKey in wallet_fundrawtransaction.py
06af0cddbb9 test: use ExtendedPrivateKey in wallet_descriptor.py
4100fac20e8 test: use ExtendedPrivateKey in wallet_createwallet.py
ff3f6def9a5 test: use ExtendedPrivateKey in wallet_bumpfee.py
003f2a01f63 test: use ExtendedPrivateKey in feature_notifications.py
f988e6d6e64 test: use ExtendedPrivateKey in wallet_importdescriptors.py
0cdd817a82a add release note
517d37ce3eb test: tests wallet migration with load_wallet disabled
b98dd63da7b rpc: Add load_wallet argument to migratewallet RPC
4acd063ba6f wallet: make loading the wallet after migrating optional
1a3cfdf1b7a fuzz: connman: cover AddLocalServices/RemoveLocalServices
c507fb30634 fuzz: connman: add outbound-bytes invariants
4a6fce43ead fuzz: connman: add AddNode/RemoveAddedNode invariants
9e6546c517c test: raise reindex mining RPC timeout
d2a03d50acb test: add extendedkey.py unit tests by using BIP32 test vectors
afdb3780821 test: introduce ExtendedPrivateKey and ExtendedPublicKey classes
2ee4fafa3f4 test: add fuzz test for private broadcast
08b7c61fc70 private broadcast: enforce sending to unique node ids
4dbaa7cc65b test: generalise byte_to_base58 utility function to allow more version types
df9eb72b129 test: ensure group data cluster pointers are live
a5859edef45 fuzz: connman: set m_local_services/m_use_addrman_outgoing/m_max_automatic_connections
4b84c9125ad fuzz: connman: add network activity invariants
97d08d62baf refactor: store wallet names to MigrationResult

git-subtree-dir: libbitcoinkernel-sys/bitcoin
git-subtree-split: 2df591d0b8497b5b1fb48b762990b829acd5f843
alexanderwiederin added a commit to alexanderwiederin/rust-bitcoinkernel that referenced this pull request Jul 9, 2026
…f591d0b84

2df591d0b84 kernel: Add script tracer
f26c15bdd28 Merge bitcoin/bitcoin#35397: ci: add OpenBSD Clang cross job
dc282ff31d1 Merge bitcoin/bitcoin#35597: logging: More fully remove libevent log category
ec98037f7ae Merge bitcoin/bitcoin#35615: fuzz: restore CreateSock in PCP targets
43d89bb6e10 Merge bitcoin/bitcoin#35610: bitcoin-util: Add netmagic command
e35c8054894 Merge bitcoin/bitcoin#35129: test: add fuzz test for private broadcast
a318f43254c bitcoin-util: Add netmagic command
3c76bd43568 Merge bitcoin/bitcoin#35603: build: QRencode cleanups
57b3bf84960 Merge bitcoin/bitcoin#35609: ci: Bump tsan config to ubuntu:26.04 with -U_FORTIFY_SOURCE
d64ea158240 ci: add openBSD cross CI job
5404b620742 depends: add openbsd_LDFLAGS
2a9e35d293b Merge bitcoin/bitcoin#35588: scripted-diff: Rename `Sock::{RECV,SEND,ERR}`
a0e5e30010a fuzz: restore CreateSock in PCP targets
41ceea400e8 scripted-diff: Rename `StatusLevel::{INFO,WARN,ERR}`
f395acdeeea scripted-diff: Rename `Sock::{RECV,SEND,ERR}`
7a74f652935 Merge bitcoin/bitcoin#35536: fuzz: share a single mocked steady clock across FuzzedSock instances
e1290ce7f74 Merge bitcoin/bitcoin#35543: test: introduce ExtendedPrivateKey and ExtendedPublicKey classes
7ac25c91771 util, refactor: Rename local `ERR` in `Sock::Accept`
bbbbab86a81 ci: Bump tsan config to ubuntu:26.04 with -U_FORTIFY_SOURCE
ea9afb61a1c Merge bitcoin/bitcoin#35602: doc: Clarify build docs about `pkgconf` / `pkg-config` requirements
672eedc46b0 Merge bitcoin/bitcoin#35220: fuzz: connman: strengthen assertions and extend coverage
0e5c718d8af Merge bitcoin/bitcoin#35506: test: ensure group data cluster pointers are live
93012d7ff91 Merge bitcoin/bitcoin#35601: wallet: remove experimental warning from send and sendall
829255c8bed cmake: Remove `SelectLibraryConfigurations` from `FindQRencode` module
5c55606da9b depends: Remove unused `lib/pkgconfig` in `qrencode` package
402ba10b20b cmake: Drop optional `PkgConfig` use in `FindQRencode` module
8ebfff0f88b doc: add send RPC release note
fb8a1038867 doc: Clarify build docs about `pkgconf` / `pkg-config` requirements
5884f5a4fa9 wallet: remove experimental warning from send RPCs
7b84e5106c3 Merge bitcoin/bitcoin#35595: ci: remove some packages from Chimera job
58560c281d0 ci: remove some packages from Chimera job
295ce6f45c8 Merge bitcoin/bitcoin#35576: test: raise `feature_reindex` RPC timeout
633044f1436 Merge bitcoin/bitcoin#35266: rpc, wallet: add an option to not load the wallet after migrating
d6269e2a903 Merge bitcoin/bitcoin#35594: fuzz: cover async chainstate compaction
3765b428d19 logging: More fully remove libevent log category
703a671fbc2 fuzz: compact coins view db during fuzzing
0868c85fd57 refactor: rename async coin compaction
6fa4132298a fuzz: share a single mocked steady clock across FuzzedSock instances
8791c4764ca test: use ExtendedPrivateKey in wallet_taproot.py
89ceafafb9f test: use ExtendedPrivateKey in wallet_listdescriptors.py
bbfffcab588 test: use ExtendedPrivateKey in wallet_send.py
2ab6e590f73 test: use ExtendedPrivateKey in wallet_keypool.py
9e20118720d test: use ExtendedPrivateKey in wallet_fundrawtransaction.py
06af0cddbb9 test: use ExtendedPrivateKey in wallet_descriptor.py
4100fac20e8 test: use ExtendedPrivateKey in wallet_createwallet.py
ff3f6def9a5 test: use ExtendedPrivateKey in wallet_bumpfee.py
003f2a01f63 test: use ExtendedPrivateKey in feature_notifications.py
f988e6d6e64 test: use ExtendedPrivateKey in wallet_importdescriptors.py
0cdd817a82a add release note
517d37ce3eb test: tests wallet migration with load_wallet disabled
b98dd63da7b rpc: Add load_wallet argument to migratewallet RPC
4acd063ba6f wallet: make loading the wallet after migrating optional
1a3cfdf1b7a fuzz: connman: cover AddLocalServices/RemoveLocalServices
c507fb30634 fuzz: connman: add outbound-bytes invariants
4a6fce43ead fuzz: connman: add AddNode/RemoveAddedNode invariants
9e6546c517c test: raise reindex mining RPC timeout
d2a03d50acb test: add extendedkey.py unit tests by using BIP32 test vectors
afdb3780821 test: introduce ExtendedPrivateKey and ExtendedPublicKey classes
2ee4fafa3f4 test: add fuzz test for private broadcast
08b7c61fc70 private broadcast: enforce sending to unique node ids
4dbaa7cc65b test: generalise byte_to_base58 utility function to allow more version types
df9eb72b129 test: ensure group data cluster pointers are live
a5859edef45 fuzz: connman: set m_local_services/m_use_addrman_outgoing/m_max_automatic_connections
4b84c9125ad fuzz: connman: add network activity invariants
97d08d62baf refactor: store wallet names to MigrationResult

git-subtree-dir: libbitcoinkernel-sys/bitcoin
git-subtree-split: 2df591d0b8497b5b1fb48b762990b829acd5f843
oleonardolima added a commit to oleonardolima/rust-bitcoinkernel that referenced this pull request Jul 9, 2026
…05fc7ab

81405fc7ab Merge bitcoin/bitcoin#35689: test: Inline incorrect check in `util_tests`
cd2a4bc510 test: Redeclare variable as signed in `util_tests`
6f1c56f03a Merge bitcoin/bitcoin#35670: net: optimize compact block extra tx iteration
e94fda8a40 Merge bitcoin/bitcoin#35685: doc: Archive 30.3 release notes
5223cf1795 Merge bitcoin/bitcoin#35616: refactor: Use u64 over size_t for all cache sizes to fix a 32-bit overflow
c0e91efdb3 Merge bitcoin/bitcoin#35295: validation: fetch block input prevouts in parallel during ConnectBlock
f0da26cfc8 Merge bitcoin/bitcoin#34997: p2p: Don't participate in addr relay with feelers
443179a9eb doc: Archive 30.3 release notes
fabafd91f1 refactor: Use u64 over size_t for all cache sizes to fix a 32-bit overflow
32941e1314 Merge bitcoin/bitcoin#35649: depends: move FreeBSD SDK handling to CI
f379d716b1 Merge bitcoin/bitcoin#35669: doc: archive release notes for v31.1
881bb7b355 Merge bitcoin/bitcoin#35673: refactor: Move LoadGenesisBlock to ChainstateManager
3f3e644beb Merge bitcoin/bitcoin#35678: private broadcast: define and use new RPC_LIMIT_EXCEEDED error code ( + other follow-ups)
e3b026bf56 Merge bitcoin/bitcoin#34020: mining: add getTransactions(ByWitnessID) IPC methods
62f9089343 Merge bitcoin/bitcoin#35386: doc: add an AI contribution policy
fa615bd163 refactor: Move LoadGenesisBlock to ChainstateManager
8ac222484c private broadcast: remove no-op [[nodiscard]]
191bdcba26 test: align test better with described scenario
7ad311be18 test: use BOOST_CHECK_EQUAL for PrivateBroadcast::AddResult
82a02a2a22 rpc: define and use new  RPC_LIMIT_EXCEEDED error code
a64df338e6 Merge bitcoin/bitcoin#35651: doc: Improve offline-signing-tutorial after 32489
4498fa5d5b Merge bitcoin/bitcoin#35406: private broadcast: limit outstanding txs to count of 10,000
ec5edcd72b Merge bitcoin/bitcoin#35661: Update libmultiprocess subtree to add `ThreadMap.makePool` method
ea67fea062 Merge bitcoin/bitcoin#35464: kernel: Add function for creating chainparams with a signet challenge
a7b5f23bb8 Merge bitcoin/bitcoin#35667: refactor: Use `NetworkErrorString` for macOS code in `netif.cpp`
69fc991791 Merge bitcoin/bitcoin#32606: p2p: Drop unsolicited CMPCTBLOCK from non-HB peer and when blocksonly
1a3cbf1bd2 net: optimize compact block extra tx iteration
bc33509ae2 Merge bitcoin/bitcoin#35650: doc: Add release notes for 32489 (exportwatchonlywallet RPC)
2b6e767d96 doc: archive release notes for v31.1
b0735336ee p2p: Don't participate in addr relay with feeler connections
302733fd96 Merge bitcoin/bitcoin#35652: init: fix reindex deadlock by waking cv after interrupt
c1313b199f init: wake genesis wait after ImportBlocks() returns
eccb04a321 refactor: Use `NetworkErrorString` for macOS code in `netif.cpp`
f79ecfd9c7 Merge bitcoin/bitcoin#35658: refactor: Drop unneeded `<sys/types.h>` include before `<ifaddrs.h>`
22ac4ad949 ci: ensure we use correct lld version in OpenBSD job
495f43f7b3 ci: FreeBSD 15.1
244739db9d depends: move FreeBSD SDK handling to CI
bab0120053 Merge bitcoin/bitcoin#35621: validation: Ignore eventual error message from flushing in AcceptBlock
02afa66169 Merge commit '6b0a907302364649dcaffeb0340b985f14141b4e' into pr/subtree-11
6b0a907302 Squashed 'src/ipc/libmultiprocess/' changes from 3edbe8f67c1..16bf05dea02
22c328d388 refactor: Drop unneeded `<sys/types.h>` include before `<ifaddrs.h>`
2063f02bd5 Merge bitcoin/bitcoin#35510: test: SOCKS5 proxy: expect that connection may be reset during SOCKS5 handshake or data forwarding
1360001f43 Merge bitcoin/bitcoin#34959: wallet: Enforce BDB btree levels and overflow item sizes
10ffef4b3b Merge bitcoin/bitcoin#35604: log: expose `-logratelimit` in normal help
b393985aa0 Merge bitcoin/bitcoin#35634: txospenderindex: use zero-byte entry values
1835f2fcbf Merge bitcoin/bitcoin#35653: fuzz: Remove `ConsumeUniValue`
9f3e427228 fuzz: Remove ConsumeUniValue
68cb7840d2 doc: improve offline-signing-tutorial after 32489
32ddfc92d9 Merge bitcoin/bitcoin#35599: doc: Add release notes for #33671 (getbalances nonmempool field)
f56804bcf5 Merge bitcoin/bitcoin#35640: ci: use a 8x instance over 16x for riscv job
239d6c5260 Merge bitcoin/bitcoin#35614: HTTPServer: Prevent race condition between worker thread and I/O thread
cddbad325d doc: Add release notes for 32489 (exportwatchonlywallet RPC)
0a1bbec688 Merge bitcoin/bitcoin#32489: wallet: Add `exportwatchonlywallet` RPC to export a watchonly version of a wallet
4a007126fb Merge bitcoin/bitcoin#35147: depends: Boost 1.91.0-1
31abaa264c doc: add an AI contribution policy
a15bdc0598 doc: update offline-signing-tutorial to use exportwatchonlywallet rpc
a388076401 test: Test for exportwatchonlywallet
d053e3e5c8 wallet, rpc: Add exportwatchonlywallet RPC
444878efef wallet: Add CWallet::ExportWatchOnly
f9273f01db wallet: Move listdescriptors retrieving from RPC to CWallet
a1c83789a7 wallet: Write new descriptor's cache in AddWalletDescriptor
1e996640e6 wallet: Use Descriptor::CanSelfExpand() in CanGetAddresses()
d2ee9227da descriptor: Add CanSelfExpand()
2990bd7735 Merge bitcoin/bitcoin#35118: fuzz: add ipc round-trip fuzz target
fb1d152c24 depends: Boost 1.91.0-1
ba48852f9e Merge bitcoin/bitcoin#35438: test: introduce NodeSigner, run feature_taproot.py without wallet compiled
47bbed052e ci: use true|false over "true|false"
9a25bc3989 ci: use a 8x instance over 16x
9871dc7ab4 Merge bitcoin/bitcoin#31425: CI: Add Riscv bare metal job
113402286e doc: add txospenderindex release note
ce06878288 index: shrink txospenderindex value markers
a99148d576 test kernel: Don't log on warnings change
5b4fd284f4 kernel: Generate a signet with a challenge
037ad77071 fuzz: add IPC round-trip target
a8823c0996 Merge bitcoin/bitcoin#35607: nanobench: fix performance counter buffer initialization
f26c15bdd2 Merge bitcoin/bitcoin#35397: ci: add OpenBSD Clang cross job
91586f701e test: introduce NodeSigner, run feature_taproot.py without wallet compiled
771200ca43 test: return full keypair from `getnewdestination` helper
4e29de719e private broadcast: add release note for limited cap
cbf8c107c1 Release cs_main between individual private tx re-attempts
5aea3d0373 private broadcast: limit outstanding txs to count of 10,000
dc282ff31d Merge bitcoin/bitcoin#35597: logging: More fully remove libevent log category
ec98037f7a Merge bitcoin/bitcoin#35615: fuzz: restore CreateSock in PCP targets
43d89bb6e1 Merge bitcoin/bitcoin#35610: bitcoin-util: Add netmagic command
e35c805489 Merge bitcoin/bitcoin#35129: test: add fuzz test for private broadcast
dc1c17c085 doc: add release notes
0e10937184 fuzz: add coins_view_stacked fuzz harness to test concurrent leveldb reads
ce610a6ff4 fuzz: update harnesses to cover CoinsViewOverlay::StartFetching
760fb22dc3 test: add unit tests for CoinsViewOverlay::StartFetching
d69a3b20de doc: update CoinsViewOverlay docstring to describe parallel fetching
ab2a379237 coins: fetch inputs in parallel
fdf283036a coins: add ready flag to InputToFetch
ede11b8314 validation: collect block inputs in CoinsViewOverlay before ConnectBlock
f82043af50 coins: introduce thread pool in CoinsViewOverlay
5bf1c32008 validation: add -prevoutfetchthreads configuration option
a318f43254 bitcoin-util: Add netmagic command
256482ab56 validation: In AcceptBlock, ignore flush result
3c76bd4356 Merge bitcoin/bitcoin#35603: build: QRencode cleanups
f595daf1dd test: ensure HTTPServer race condition is fixed
b98b10c072 test: introduce a worker thread in http socket error test
922b08d375 test: socket error handling in HTTPServer using ErrorSock mock socket
73da2a8a52 http: prevent race condition between worker thread and I/O thread
57b3bf8496 Merge bitcoin/bitcoin#35609: ci: Bump tsan config to ubuntu:26.04 with -U_FORTIFY_SOURCE
d64ea15824 ci: add openBSD cross CI job
5404b62074 depends: add openbsd_LDFLAGS
2a9e35d293 Merge bitcoin/bitcoin#35588: scripted-diff: Rename `Sock::{RECV,SEND,ERR}`
a0e5e30010 fuzz: restore CreateSock in PCP targets
41ceea400e scripted-diff: Rename `StatusLevel::{INFO,WARN,ERR}`
f395acdeee scripted-diff: Rename `Sock::{RECV,SEND,ERR}`
7a74f65293 Merge bitcoin/bitcoin#35536: fuzz: share a single mocked steady clock across FuzzedSock instances
e1290ce7f7 Merge bitcoin/bitcoin#35543: test: introduce ExtendedPrivateKey and ExtendedPublicKey classes
7ac25c9177 util, refactor: Rename local `ERR` in `Sock::Accept`
bbbbab86a8 ci: Bump tsan config to ubuntu:26.04 with -U_FORTIFY_SOURCE
095596ddf7 log: expose -logratelimit option
ea9afb61a1 Merge bitcoin/bitcoin#35602: doc: Clarify build docs about `pkgconf` / `pkg-config` requirements
672eedc46b Merge bitcoin/bitcoin#35220: fuzz: connman: strengthen assertions and extend coverage
0e5c718d8a Merge bitcoin/bitcoin#35506: test: ensure group data cluster pointers are live
b6b1d0653a nanobench: fix perf counter buffer init
93012d7ff9 Merge bitcoin/bitcoin#35601: wallet: remove experimental warning from send and sendall
829255c8be cmake: Remove `SelectLibraryConfigurations` from `FindQRencode` module
5c55606da9 depends: Remove unused `lib/pkgconfig` in `qrencode` package
402ba10b20 cmake: Drop optional `PkgConfig` use in `FindQRencode` module
8ebfff0f88 doc: add send RPC release note
fb8a103886 doc: Clarify build docs about `pkgconf` / `pkg-config` requirements
5884f5a4fa wallet: remove experimental warning from send RPCs
7b84e5106c Merge bitcoin/bitcoin#35595: ci: remove some packages from Chimera job
58560c281d ci: remove some packages from Chimera job
295ce6f45c Merge bitcoin/bitcoin#35576: test: raise `feature_reindex` RPC timeout
b36730a3ef  Add CI job for riscv bare metal
bfdbf513f6 Add CI job for producing a static bare metal binary
a9a1d92a1d build: Add option for building for bare metal envs
9b2ef81757 doc: add release notes for #33671 (getbalances nonmempool field)
633044f143 Merge bitcoin/bitcoin#35266: rpc, wallet: add an option to not load the wallet after migrating
d6269e2a90 Merge bitcoin/bitcoin#35594: fuzz: cover async chainstate compaction
3765b428d1 logging: More fully remove libevent log category
703a671fbc fuzz: compact coins view db during fuzzing
0868c85fd5 refactor: rename async coin compaction
6fa4132298 fuzz: share a single mocked steady clock across FuzzedSock instances
8791c4764c test: use ExtendedPrivateKey in wallet_taproot.py
89ceafafb9 test: use ExtendedPrivateKey in wallet_listdescriptors.py
bbfffcab58 test: use ExtendedPrivateKey in wallet_send.py
2ab6e590f7 test: use ExtendedPrivateKey in wallet_keypool.py
9e20118720 test: use ExtendedPrivateKey in wallet_fundrawtransaction.py
06af0cddbb test: use ExtendedPrivateKey in wallet_descriptor.py
4100fac20e test: use ExtendedPrivateKey in wallet_createwallet.py
ff3f6def9a test: use ExtendedPrivateKey in wallet_bumpfee.py
003f2a01f6 test: use ExtendedPrivateKey in feature_notifications.py
f988e6d6e6 test: use ExtendedPrivateKey in wallet_importdescriptors.py
0cdd817a82 add release note
517d37ce3e test: tests wallet migration with load_wallet disabled
b98dd63da7 rpc: Add load_wallet argument to migratewallet RPC
4acd063ba6 wallet: make loading the wallet after migrating optional
1a3cfdf1b7 fuzz: connman: cover AddLocalServices/RemoveLocalServices
c507fb3063 fuzz: connman: add outbound-bytes invariants
4a6fce43ea fuzz: connman: add AddNode/RemoveAddedNode invariants
9e6546c517 test: raise reindex mining RPC timeout
d2a03d50ac test: add extendedkey.py unit tests by using BIP32 test vectors
afdb378082 test: introduce ExtendedPrivateKey and ExtendedPublicKey classes
55e3a57f22 qa: Avoid UTXO reuse between test functions
9c5dd2926a p2p: Ignore CMPCTBLOCK from peer that hasn't sent SENDCMPCT
bf9884f4e5 p2p: make blocksonly nodes ignore CMPCTBLOCK messages
92cea63c71 test: (Un)solicited invalid cb -> get disconnected.
e845e26344 test: p2p: Nodes ignore unsolicited CMPCTBLOCK's
8313591715 p2p: Drop unsolicited CMPCTBLOCK from non-HB peer
44f377a71f refactor: test: Static assert_highbandwidth_states
25457a3272 test: Tighten getblocktxn checks in parallel cb reconstruction test.
2ee4fafa3f test: add fuzz test for private broadcast
08b7c61fc7 private broadcast: enforce sending to unique node ids
9a8ef9b0a3 test: SOCKS5 proxy: expect that connection may be reset during handshake
eb3208364a test: SOCKS5 proxy: expect that connection may be reset when forwarding
4dbaa7cc65 test: generalise byte_to_base58 utility function to allow more version types
df9eb72b12 test: ensure group data cluster pointers are live
a5859edef4 fuzz: connman: set m_local_services/m_use_addrman_outgoing/m_max_automatic_connections
4b84c9125a fuzz: connman: add network activity invariants
9784818442 mining: add getTransactionsByWitnessID() IPC method
d282ae6883 mining: add getTransactionsByTxID() IPC method
0d5e4d4712 test: restart node after IPC option override test
f16b3613cd ipc: Serialize null CTransactionRef as empty Data
0f466e1094 mempool: add lookup by witness hash
51dd90fb50 refactor: Merge announce_cmpct_block() defs into one
97d08d62ba refactor: store wallet names to MigrationResult
8a739a5510 build: allow ipc fuzz builds
b2de59d486 wallet, bdbro: Validate btree page levels
dc3a2b9c3b wallet, bdbro: Enforce overflow data lengths

git-subtree-dir: libbitcoinkernel-sys/bitcoin
git-subtree-split: 81405fc7abbd1889f3978b8924e7acbe12b3403b
Kino1994 pushed a commit to Kino1994/bitcoin-full-history that referenced this pull request Jul 10, 2026
7b46745 test: add fuzz test for private broadcast (kevkevinpal)
e3d90d8 private broadcast: enforce sending to unique node ids (Vasil Dimov)

Pull request description:

  Add a fuzz test that exercises the public methods of the `PrivateBroadcast` class from `src/private_broadcast.h` and checks for correctness.

ACKs for top commit:
  instagibbs:
    ACK 7b46745
  nervana21:
    re-ACK 7b46745
  frankomosh:
    Code Review ACK 7b46745.

Tree-SHA512: 35f9efcf9e7ea8bd071f6b607fd7c901b60ccf14610f501e6cf06f0d05c389424ab8a0c25a2aaffd5755c8f920af4834e0979cae72a474680170de2b94d06e1c
mraksoll4 added a commit to dpowcore-project/dpowcoin that referenced this pull request Aug 5, 2026
…n, private-broadcast hardening, mempool package cleanup

bitcoin/pull/35550
bitcoin/pull/35267
bitcoin/pull/34873
bitcoin/pull/35129
bitcoin/pull/35017

- net_processing: enforce BIP152's requirement that sendcmpct's announce
  field be 0 or 1; misbehave and disconnect otherwise.
- rpc: getprivatebroadcastinfo/abortprivatebroadcast now throw if the node
  wasn't started with -privatebroadcast=1, instead of operating on an
  inactive state.
- private_broadcast: wrap the per-tx send-status vector in a TxSendStatus
  struct carrying time_added, and use it to give a freshly-added,
  not-yet-picked tx a 5min grace period before GetStale() flags it --
  previously it was flagged stale (and rebroadcast) within seconds of being
  queued. Also enforce that PickTxForSend() is never called twice with the
  same node id (privacy leak otherwise), and add a general-purpose fuzz
  harness covering the whole PrivateBroadcast API and this invariant.
- validation: on the belt-and-suspenders "PolicyScriptChecks succeeded but
  ConsensusScriptChecks failed" path (not known to be reachable, guarded by
  Assume(false)), remove the failing tx AND all subsequent txs in the
  package from the mempool, not just the one that failed -- avoids leaving
  a later tx whose validity depended on the failed one.

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

Ported from bitcoin/bitcoin:
bitcoin/bitcoin@2d0dce0af5 -- net_processing: fix BIP152 first integer interpretation (brunoerg)
bitcoin/bitcoin@abc33ff043 -- test: announce field must be 0 or 1 in sendcmpct (brunoerg)
bitcoin/bitcoin@7b821ef9b7 -- rpc: getprivatebroadcastinfo/abortprivatebroadcast throw if -privatebroadcast is disabled (Pol Espinasa)
bitcoin/bitcoin@fdc9fc1df2 -- test: check getprivatebroadcast/abortprivatebroadcast throw without -privatebroadcast (Pol Espinasa)
bitcoin/bitcoin@999d18ab1ca6 -- net: introduce TxSendStatus internal state container (Mccalabrese)
bitcoin/bitcoin@325afe664d10 -- net: delay stale evaluation and expose time_added in private broadcast (Mccalabrese)
bitcoin/bitcoin@08b7c61fc703 -- private broadcast: enforce sending to unique node ids (Vasil Dimov)
bitcoin/bitcoin@2ee4fafa3f48 -- test: add fuzz test for private broadcast (kevkevinpal, co-authored by Greg Sanders, Vasil Dimov)
bitcoin/bitcoin@ac9aa71b7f -- mempool: remove all subsequent tx in pkg on failure (Greg Sanders)

also addet helper for 31.x code base to src/test/util/time.h to support "FakeNodeTime"

Tree-SHA512: 15abb7ee85f5104e43525d5e73dade454aa535336027c1f6761538198cfc67c9fde92faa1b4de7ff889bac44b59b93412c50fc2a660858ac006c1468872fa528
Kino1994 pushed a commit to Kino1994/bitcoin-full-history that referenced this pull request Aug 19, 2026
2ee4fafa3f4887e1f8cfc1a65a980f9c055549ca test: add fuzz test for private broadcast (kevkevinpal)
08b7c61fc70393a94a40c6be8280b18fc14a4af7 private broadcast: enforce sending to unique node ids (Vasil Dimov)

Pull request description:

  Add a fuzz test that exercises the public methods of the `PrivateBroadcast` class from `src/private_broadcast.h` and checks for correctness.

ACKs for top commit:
  instagibbs:
    ACK 2ee4fafa3f4887e1f8cfc1a65a980f9c055549ca
  nervana21:
    re-ACK 2ee4fafa3f4887e1f8cfc1a65a980f9c055549ca
  frankomosh:
    Code Review ACK 2ee4fafa3f4887e1f8cfc1a65a980f9c055549ca.

Tree-SHA512: 35f9efcf9e7ea8bd071f6b607fd7c901b60ccf14610f501e6cf06f0d05c389424ab8a0c25a2aaffd5755c8f920af4834e0979cae72a474680170de2b94d06e1c
achow101 added a commit that referenced this pull request Oct 2, 2026
1d19cca fuzz: don't set random state for private broadcast test (Andrew Toth)

Pull request description:

  The private broadcast fuzz test does not use any randomness.
  This was added in #35129 based on a draft created in #29415. That draft was created when the state of #29415 was still using `SaltedTxidHasher`s, but this usage was removed before it was merged.

  Setting the random state while not using it is causing issues with nightly maflcko/bitcoin-core-nightly#25.

ACKs for top commit:
  kevkevinpal:
    ACK [1d19cca](1d19cca)
  maflcko:
    lgtm ACK 1d19cca
  achow101:
    ACK 1d19cca
  vasild:
    ACK 1d19cca

Tree-SHA512: 809ab8d72d0556b25fec5567b96c3c0bee8ed430465fd871655d6d73ec4aca0efe9f24636078fb465752c4ba9a40c4a315ca34af5c1275fd3dc87663d8e1f485
sedited added a commit that referenced this pull request Nov 4, 2026
…e broadcast txs

4f3dcb7 fuzz: check GetStale() returns exactly the stale private broadcast txs (frankomosh)

Pull request description:

  The `private_broadcast` fuzz test checks each tx that `GetStale()` returns. This adds to it by checking that all stale txs are returned.  `ReattemptPrivateBroadcast()` only retries what `GetStale()` returns, and a stale tx left out is never retried.

  This partly came up during review in #35129 (review), and recently also surfaced in https://mutanthub.space/mutants/3752 , where changing `continue` to `break` in `GetStale()` passes all current tests.

  This PR records when each tx is added and when each node confirms it. Then it checks that `GetStale()` returns exactly the expected txs.

ACKs for top commit:
  andrewtoth:
    ACK 4f3dcb7
  sedited:
    ACK 4f3dcb7

Tree-SHA512: e88c5773c4d38b6c2fba29fd715d277ef943c240fc8dc839744ec7546afe14cd7a31b4d8808c624274376500f6d46939aa19d31abc5ac167652411fd90dba1b9
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.