From ba1cabc0c99e7f53f133933aafe27c0c2d83d0e7 Mon Sep 17 00:00:00 2001 From: realbigsean Date: Fri, 16 Dec 2022 14:52:37 -0500 Subject: [PATCH] Revert "remove json snooper from local testnet scripts" This reverts commit 60d70ca501a46e632e6d563caa00b6032f0dcf75. --- scripts/local_testnet/start_local_testnet.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/local_testnet/start_local_testnet.sh b/scripts/local_testnet/start_local_testnet.sh index a188a1458..aa780339b 100755 --- a/scripts/local_testnet/start_local_testnet.sh +++ b/scripts/local_testnet/start_local_testnet.sh @@ -120,7 +120,7 @@ EL_base_auth_http=5000 (( $VC_COUNT < $BN_COUNT )) && SAS=-s || SAS= for (( el=1; el<=$BN_COUNT; el++ )); do - execute_command_add_PID geth_$el.log ./geth.sh $DATADIR/geth_datadir$el $((EL_base_network + $el)) $((EL_base_http + $el)) $((EL_base_auth_http + $el)) $genesis_file + execute_command_add_PID geth_$el.log ./geth.sh $DATADIR/geth_datadir$el $((EL_base_network + $el)) $((EL_base_http + $el)) $((EL_base_auth_http + $el + 10)) $genesis_file done sleeping 20 @@ -130,6 +130,8 @@ sed -i 's/"shanghaiTime".*$/"shanghaiTime": 0,/g' genesis.json sed -i 's/"shardingForkTime".*$/"shardingForkTime": 0,/g' genesis.json for (( bn=1; bn<=$BN_COUNT; bn++ )); do + + execute_command_add_PID json_snoop_$bn.log json_rpc_snoop -p $((EL_base_auth_http + $bn)) -b 0.0.0.0 http://localhost:$((EL_base_auth_http + $bn + 10)) secret=$DATADIR/geth_datadir$bn/geth/jwtsecret echo $secret execute_command_add_PID beacon_node_$bn.log ./beacon_node.sh $SAS -d $DEBUG_LEVEL $DATADIR/node_$bn $((BN_udp_tcp_base + $bn)) $((BN_http_port_base + $bn)) http://localhost:$((EL_base_auth_http + $bn)) $secret