Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
issue
issue
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 26
    • Issues 26
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

  • chainmaker
  • issueissue
  • Issues
  • #1369

Closed
Open
Opened Jun 09, 2025 by ding shard@gtjatest1 of 18 tasks completed1/18 tasks

同步模式下,sdk获取交易超时

【问题分类】

  • bug
  • P2P网络相关(包含libp2p,liquid)
  • 链账户身份与权限相关(证书问题、public、多签投票问题)
  • 核心交易引擎相关(交易池、DAG)
  • 共识相关
  • 智能合约相关
  • 存储相关
  • [✔] SDK相关
  • 长安链CMC工具
  • 长安链管理台
  • 长安链浏览器
  • 长安链合约IDE
  • 长安链web签名插件
  • 跨链相关
  • 轻节点相关
  • 隐私计算相关
  • 密码学相关
  • 环境依赖
  • 其他补充:

【问题描述】(请对问题进行描述,方便定位问题)

问题1: 同步交易同步时间设置为10秒,sdk每一分钟发送一笔交易上链,能成功上链,但会出现get txid xxxxxxxx timeout,概率为每一到两天几笔

问题2: 节点断开重连后(日志中为手动断开节点,再重新启动节点),sdk发送交易能成功上链,获取交易一直是超时的,同上出现get txid xxxxxxxx timeout

【相关日志文件】(如果有报错日志请贴图,或者上传附件)

chainmaker-go 的 log/system.log & bin/panic.log file * 请参考附件 问题1-system.log.txt问题2-system.log.txt SDK 的 sdk.log file 请参考附件 问题1-sdk.log.txt问题2-sdk.log.txt sdk版本为2.3.6,sdk_config.yml中grpc的配置如下,也试过将timeBetweenEvictionRuns设置为-1,blockWhenExhausted设置为false,依旧存在上述问题。 ##连接池配置 connPool: # 最大连接数 maxTotal: 200 # 最少空闲连接 minIdle: 1 #最大空闲连接 maxIdle: 20 #连接空闲最小保活时间,默认即为30分钟(18000000),单位:ms minEvictableIdleTime: 600000 #回收空闲线程的执行周期,单位毫秒。默认值60000ms(60s) ,-1 表示不启用线程回收资源,单位:ms timeBetweenEvictionRuns: 120000 #没有空闲连接时,获取连接是否阻塞 blockWhenExhausted: true #当没有空闲连接时,获取连接阻塞等待时间,单位:ms maxWaitMillis: 3000

【系统信息】(请填写系统信息,方便定位问题)

  • chainmaker-go version * : [v2.3.6]
  • OS & version * : CentOS
  • docker镜像 version: [v2.3.6]
  • 管理台 version:
    • 如果是管理台的相关问题,请附带管理台版本,如果不是可忽略。
  • 区块浏览器 version:
    • 如果是浏览器的相关问题,请附带浏览器版本,如果不是可忽略。
  • 合约IDE version:
    • 如果是合约IDE的相关问题,请附带合约IDE版本,如果不是可忽略。
  • web签名插件 version:
    • 如果是web签名插件的相关问题,请附带web签名插件版本,如果不是可忽略。
Edited Jun 09, 2025 by ding shard
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: chainmaker/issue#1369

Copyright © 2021 ChainMaker Org. All Rights Reserved. 长安链 版权所有。