When building a private ethereum network, with trusted Nodes (companies, investors, etc.) who all contribute to verifying the transactions.
Three related questions/options:
-
Would it be better/possible to disable gas, or set it to 0? Or to set it really low and
mining reward
really high, so it should never matter how much something costs, since all nodes should be trusted anyways. Although you still need to somehow prevent loops or crashing contracts. -
Is it possible to disable mining, and give every new node in the network a ridiculous amount of
ether or gas
, so they would realistically never run out? Or is this a very naive idea? And can you havegas without ether
? - Is it possible to disable ether altogether and have
gasprice
at 0, so you still would have to give an amount of gas for each transaction.
Best Answer
There are several different options for a private/consortium chain setup:
These approaches should address some of your questions. But keep in mind
gas
plays an important role when it comes to the execution of contracts. One of the main motivations behind gas is to prevent the Halting problem. Which means without gas, it would be possible to create a contract that could potentially run forever opening up the possibility of various attacks such as Denial Of Service.