From e5c38f2ef42ec13ddb2c31a3338d1df2f8d4b9da Mon Sep 17 00:00:00 2001 From: Nick Vincent Date: Sat, 21 Dec 2024 01:38:48 -0500 Subject: [PATCH] =?UTF-8?q?perf=20=F0=9F=9A=80:=20added=20in=20additional?= =?UTF-8?q?=20bootnodes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ISSUE: #60 --- etc/config/chain.json | 2 +- scripts/utils/chain.sh | 2 +- scripts/utils/geth.sh | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/etc/config/chain.json b/etc/config/chain.json index 099d794..6fe2647 100644 --- a/etc/config/chain.json +++ b/etc/config/chain.json @@ -1,5 +1,5 @@ { - "slotDuration": 4000, + "slotDuration": 5000, "authorities": [ "0x8aac0119dfcb2067423c28dedc03cd59cdc8e7620020b0b85615d161b2942a7f83bd41ac29d32aa6952473095fbe0974", "0x90531fe2fba6beff6ba208f88465aff3f033b3920bb8f1069c892f6e29ca8c1255d7dd4f4f334573c046813c010499f3", diff --git a/scripts/utils/chain.sh b/scripts/utils/chain.sh index 494ed7d..46ee9ee 100755 --- a/scripts/utils/chain.sh +++ b/scripts/utils/chain.sh @@ -82,7 +82,7 @@ function start_testnet_full_node() { local NUM=$1 local LOG_FILE=$(get_log_path $NUM) - cargo run --bin app -- --chain "${PWD}/etc/config/chain.json" --geth-execution-url http://localhost:8551 --geth-url http://localhost:8551/ --db-path "$(get_data_path $NUM)/chain_db" --rpc-port 3000 --wallet-path "$(get_data_path $NUM)" --bitcoin-rpc-url $BTC_RPC_URL --bitcoin-rpc-user $BTC_RPC_USER --bitcoin-rpc-pass $BTC_RPC_PASSWORD --bitcoin-network testnet --p2p-port 55444 --remote-bootnode /ip4/54.161.100.208/tcp/55444 > "$LOG_FILE" 2>&1 & + cargo run --bin app -- --chain "${PWD}/etc/config/chain.json" --geth-execution-url http://localhost:8551 --geth-url http://localhost:8551/ --db-path "$(get_data_path $NUM)/chain_db" --rpc-port 3000 --wallet-path "$(get_data_path $NUM)" --bitcoin-rpc-url $BTC_RPC_URL --bitcoin-rpc-user $BTC_RPC_USER --bitcoin-rpc-pass $BTC_RPC_PASSWORD --bitcoin-network testnet --p2p-port 55444 --remote-bootnode /ip4/54.161.100.208/tcp/55444/ip4/107.22.120.71/tcp/55444/ip4/54.224.209.248/tcp/55444 > "$LOG_FILE" 2>&1 & CHAIN_PIDS[$NUM]=$! } diff --git a/scripts/utils/geth.sh b/scripts/utils/geth.sh index dea7477..710b95e 100644 --- a/scripts/utils/geth.sh +++ b/scripts/utils/geth.sh @@ -69,6 +69,7 @@ function start_geth() { --verbosity 5 \ --log.file $LOG_FILE \ --nodiscover \ + --syncmode full \ --maxpeers 20 \ --gpo.ignoreprice 1 \ --metrics \ @@ -137,7 +138,7 @@ function start_testnet_geth() { --port ${PORT} \ --gcmode "archive" \ --maxpeers 20 \ - --bootnodes "enode://6f8c2bfe5b83e79d0dfcf2a619af0a05ca178c5c22c30654db80e8e975133797cf704f0707f6b739731c89cf147fd6835500e632484064b048fdad141ccf542c@54.161.100.208:30303" \ + --bootnodes "enode://6f8c2bfe5b83e79d0dfcf2a619af0a05ca178c5c22c30654db80e8e975133797cf704f0707f6b739731c89cf147fd6835500e632484064b048fdad141ccf542c@54.161.100.208:30303,enode://6fa3a059cde5853f5702fcba00d7d682dfd8af4140fc088fe19ced7aaf245c238377bfa2c3fbb058593c412cfd20b26192b86ba4266770beff79d9fb8a18bc07@107.22.120.71:30303,enode://f18232ce8d651a06273107f2084a7d0c914712893968ad5b7ad77c324dde2e3d117fe6058b63eae817615bdd354a90217d19ba113a4237080e2527f626b80dcf@54.224.209.248:30303" \ $ARGUMENT & GETH_PIDS[$NUM]=$! }