Go to file
hailin 3a985b443f fix(co-managed): 使用数据库中的 PartyIndex 而非循环索引
问题:
- server-party-co-managed 在构建参与者列表时使用循环索引 i
- 导致 PartyIndex 映射错误: map[0:0 1:1] (错误)
- 应为: map[0:0 2:1] (Android 的 keygen index 是 2, 不是 1)
- TSS 协议因索引错误失败: "failed to calculate Bob_mid or Bob_mid_wc"

根本原因:
- event.SelectedParties 只包含 party ID, 不包含 PartyIndex
- 使用循环索引是假设,不是来自数据库的实际数据

解决方案:
1. PendingSession 添加 Participants 字段
2. 存储 JoinSession 返回的 sessionInfo.Participants
   - JoinSession 从数据库查询并返回所有参与方的正确 PartyIndex
3. session_started 时直接使用存储的 participants
   - 不再从 event.SelectedParties 构建

关键变更:
- PendingSession.Participants: 保存来自数据库的正确索引
- 移除循环构建逻辑: 不再假设 PartyIndex = loop index
- 数据来源: 数据库 (JoinSession response) → 缓存 → 使用

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-26 20:24:32 -08:00
.claude fix(android): 使用 Kavascan Etherscan API 同步交易记录 2026-01-26 08:51:40 -08:00
backend fix(co-managed): 使用数据库中的 PartyIndex 而非循环索引 2026-01-26 20:24:32 -08:00
contracts feat(blockchain): 部署 eUSDT 和 fUSDT 代币合约 2026-01-19 05:30:25 -08:00
docs docs: 添加 RWADurian 2.0 部署与运维成本方案 2026-01-22 03:29:51 -08:00
frontend feat(batch-mining): 动态获取批量补发计算起始日期 2026-01-23 02:01:40 -08:00
kubernetes . 2025-11-25 10:29:24 +08:00
scripts fix(snapshot): 修改 Services PostgreSQL 用户名为 rwa_user 2026-01-08 09:05:22 -08:00
tests . 2025-11-25 10:29:24 +08:00
.gitignore feat(mining-ecosystem): 添加挖矿生态系统完整微服务与前端 2026-01-10 17:45:46 -08:00
README.md first commit 2025-11-23 21:21:44 -08:00
SEED01-qrcode.png fix: 短信超时返回成功状态避免前端报错 2025-12-21 20:55:31 -08:00
STKAITI.TTF feat(mobile-app): 添加合同签署 API 详细调试日志 2025-12-25 03:14:10 -08:00
contract.docx feat(kyc): 实名认证前检查手机号验证状态 2025-12-24 21:00:53 -08:00
docker-compose.yml first commit 2025-11-23 21:21:44 -08:00
挖矿.xlsx feat(contribution): 添加系统账户算力来源类型字段 2026-01-21 04:23:50 -08:00
榴莲皇后数据.xlsx fix(mobile-app): 修复多账号切换后账号列表只显示一个的问题 2025-12-27 11:12:50 -08:00
联合种植协议董事长_release_form.pdf fix(reporting-service): add /api/v1 prefix to wallet and reward service API calls 2026-01-04 23:18:10 -08:00

README.md