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>
This commit is contained in:
@@ -75,6 +75,8 @@ elif [ "$MODE" = "sponsorfollow" ]; then
|
||||
node qa/sponsorfollow.test.cjs || status=1
|
||||
node qa/carry-hold.test.cjs || status=1
|
||||
node qa/carry-activate.test.cjs || status=1
|
||||
elif [ "$MODE" = "hubsync" ]; then
|
||||
node qa/hubsync.test.cjs || status=1 # needs a network-hub checkout with /v1/resolve {id}: HUB_DIR=<path>
|
||||
elif [ "$MODE" = "tankhold" ]; then
|
||||
node qa/tank-hold.test.mjs || status=1
|
||||
elif [ "$MODE" = "nas" ]; then
|
||||
|
||||
Reference in New Issue
Block a user