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 153 forks source link

对gas手续费的一点看法探讨 #63

Open Comdex opened 6 years ago

Comdex commented 6 years ago

nebulas的gas手续费是否可以免除?从根据账户余额来限制交易频率和影响矿工打包排序等方式来研究免除手续费的可能性,至少免除普通用户之间的转账手续费更有利于nebulas的推广和使用dapp的积极性,这也符合现实世界中银行之间转账免除手续费的趋势。

fbzhong commented 6 years ago

Hi Comdex,

About the free GAS, we have discussion internally multiple times. In Bitcoin and Ethereum, the GAS is used for transaction fee, it have two major purposes:

  1. As a rewards for minter / bookkeeper, to incentive them to pack transactions; 2.As a cost for attackers. As you know, the DDOS attach is quite cheap in Internet, black hackers hijack user's computer to send large network volume to target server. In Bitcoin and Ethereum network, each transaction must be paid, that significant raise the cost of attack.

So far, we still keep gas functionality in Nebulas.

And, EOS is working on free gas mode, we may take a look of them, may learn a lot from them, then we can do some changes.

Thanks.

Comdex commented 6 years ago

To prevent DDOS attacks, can we limit the transaction frequency and adjust priority of transaction according to the balance of the account? For the miners, the gas is not their only income

i just want to consult the feasibility of these measures, thanks

fbzhong commented 6 years ago

Hi @Comdex ,

Glad to talk with you. We'd like have more discussion with you.

If we set the gas fee to 0, how to solve the following questions:

  1. How to allocate the computing resources?
  2. How to prevent malicious Smart Contract or DDos liked attack?
  3. How to prioritize the tx?
exeodius commented 6 years ago

Maybe the transaction frequency can be limited based off of the position inside of the nebulas rank, this may also be used as a condition to spot the difference between malicious and non-malicious smart contracts implementing data off of user feedback. I picture it in a sense like QoS for smart contracts.

How to allocate the computing resources? Position in Nebulas Rank / Wallet balance aka. Blockchain Stake.

How to prevent malicious Smart Contract or DDos liked attack? "limit the transaction frequency based off of proven nebulas rank and adjust priority of transaction according to the balance of the account?"

How to prioritize the tx? transaction size?

exeodius commented 6 years ago

questions to ask, what's the wallet size, what is the nebulas rank, and what is the transaction size? This will also provide more TPS via developer incentive that have successful DAPPS. @Comdex It makes sense for the block minters that Gas is not the only form of incentive, but this may not be available when NF changes the consensus down the road.

weiht12 commented 6 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)