mirror of
https://gitlab.com/pezkuwichain/pezkuwi-sdk.git
synced 2026-10-20 18:56:23 +00:00
The automation key's signing clients (pezkuwi_signing_client/ polkadot_signing_client) are created once at startup and reused for every auto-pay call. Same failure class as the listener's live subscription (silent WS death, no error until the next real use, see LIVE_SUBSCRIPTION_STALL_TIMEOUT's comment): a real withdrawal auto-pay hit "Connection reset by peer... restart required" twice in a row today, sending both to manual 3-of-5 review even though the automation key's Polkadot approval had just been granted and should have covered them. Both execute_wusdt_auto_payout/execute_usdt_auto_payout call sites now retry once against a genuinely fresh client on failure before giving up - cheap for an occasional per-event call (unlike the listener's persistent subscription, no reason to avoid reconnecting every time). Falls back to manual review exactly as before if the retry also fails - never a new failure mode, just a narrower one.