fix(tss-party): increase stdin buffer to 1MB for large TSS messages

Default 64KB buffer was truncating large TSS protocol messages in round 3+

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-30 09:57:04 -08:00
parent 2a49ab771b
commit f849a2a9fd
2 changed files with 7 additions and 1 deletions

View File

@ -479,7 +479,11 @@
"Bash(./node_modules/.bin/tsc:*)", "Bash(./node_modules/.bin/tsc:*)",
"Bash(npm ls:*)", "Bash(npm ls:*)",
"Bash(npm run build:win:*)", "Bash(npm run build:win:*)",
"Bash(npm run clean:*)" "Bash(npm run clean:*)",
"Bash(git cherry-pick:*)",
"Bash(git stash:*)",
"Bash(docker compose build:*)",
"Bash(git log:*)"
], ],
"deny": [], "deny": [],
"ask": [] "ask": []

View File

@ -223,6 +223,8 @@ func executeKeygen(
go func() { go func() {
defer inWg.Done() defer inWg.Done()
scanner := bufio.NewScanner(os.Stdin) scanner := bufio.NewScanner(os.Stdin)
// 增加 buffer 大小到 1MB默认 64KB 可能不够大消息
scanner.Buffer(make([]byte, 1024*1024), 1024*1024)
for scanner.Scan() { for scanner.Scan() {
select { select {
case <-ctx.Done(): case <-ctx.Done():