Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts and a CLI to make the experience a bit more turnkey and educational. #8

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .IMGNAME

This file was deleted.

9 changes: 0 additions & 9 deletions .IMGVERSION

This file was deleted.

4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
.ethash
.bootnode
setenv.sh
genesis.json

config/genesis.json
keystore
49 changes: 0 additions & 49 deletions Dockerfile

This file was deleted.

28 changes: 0 additions & 28 deletions Dockerfile.old

This file was deleted.

107 changes: 0 additions & 107 deletions LEIAME.md

This file was deleted.

57 changes: 57 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
.DEFAULT_GOAL := help
BLUE := $(shell tput setaf 4)
RESET := $(shell tput sgr0)
help:
@printf "\n# Help \n\n"
@grep -E '^[^ .]+: .*?## .*$$' $(MAKEFILE_LIST) \
| awk '\
BEGIN { FS = ": .*##" };\
{ gsub(";", "\n\t\t ") }; \
{ printf "%-20s$(RESET) %s\n", $$1, $$2 }'
@printf "\n"

init: ## init the genesis.json file
@./bin/genesis.sh
@echo "generated file config/genesis.json"

start_nodes: ## start 2 nodes
./bootnode.sh
RPC_PORT=8545 ./runnode.sh node1
./runnode.sh node2

start_miner: ## start 1 miner
./runminer.sh miner1

seal: ## run sealer
./runsealer.sh

stop: ## stop everything
./bin/killall.sh

clean: ## reset everything;
./bin/wipeall.sh
sudo rm -Rf .ether-*
sudo rm -Rf .ethash
sudo rm -Rf .bootnode

bash: ## launch a bash with 'ethereum/client-go:alltools'
./bin/runbash.sh
ps: ## see all docker containers;
docker ps

show_node: ## show node peers
./bin/showpeers.sh node1
show_miner: ## show miner peers;
./bin/showpeers.sh miner1

attach_miner: ## attach to miner 1
./bin/runattach.sh ethereum-miner1
attach_node1: ## attach to node 1
./bin/runattach.sh ethereum-node1
attach_node2: ## attach to node 2;
./bin/runattach.sh ethereum-node2

copy_keystore: ## copy keystore
sudo cp ./keystore/* .ether-node1/keystore
sudo cp ./keystore/* .ether-node1/keystore
sudo cp ./keystore/* .ether-miner1/keystore
Loading