nebulasio / wiki

This repository is out of date, please check the new wiki:
http://wiki.nebulas.io/en/latest/
GNU General Public License v3.0
421 stars 154 forks source link

关于智能合约存储区的gas消耗问题 #137

Open aircloud opened 6 years ago

aircloud commented 6 years ago

readme中提到:

星云链智能合约(smart contract)提供了链上数据存储功能。类似于传统的key-value存储系统(eg:redis),可以付费(消耗gas)将数据存储到星云链上。

这里的消耗gas,计费规则是怎么样的呢? 比较关注是不是持续消耗gas,如果之后把存储的数据有删了呢。

yupnano commented 6 years ago

关于gas的计费规则详见文档 https://github.com/nebulasio/wiki/blob/master/gas.md 对于存储来说,计费是 1 gas/bit。 gas不会持续消耗,只有在交易被打包的时候才会一次性扣除。 删除数据不会返还gas。

weiht12 commented 5 years ago

你好,此版本为星云旧版wiki(后期逐步停止维护),欢迎将您的问题提交星云新版wiki,以便于获得及时解答。同时,参与wiki的编辑维护工作还会有奖励哦。新版wiki链接:https://wiki.nebulas.io/en/latest/ (英文);https://wiki.nebulas.io/zh_CN/latest/ (中文) Hello, this version is the nebulas old wiki (later stop maintenance), welcome to submit your question to the new nebulas wiki, in order to get timely answers. At the same time, there will be rewards for editing and maintaining the wiki. New wiki link: https://wiki.nebulas.io/en/latest/ (English); https://wiki.nebulas.io/zh_CN/latest/ (Chinese)