Review of Ethereum Options for Development and Testing

Note

For a comprehensive coverage of blockchain development in Ethereum or mastering Solidity programming, taking our below self paced courses is highly recommended:

 

Recap

In our previous article (How to Use Ethereum Optional Flags with New Chains), we discussed what Ethereum Optional Flags are and how to use them.

In this article, we learn what Ethereum Options are for application development and testing.

 

Ethereum options

Ethereum options are widely used in development and testing, especially in setting up a private blockchain. We have encountered quite a few in the previous article:

–datadir and –identity are the Ethereum options we used when setting up our local blockchain.

  • –networkid specifies the network ID:
    • 1 is the default value, referring to the Frontier network.
    • 2 stands for a disused Morden network.
    • 3 is the Ropsten network.
    • 4 is the Rinkeby network.

 

One-to-One Live Blockchain Classes

Coding Bootcamps school offers One-to-One Live Blockchain Classes for Beginners.

 

Separately, Geth provides the following alternate options too:

  • –testnet: This option will let you connect to the PoW Ropsten network.
  • –rinkeby: This option supports the proof-of-authority Rinkeby network.
  • –syncmode: This defines the fast, full, and light sync modes.
  • –whitelist: This takes block number-to-hash mappings. It requires a comma- separated <number>=<hash> format. The whitelist allows you to specify the block hash mappings the chain must have. Peers not on the whitelist will be rejected.

The following Ethereum options are also available:

  • –config
  • –keystore
  • –nousb
  • –gcmode
  • –ethstats
  • –lightserv
  • –lightpeers
  • –lightkdf

 

Please use geth help/h to look them up, and get yourself familiar with them.

 

Next Article

In our next article (Review of Ethereum Developer Chain Options), we discuss what Ethereum Chain Options are and how to use them.

This article is written in collaboration with Brian Wu who is a leading author of “Learn Ethereum: Build your own decentralized applications with Ethereum and smart contracts” book. He has written 7 books on blockchain development.

 

Resources

coming soon