链链链接守护机中检查气体限制的用途是什么?

发布于 2025-02-02 13:45:57 字数 403 浏览 4 评论 0原文

在Chainlink keepers中,文档在这里。有一个称为checkgaslimit的conf,为默认值6,500,000。

由于checkupkeep中的计算有望将其外包在链上外包,所以为什么有一种称为checkgaslimit计算链离链的配置?

checkgaslimit是针对函数checkupkeep应该修改某些状态的情况。

In chainlink keepers document here. There is a conf called checkGasLimit with 6,500,000 as the default value.

Since the computation in checkUpKeep is expected to be outsourced off-chain, why there is a configuration called checkGasLimit where computation is off-chain?

Or checkGasLimit is for the situation where function checkUpKeep is supposed to modify some state.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

止于盛夏 2025-02-09 13:45:57

你明白了!

Checkupkeep可用于更改区块链的状态。链条节点返回true时将调用checkupkeek函数 - 如果它花费了,则它将使用气体。

然后,使用checkgaslimit是为了确保它们不会使用太多气体。根据文档:

您的Checkupkeke可以使用链计算的最大气体。

You got it!

checkUpkeep can be used to change the state of the blockchain. The Chainlink nodes will call the checkUpkeep function when it returns true - and if it costs gas, it will use gas.

The use of the checkGasLimit then, is to make sure they don't use too much gas. Per the docs:

The maximum amount of gas that can be used by your checkUpkeep for off-chain computation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文