code wiki / (root) / nx_pex_harvest_gate.nx

nx_pex_harvest_gate.nx

buildroot/runtime/nx_pex_harvest_gate.nx

4750 B82 linesdepth 9pulls 41 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_pex_harvest_gate.nx -- SOVEREIGN gate for the PEX HARVEST PLUMBING in the worker (tg_pex_append + tg_pex_merge). nx_pex_gate already proves the BEP-11 protocol on a real socket; THIS proves the worker's shared-file integration: forked children append harvested peers under flock, the parent merges them into the peer set DEDUPED, concurrent appends keep the 6-byte framing intact, and a torn tail record is ignored (never OOB). Imports the worker (main stripped) so it exercises the REAL functions, not a copy (the nx_torrent_stream_gate pattern). license_tier: ORIGINAL module: nishi-core.torrent.pex_harvest_gate depends: nishi-core.torrent.get

dependencies 2 imports · 0 importers

nx_torrent_get.nx nx_gate_verdict.nx nx_pex_harvest_gate.nx

imports: nx_torrent_get.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_openat_wr tg_pex_append sys_flock cl_write_n tg_pex_merge sys_read sys_fork sys_wait4 cl_write_n ↻ hg_w hg_wn gv_ctr sys_mmap gv_verdict gv_puts sys_write gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_journal sys_openat_append sys_mmap ↻ gv_catn sys_mmap ↻ sys_munmap ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real gv_cat sys_write ↻ sys_close sys_munmap ↻

structs

none

consts

none

functions

13func hg_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main
14func hg_wn(v: i64) -> i64
called by 1: main
20func main() -> i64