Go Ethereum – Possibility of Creating a Fork of Ethereum or Ethereum Classic with Limited Smart Contract Deployments

blockchain-forkcontract-deploymentethereum-classicgo-ethereumhardforks

I would like to know if it would be possible to create a Fork of Ethereum or Ethereum Classic where only few smart contracts can be deployed?

The goal is to create a fork and launch a brand new blockchain but I would like to limit the possibility to deploy smart contracts.

Do you think there is a way to make it possbile?
I thought about using a config file where the community would set the smart contracts hashs able to be deployed? But it is not possible to get a hash of a smart contract before it is deployed on mainnet right?
Or maybe by acting on the gas fee and make it prohibitive, and then create a rule that would lower the gas fee? Or just setting a very high fee for smart contract deployment so that only the smart contracts that gather community consensus and fund raising can be deployed?

Plus I want my chain to be proof of work. Would you recommend to fork Ethereu Classic or Ethereum? Because Ethereum has been implementing none reversible changes towards proof of stake for some time.

Thank you very much for your help!

Best regards

Best Answer

HECO blockchain recently implemented something like this.

HECO is an Ethereum fork modified to implement POSA and other features. As far as I know, nodes are probably all controlled by Huobi (CEX).

Last june, they implemented a hard fork that allowed to blacklist addresses and, similarly to what you want, to only allow a whitelist of addresses to deploy contracts. The latter is not currently enabled, but the code to do it is already there.

You may want to browse the commits of this particular release (1.1.0 Redcoast hardfork) and implement something similar.

Related Topic