-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (36 loc) · 1.21 KB
/
Makefile
File metadata and controls
48 lines (36 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
all: create_initial_node
prepare_code:
git submodule update --init --recursive
prepare_bin: prepare_code
rm -rf testdata/bin; mkdir -p testdata/bin
cd submodules/lighthouse && make && cp ./target/release/lighthouse ../../testdata/bin/
cd submodules/reth && make build && cp ./target/release/reth ../../testdata/bin/
cd submodules/go-ethereum && make geth && cp build/bin/geth ../../testdata/bin/
prepare: prepare_bin
cd submodules/egg && make prepare
minimal_prepare: prepare_bin
cd submodules/egg && make minimal_prepare
genesis: minimal_prepare
cp cfg_files/custom.env submodules/egg/
cd submodules/egg && make build
rm -rf testdata/node
mkdir -p testdata/node/cl/vc
cp -r submodules/egg/data testdata/node/meta
cd testdata/node && cp -r meta/vcdata/* cl/vc/
create_initial_node: stop_initial_node genesis
bash -x tools/init.sh
start_initial_node:
bash -x tools/start.sh
stop_initial_node:
bash -x tools/stop.sh
archive_node: stop_initial_node
sleep 3
tar -zcpf initial_node.tar.gz testdata
jwt:
bash -x tools/update_jwt.sh
fmt:
find tools -type f | xargs sed -i 's/\t/ /g'
find tools -type f | grep -v '\.md' | xargs sed -i 's/ $$//g'
update:
git pull --prune
git submodule update --init --recursive