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

调用合约报错“out of gas” #136

Open
Qingo1013 opened this issue Nov 16, 2023 · 0 comments
Open

调用合约报错“out of gas” #136

Qingo1013 opened this issue Nov 16, 2023 · 0 comments

Comments

@Qingo1013
Copy link

用免费试用版(合并版,参考的wiki:https://docs.hyperchain.cn/document/detail?type=1&id=58)的安装包搭建了4个节点区块链
在调用时间复杂度大概1e6的合约方法的时候,抛出了异常,信息如下:
Exception in thread "main" cn.hyperchain.sdk.exception.RequestException: Invoke contract failed: INVOKE_CONTRACT_FAILED:
Caused by: java/lang/RuntimeException:out of gas
at cn.hyperchain.sdk.request.Request.send(Request.java:139)
at cn.hyperchain.sdk.request.PollingRequest.send(PollingRequest.java:64)
at cn.hyperchain.sdk.response.PollingResponse.polling(PollingResponse.java:65)
请问如何解决?

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

No branches or pull requests

1 participant