Skip to content

Fix/e2e swap queue routing#22

Merged
jpthor merged 2 commits intomainfrom
fix/e2e-swap-queue-routing
Jan 22, 2026
Merged

Fix/e2e swap queue routing#22
jpthor merged 2 commits intomainfrom
fix/e2e-swap-queue-routing

Conversation

@jpthor
Copy link
Contributor

@jpthor jpthor commented Jan 22, 2026

No description provided.

jpthor and others added 2 commits January 21, 2026 22:45
Two bugs fixed:

1. run-services.sh: Changed SERVER_TASKQUEUENAME to TASK_QUEUE_NAME
   - DCA server config uses envconfig with TASK_QUEUE_NAME
   - Wrong env var caused tasks to enqueue to default_queue
   - DCA worker never received reshare tasks, causing keyshares
     to be stored in wrong MinIO bucket (vultisig-verifier instead
     of vultisig-dca)

2. policy_generate.go: Use public /plugins endpoint for billing
   - Previous code used /plugin/{id} which requires auth
   - Auth failure caused empty billing array
   - Empty billing caused "billing policies count (0) does not
     match plugin pricing count (2)" error on policy creation
   - Now fetches from public /plugins endpoint and filters by ID

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Changes that enabled successful E2E swap test:

1. Production overlay updates:
   - app-recurring/server v1.0.84 (has TaskQueueName fix)
   - vcli v1.0.3 (has billing fetch fix)
   - nodeSelector removal patches for infra StatefulSets

2. policy_generate.go billing fix:
   - Added missing 'frequency' field to billing entries
   - Handle nil frequency pointer correctly

3. DCA server.yaml:
   - Added SERVER_TASK_QUEUE_NAME env var for explicit config

4. Dockerfile improvements:
   - Include shared libraries for proper binary execution

The upstream app-recurring fix (PR #142) added:
  cfg.Server.TaskQueueName = cfg.TaskQueueName

This ensures DCA server routes reshare tasks to dca_plugin_queue,
allowing DCA worker to participate in 4-party TSS reshare.

E2E Test Result:
- Plugin install: 4 parties, 6.2s, keyshares in both MinIO buckets
- Swap: USDC→BTC signed and broadcasted successfully
- TxHash: 0xbd2fd6264045989c2b50059b8ca832a2582fb95972e0099dfe80ad24603c3661

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jpthor jpthor merged commit 9d9a38e into main Jan 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant