Skip to content

Commit b17d14c

Browse files
authored
Merge pull request #4818 from harmony-one/feature/debug_multi_bls_terminal
Add New Command to Makefile for Enhanced Localnet Debugging
2 parents c84173a + f922c82 commit b17d14c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ help:
2525
@echo "trace-pointer - build the harmony binary & bootnode with pointer analysis"
2626
@echo "debug - start a localnet with 2 shards (s0 rpc endpoint = localhost:9700; s1 rpc endpoint = localhost:9800)"
2727
@echo "debug-kill - force kill the localnet"
28+
@echo "debug-multi-bls - start a localnet with external validators and multi-BLS keys in the background"
29+
@echo "debug-multi-bls-with-terminal - start a localnet with external validators and multi-BLS keys using screen, providing real-time logs and automatic cleanup on exit"
2830
@echo "debug-ext - start a localnet with 2 shards and external (s0 rpc endpoint = localhost:9598; s1 rpc endpoint = localhost:9596)"
2931
@echo "clean - remove node files & logs created by localnet"
3032
@echo "distclean - remove node files & logs created by localnet, and all libs"
@@ -99,6 +101,15 @@ debug-multi-bls:
99101
echo sleep 10s before creating the external validator
100102
sleep 10
101103
bash ./test/build-localnet-validator.sh
104+
105+
debug-multi-bls-with-terminal:
106+
# add VERBOSE=true before bash or run `export VERBOSE=true` on the shell level for have max logging
107+
# add LEGACY_SYNC=true before bash or run `export LEGACY_SYNC=true` on the shell level to switch to the legacy sync
108+
screen -L -Logfile ./tmp_log/localnet_terminal.log -dmS localnet bash -c './test/debug.sh ./test/configs/local-multi-bls.txt 64 64; echo "Press any key to exit..."; read -n 1'
109+
echo sleep 10s before creating the external validator
110+
sleep 10
111+
bash ./test/build-localnet-validator.sh
112+
screen -r localnet
102113

103114
clean:
104115
rm -rf ./tmp_log*

0 commit comments

Comments
 (0)