Skip to content

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

Open
@Qingo1013

Description

用免费试用版(合并版,参考的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)
请问如何解决?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      调用合约报错“out of gas” · Issue #136 · hyperchain/javasdk