# Change these settings HOME_DIR=/Users/robertlie ETH_DIR=$(HOME_DIR)/tools/ethereum_private_network DATA_DIR=$(ETH_DIR)/datadir GENESIS_JSON=$(ETH_DIR)/genesis_private_network.json LOGS=$(ETH_DIR)/ethereum.log NETWORK_ID=987654321 ETHERBASE=0xc45ae2b9bfae491c79462aaad05fb4b77e7091f2 # 0=silent, 1=error, 2=warn, 3=info, 4=core, 5=debug, 6=debug detail VERBOSITY=3 ETH_PORT=30303 RPC_PORT=8545 MINER_THREADS=1 # Do not change these settings help: @echo "init - Initialize the blockchain from the genesis json file" @echo "mine - Start mining" init: geth --datadir $(DATA_DIR) init $(GENESIS_JSON) mine: rm -f $(HOME_DIR)/Library/Ethereum/geth.ipc mkdir -p $(HOME_DIR)/Library/Ethereum ln -s $(DATA_DIR)/geth.ipc $(HOME_DIR)/Library/Ethereum geth --datadir $(DATA_DIR) --nodiscover --maxpeers 0 --networkid $(NETWORK_ID) --port $(ETH_PORT) --rpc --rpcaddr "localhost" --rpcport $(RPC_PORT) --rpccorsdomain "*" --verbosity $(VERBOSITY) --rpcapi "eth,personal,web3,net,debug" --etherbase $(ETHERBASE) --mine --minerthreads=$(MINER_THREADS) console 2>>$(LOGS)