Skip to content

deep-stack/eth-localnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eth-Localnet

  • Script to start a private local Ethereum Node

  • Ensure that geth is installed

  • Difficulty can be adjusted in genesis.json before running init.sh. This affects CPU consumption

  • Ether can be pre-allocated by adding addresses with ethers to alloc in genesis.json.

    For example :

"alloc": {
     "ZC7d7A1747C0Eewc107dg5B7522v5F31509b5Cfc": {
     "balance": "0x1000000000000000000000000"
    }
}

Usage :

  • Run this for the first time
./init.sh
  • Run this to start mining
./run.sh [RPC_PORT]
  • Port number is an optional cmd line arg, default is 8545

  • Run this to delete the blockcahin

./cleanup.sh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages