Provider refusals
write_verifier: Provider declined the request because of a cybersecurity restriction. Experiments remain incomplete; static verification can continue.
2 minor findings · 5 suggestions
Earlier concerns neither republished nor resolved: 2 minor findings · 2 suggestions. See the Run archive for their assessments.
Findings
[minor] · An early non-final copy cancels a scheduled broadcast
A rejected incoming transaction can erase a held private-broadcast schedule before validation, leaving nothing to release later.
Location: src/private_broadcast.cpp:71 (head).
Details and suggested fix
An ordinary transaction-relay peer that already holds the exact signed transaction, matching its wtxid, can send it before release while the node is outside IBD. The TX handler calls MarkResolved() before ReceivedTx() or ProcessTransaction(), and the new unreleased branch erases the entry immediately. If the transaction is still non-final, validation then rejects it without mempool acceptance or relay. Receiving this copy therefore does not establish successful broadcast. The schedule disappears from getprivatebroadcastinfo, and neither release nor stale retry can recover it without local resubmission. Defer erasing held entries until successful mempool acceptance, for example through ProcessValidTx(). Add a functional case that returns a non-final scheduled transaction through tx_returner and verifies that it remains scheduled and is released later.
[minor] · Due transactions become sendable before release-time validation
An in-flight private-broadcast handshake can select a due transaction before revalidation, disclosing an entry later dropped and consuming a connection intended for another queued transaction.
Location: src/private_broadcast.cpp:96 (head).
Details and suggested fix
ReleaseDue() sets released=true for the entire due batch before the scheduler validates entries individually under cs_main. IsSendable() checks only that flag and remaining planned sends. A private-broadcast connection already opened for another entry can finish VERACK in this window, select the newly released transaction and queue an INV. If GETDATA retrieves it before Remove(), the peer also receives the full transaction. Deferring new connection requests until after validation does not protect these existing connections. If validation rejects the selected entry, its own connections are never requested. The successful handshake receives no compensation, and TryGrantRetry() refuses another transaction while an unpicked planned send remains, so that send can stall until unrelated private-broadcast activity opens a connection. Collect due candidates while keeping them held, validate them, then atomically release only the same still-present, unreleased submissions before requesting connections. This interleaving requires an outstanding handshake during the release loop; its frequency was not measured.
Optional improvements
[suggestion] · The release height does not account for relative locks or coinbase maturity
A future schedule can accept a premature spend but permanently drop it if a relative lock or coinbase maturity is still unsatisfied at the chosen height.
Location: src/net_processing.cpp:1800 (head).
Details and suggested fix
Submission permits every TX_PREMATURE_SPEND, including non-BIP68-final and immature coinbase spends, while the release target is only nLockTime + delay_after_lock_time. At that target, any failed validation removes the entry without retrying, even if another few blocks would make it acceptable. This agrees with the documented one-shot drop policy, but the help should explicitly require callers to choose a height that also satisfies relative locks and coinbase maturity. Rejecting every premature reason except non-final at submission would unnecessarily exclude final transactions whose requested delay is meant to cover a BIP68 lock.
[suggestion] · Release timing has no per-transaction randomization
The release scheduler adds shared polling jitter, not independent transaction delays, so entries targeting the same height become eligible together.
Location: src/net_processing.cpp:1816 (head).
Details and suggested fix
release_height is deterministic, and ReleaseDue() releases all eligible entries in one pass before requesting their connections together. The scheduler samples one 15–30-second interval for the next poll, rather than the independent randomized submission delays described in the PR rationale. The RPC help describes a height primitive and makes no timing-privacy guarantee. Document this narrower behavior in the help and release note: callers wanting randomized delays must supply their own randomness, and equal-height entries are released in the same poll. Actual sends also depend on connection establishment; how much these batches could reveal through timing was not measured.
[suggestion] · Resubmission silently keeps the existing schedule
After passing submission checks, resubmitting a queued transaction with attempts remaining returns success without adopting the requested schedule, but the RPC help omits this.
Location: src/rpc/mempool.cpp:127 (head).
Details and suggested fix
Add() returns AlreadyPresent without changing release_height, and InitiateTxBroadcastPrivate() reports that as OK. A final transaction held for a later height therefore stays held after a successful resubmission without delay_after_lock_time. Conversely, an entry queued for immediate sending remains sendable when resubmitted with a future target. A still-non-final transaction resubmitted without a delay fails validation before duplicate handling. Keeping the first schedule is intentional and tested internally. Document it in the RPC help and release note, including that changing a queued schedule requires abortprivatebroadcast followed by resubmission.
[suggestion] · The functional timelock case never reaches BIP68 rejection
The scheduled-broadcast test rejects its transaction as non-final before BIP68 runs, so narrowing the new exception to that reason would leave the assertions satisfied.
Location: test/functional/p2p_private_broadcast.py:297 (head).
Details and suggested fix
The existing case leaves both locks unsatisfied and asserts non-final, so it does not exercise scheduling a transaction rejected only as non-BIP68-final. Add a case using confirm_utxo() for an output confirmed at height H. At tip H, create a transaction with nLockTime=H, sequence=3 and delay_after_lock_time=2. Assert non-BIP68-final from testmempoolaccept and successful scheduling, then verify that it remains held at H+1 and is released and delivered at H+2. MiniWallet's default version 2 enables BIP68, and next-block validation makes this sequence lock acceptable at tip H+2. This also covers release-time validation after submission stopped before fee and script checks.
[suggestion] · Both private-broadcast fuzzers omit held transactions
Both fuzz targets add only immediately released entries, leaving held-state sendability, removal, resolution and release transitions outside their fuzz coverage.
Location: src/test/fuzz/p2p_private_broadcast.cpp:85 (head).
Details and suggested fix
The P2P target always passes release_height=nullopt, while the queue-model target calls only Add(tx) and never ReleaseDue(). Neither can exercise the new held-state branches, despite the added serial unit tests. Extend the model fuzzer with optional release heights and a ReleaseDue(height) action. Track that held entries cannot be picked or become stale, return zero cancelled connections on removal, disappear on resolution, and retain their original height on AlreadyPresent; also cover holding an exhausted entry again. In the P2P target, supply small heights and enable and drive the scheduled release task to exercise connection accounting. These sequential fuzz actions would not reproduce the cross-thread release-validation race.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [minor]: Abort can subtract requests that have not been added
- [suggestion]: Make release-time rejection visible to the submitter
- [minor]: Delayed mempool rebroadcasts fail the release check (earlier report)
- [suggestion]: The delayed-success test only requires one initial delivery (earlier report)