fix(docker): add PARTY_ROLE environment variable for server-party-api

Add PARTY_ROLE=delegate environment variable to server-party-api service
to fix nil pointer dereference when determining party role during keygen.

Without this variable, the party defaults to "persistent" role which tries
to access keyShareRepo (nil for delegate parties), causing a panic.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-06 06:00:28 -08:00
parent 13e81e37c9
commit 3adc091140
1 changed files with 1 additions and 0 deletions

View File

@ -255,6 +255,7 @@ services:
MPC_API_KEY: ${MPC_API_KEY}
# Party identity for Message Router registration
PARTY_ID: delegate-party
PARTY_ROLE: delegate
depends_on:
session-coordinator:
condition: service_healthy