Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发送交易时,csdk返回超时会崩溃 #238

Open
joy-shuang opened this issue Oct 9, 2023 · 4 comments
Open

发送交易时,csdk返回超时会崩溃 #238

joy-shuang opened this issue Oct 9, 2023 · 4 comments
Labels

Comments

@joy-shuang
Copy link
Contributor

错误信息如图:
image
即使代码中修改了这种错误,也会无法获取当前交易的hash等信息,无法做到上链验证,只能通过其他途径来实现

@bxq2011hust
Copy link
Member

感谢反馈,能否麻烦补充一些版本信息以及重现的方式

@joy-shuang
Copy link
Contributor Author

master分支,节点版本3.3.0、3.2.3
重现方式:for循环重复发送10000条或者更多交易很容易复现。
我暂时处理方式是增加err判断。
image
还有异步发送交易也有问题,传入参数handler,go协程会内存溢出,导致go-cache中存储的channel丢失出现崩溃。复现方法也是重复发交易。

@bxq2011hust
Copy link
Member

@joy-shuang 感谢反馈,我们之后重现测试下

@bxq2011hust
Copy link
Member

bxq2011hust commented Dec 22, 2023

感谢反馈,master分支修复了异步发交易会挂掉的问题,可以使用master分支代码验证,如有其他问题,欢迎继续反馈
需要提醒的是,当发送交易有err存在时,收据是空指针,需要先判断err

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants