Skip to content

Commit

Permalink
perf 🚀: added in additional bootnodes
Browse files Browse the repository at this point in the history
ISSUE: #60
  • Loading branch information
emailnjv committed Dec 21, 2024
1 parent 1ca8c04 commit e5c38f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion etc/config/chain.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"slotDuration": 4000,
"slotDuration": 5000,
"authorities": [
"0x8aac0119dfcb2067423c28dedc03cd59cdc8e7620020b0b85615d161b2942a7f83bd41ac29d32aa6952473095fbe0974",
"0x90531fe2fba6beff6ba208f88465aff3f033b3920bb8f1069c892f6e29ca8c1255d7dd4f4f334573c046813c010499f3",
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils/chain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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]=$!
}

Expand Down
3 changes: 2 additions & 1 deletion scripts/utils/geth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function start_geth() {
--verbosity 5 \
--log.file $LOG_FILE \
--nodiscover \
--syncmode full \
--maxpeers 20 \
--gpo.ignoreprice 1 \
--metrics \
Expand Down Expand Up @@ -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]=$!
}
Expand Down

0 comments on commit e5c38f2

Please sign in to comment.