From 138650d943fdd8e69813f08e6fa688e0623a304e Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 31 Dec 2025 02:07:05 -0800 Subject: [PATCH] fix(sign): use threshold_n from API response instead of parties.length MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The validateSigningSession handler was using parties.length for threshold.n which returned 0 when parties array was empty. Now correctly uses the threshold_n value returned from the backend API. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- backend/mpc-system/services/service-party-app/electron/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/mpc-system/services/service-party-app/electron/main.ts b/backend/mpc-system/services/service-party-app/electron/main.ts index 48caca98..25ac7f37 100644 --- a/backend/mpc-system/services/service-party-app/electron/main.ts +++ b/backend/mpc-system/services/service-party-app/electron/main.ts @@ -1407,11 +1407,12 @@ function setupIpcHandlers() { messageHash: result?.message_hash, threshold: { t: result?.threshold_t, - n: result?.parties?.length || 0, + n: result?.threshold_n, }, currentParticipants: result?.joined_count || 0, status: result?.status, parties: result?.parties, + initiator: '发起者', }, }; } catch (error) {