Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 2.64 KB

README.md

File metadata and controls

56 lines (34 loc) · 2.64 KB

Setting a private blockchain locally

  1. Execute StartGethMining script
    • Launch PowerShell

    • Execute the following command

        ./00.Setup/windows/StartGeth.ps1
      

Manual Steps

  1. Download Go-Ethereum

    You can [download installers] (https://ethereum.github.io/go-ethereum/downloads/) or install via [package managers] (https://ethereum.github.io/go-ethereum/install/)

  2. Initialize the genesis block

    Navigate to the folder containing this README file and run the following command.

    geth --datadir ./data init genesis.json

  3. Start GoEthereum with mining enabled By default when Geth launches with mining enabled it will attempt to consume all possible resources the command below will launch Geth only running two threads which should leave CPU cycles for other activities. The network id is a random number that was selected to ensure this network is isolated.

    geth --datadir ./data --mine --minerthreads 2 --networkid 54321

FAQ

  • What is the keystore folder?

    More information about managing accounts and the keystore folder may be found on the Ethereum Wiki

  • What are the passwords on the files in they keystore folder?

    There is currently no password on any of the files in the key store folder.

  • Is there a way to not run mining locally?

    Yes, it is possible to not run mining locally. In order to do this a miner would need to be running on another computer. One of the easiest ways to accomplish this is to leverage Azure following the Ethereum Arm Template

  • Where can I find more information about genesis.json?

    There is currently no great definitive guide to the genesis.json, but this post on Stack Exchange does a good job of highlighting each of the values.

  • How can I create additional accounts?

    • Navigate to My Ether Wallet
    • Type in a password that will be used to secure the file generated
    • Download the Keystore file. We'll use this later.
    • Copy the address ex. 0x0000000000000000000000000000000000000000
  • Is there a quick and painless way to deploy to Azure?

    Yes, the easiest way to deploy to Azure with no configuration it to use Deploy to Azure