Skip to content

tool: diff - #6

Closed
willcl-ark wants to merge 9 commits into
instagibbs:privbcast-in-nodefrom
willcl-ark:pbtool
Closed

willcl-ark wants to merge 9 commits into
instagibbs:privbcast-in-nodefrom
willcl-ark:pbtool

Conversation

@willcl-ark

Copy link
Copy Markdown

reworked via your very own meatproxy

includes two "issues" flagged as standalone commits for your perusal, but if I'm honest I'm not sure if they come from my re-write or your original (sorry)

instagibbs and others added 9 commits September 25, 2026 07:15
Delivery uses six slots: three open together at delivery start (two exit-path, one onion), one onion slot opens at a time drawn in 35-180 s, and two exit-path slots at times drawn in 185-240 s, at least 5 s apart. A slot that fails before announcing tries its next pre-assigned peer 50-60 s later, at most three times. Every time is drawn when the job starts, so nothing observed later moves it. Input parsing covers the bounded stdin read, the loopback-only -tor argument and the bundled fixed-seed list.

Unit tests fix the schedule and assignment arithmetic, input parsing and attempt decisions, and run whole jobs through the connector seam at a fraction of real time so scheduling rules (missed and empty opportunities, exit status, cancellation reaching a blocked connector) are checked without Tor. Fuzz targets cover discovery freezing with assignment, and input parsing.
Input is the transaction hex on stdin, output a JSON report; acceptance is checked beforehand with testmempoolaccept and receipt observed with getmempoolentry. Regtest-only flags exist for the tests. doc/design/private-broadcast-tool.md states the principle.

The functional test runs jobs against the framework's SOCKS5 server, extended with RESOLVE, a delayed CONNECT reply and a larger backlog, with one behaviour per seed so every outcome path is taken on every run, and checks a bystander node's state is untouched.
…man/PeerManager implementation

A job uses the node's Tor SOCKS5 proxy (GetProxy(NET_ONION)) wherever it
listens, trusted like the node's other proxy settings; the standalone tool
refuses a proxy that is not on loopback, since SOCKS5 carries destinations
and the per-stream credentials in plaintext up to the proxy.
An announced transaction may never be requested or served, yet the
command reports success and the slot stops trying backups. Explain what
status 0 and the local report establish so users do not read them as
proof of delivery or acceptance.
The per-job schedule is fixed after a job starts, but a recipient can
hold a running connection open and delay when a queued job begins.
Explain that timing link without implying peers can change an active
job's assigned attempts.
@instagibbs

Copy link
Copy Markdown
Owner

taking a bunch as inspiration, piecemeal thanks

@instagibbs instagibbs closed this Sep 25, 2026
@instagibbs

Copy link
Copy Markdown
Owner

(on the logic pieces, they were outright rejected as against intentional spec choices)

instagibbs pushed a commit that referenced this pull request Nov 10, 2026
…:__pad_and_output

fa3821e test: Add missing suppression for race:std::__1::__pad_and_output (MarcoFalke)

Pull request description:

  From https://github.com/bitcoin/bitcoin/actions/runs/41684419453/job/126086262840?pr=35990#step:11:8669:

  ```
  WARNING: ThreadSanitizer: data race (pid=17903)
    Write of size 8 at 0x7ff5c1990c20 by thread T12 (mutexes: write M0):
      #0 width /llvm-project/libcxx/include/ios:498:18 (libc++.so.1+0xd3816) (BuildId: 6e001266114c9106207bb18363e2d5a09b534306)
      #1 std::__1::ostreambuf_iterator<char, std::__1::char_traits<char>> std::__1::__pad_and_output[abi:dee230102]<char, std::__1::char_traits<char>>(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char>>, char const*, char const*, char const*, std::__1::ios_base&, char) /llvm-project/libcxx/include/__locale_dir/pad_and_output.h:67:9 (libc++.so.1+0xd3816)
      #2 std::__1::ostreambuf_iterator<char, std::__1::char_traits<char>> std::__1::num_put<char, std::__1::ostreambuf_iterator<char, std::__1::char_traits<char>>>::__do_put_integral[abi:dee230102]<long long>(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char>>, std::__1::ios_base&, char, long long) const /llvm-project/libcxx/include/__locale_dir/num.h:907:10 (libc++.so.1+0xbcfa0) (BuildId: 6e001266114c9106207bb18363e2d5a09b534306)
      #3 std::__1::num_put<char, std::__1::ostreambuf_iterator<char, std::__1::char_traits<char>>>::do_put(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char>>, std::__1::ios_base&, char, long long) const /llvm-project/libcxx/include/__locale_dir/num.h:919:16 (libc++.so.1+0xbcb79) (BuildId: 6e001266114c9106207bb18363e2d5a09b534306)
      #4 put /llvm-project/libcxx/include/__locale_dir/num.h:780:12 (libc++.so.1+0x9b40c) (BuildId: 6e001266114c9106207bb18363e2d5a09b534306)
      #5 std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::basic_ostream<char, std::__1::char_traits<char>>::__put_num[abi:dee230102]<long long>(long long) /llvm-project/libcxx/include/__ostream/basic_ostream.h:104:21 (libc++.so.1+0x9b40c)
      #6 std::__1::basic_ostream<char, std::__1::char_traits<char>>::operator<<(long long) /llvm-project/libcxx/include/__ostream/basic_ostream.h:316:10 (libc++.so.1+0x9b2a0) (BuildId: 6e001266114c9106207bb18363e2d5a09b534306)
      #7 KernelLog::LogMessage(btck::LogEntry const&) /home/runner/work/_temp/src/bitcoin-chainstate.cpp:49:33 (bitcoin-chainstate+0xf2667) (BuildId: cff46198c8fd29997404a749cd55fdd6fcb3e865)

ACKs for top commit:
  fanquake:
    utACK fa3821e

Tree-SHA512: 383705fe33e429d40baaf7811a3edd6ce5164c423a1450c7a7a5d749d1ba44b8dac7a1270cbb593fcd0888dd9a2efbe7507650adf69b2f46ac09db4488cb9aec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants