From 0f09d6a61eb8f1767f5fe2003bb4eec503496882 Mon Sep 17 00:00:00 2001 From: GheisMohammadi Date: Thu, 19 Dec 2024 17:09:19 +0800 Subject: [PATCH 1/2] add new command in makefile for debug multi bls with terminal --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 76a66e6b93..a2d29d8864 100644 --- a/Makefile +++ b/Makefile @@ -99,6 +99,15 @@ debug-multi-bls: echo sleep 10s before creating the external validator sleep 10 bash ./test/build-localnet-validator.sh + +debug-multi-bls-with-terminal: + # add VERBOSE=true before bash or run `export VERBOSE=true` on the shell level for have max logging + # add LEGACY_SYNC=true before bash or run `export LEGACY_SYNC=true` on the shell level to switch to the legacy sync + 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' + echo sleep 10s before creating the external validator + sleep 10 + bash ./test/build-localnet-validator.sh + screen -r localnet clean: rm -rf ./tmp_log* From f922c8287236f4fbd556c0a85093da81c8560023 Mon Sep 17 00:00:00 2001 From: GheisMohammadi Date: Thu, 19 Dec 2024 17:21:43 +0800 Subject: [PATCH 2/2] add new commands to 'make help' --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index a2d29d8864..7e3b5266dd 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,8 @@ help: @echo "trace-pointer - build the harmony binary & bootnode with pointer analysis" @echo "debug - start a localnet with 2 shards (s0 rpc endpoint = localhost:9700; s1 rpc endpoint = localhost:9800)" @echo "debug-kill - force kill the localnet" + @echo "debug-multi-bls - start a localnet with external validators and multi-BLS keys in the background" + @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" @echo "debug-ext - start a localnet with 2 shards and external (s0 rpc endpoint = localhost:9598; s1 rpc endpoint = localhost:9596)" @echo "clean - remove node files & logs created by localnet" @echo "distclean - remove node files & logs created by localnet, and all libs"