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 tg_pex_append cl_write_n tg_pex_merge cl_write_n ↻ hg_w hg_wn gv_ctr sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gv_verdict gv_note_bare_rate gv_bare_rate gv_at gv_obj_has_n gv_at ↻ gv_puts sys_write ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_puts ↻ gv_num ↻ gv_journal sys_openat_append sys_mmap ↻

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