Commit Graph

3 Commits

Author SHA1 Message Date
martbost 5fbaf4f17d Hub rule 2 (Marty 2026-11-14): every paid Purchase on the LinkSpin contract goes to the hub's /v1/contract-spend from its own retried queue (spends, sent after the binds, tx hash so a resend counts once, POL-in only; activation alone is not a spend), so when two contracts lock different sponsors the one with money spent decides the network sponsor. Still one way, only with HUB_ENABLED; needs network-hub 296aa5d. qa/hubsync.test.cjs 11 checks ok
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 08:24:00 -06:00
martbost a7f9b80c18 Hub gaps (Marty 2026-11-13): deliberate sponsor changes -> /v1/sponsor-change, BTC4Hits accounts reported (no other door does), MemberActivated -> /v1/contract-bind (contract linkspin) from a retried queue; still one way, only with HUB_ENABLED
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 08:21:59 -06:00
martbost 31bf6b9f41 Network hub link behind HUB_ENABLED (default off): hub member.joined from another door becomes the same waiting shell account the InstantAdPay registry sync makes (ensure 'carried'/'network', fill empty fields only, sponsor line placed first, wallet last under carry.hold); wallet.connected fills an empty wallet; LinkSpin's own joins and wallet links go to /v1/join and /v1/wallet through a persisted retry outbox (DATA_DIR/hubsync.json). Signed X-Hub-Ts/X-Hub-Sig, 5-minute window, each event seq applied once. sponsor.changed and the rest are ignored (TODO). iapsync and /api/partner/registry unchanged. Test: HUB_DIR=<network-hub with /v1/resolve {id}> bash qa/run.sh hubsync, 10 checks against a local hub in JSON mode.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 17:07:28 -06:00