mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-05-28 10:01:31 +02:00
40a3cbdfdc
Nodes behind NAT could push gate messages to relays but had no way to pull messages from OTHER nodes back. The push loop only sends outbound; the public chain sync carries encrypted blobs but peer- pushed gate events never made it onto the relay's chain. Adds: - POST /api/mesh/gate/peer-pull: HMAC-authenticated endpoint that returns gate events a peer is missing (discovery mode returns all gate IDs with counts; per-gate mode returns event batches). - _http_gate_pull_loop: background thread (30s interval) that pulls new gate events from relay peers into local gate_store. This closes the loop: push sends YOUR messages out, pull fetches EVERYONE ELSE's messages back. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>