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

插件调用时gaslimit参数无效 #23

Open
luckypickle opened this issue May 22, 2018 · 6 comments
Open

插件调用时gaslimit参数无效 #23

luckypickle opened this issue May 22, 2018 · 6 comments

Comments

@luckypickle
Copy link

调用时传入的gaslimit无法生效。一直是默认的gaslimit

@yupnano
Copy link
Contributor

yupnano commented May 22, 2018

目前gaslimit只能在插件里设置,没有接收外部传入参数。
nebpay没有设置gaslimit的选项。

@luckypickle
Copy link
Author

。。。好吧,谢谢。我现在写的合约gas消耗较高很难教育用户手动提高gaslimit

@yupnano
Copy link
Contributor

yupnano commented May 22, 2018

你好~
默认的200,000已经很高了,你的合约调用会消耗这么多gas吗?

@luckypickle
Copy link
Author

。。我是把奖励结算放到合约里的。挂机类游戏,挂久了gas非常高。。。现在优化合约了限制最大循环次数了

@yupnano
Copy link
Contributor

yupnano commented May 23, 2018

额,挂机类的是不允许的,你应该是误解了智能合约。

需要注意的是,调用一次智能合约的执行时间最大是2s。

@luckypickle
Copy link
Author

没事我现在加了最大结算限制。在一定的频度下挂机类也是可以搞搞的

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

2 participants