Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into sanaz/use-latest-main…
Browse files Browse the repository at this point in the history
…-for-benchmark-tests
  • Loading branch information
staheri14 committed Sep 12, 2024
2 parents b9a138d + 07411e2 commit 95b7ebd
Show file tree
Hide file tree
Showing 24 changed files with 19 additions and 26 deletions.
22 changes: 18 additions & 4 deletions scripts/mainnet.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

# This script starts a consensus node on Mainnet Beta and state syncs to the tip
# of the chain.

# Stop script execution if an error is encountered
set -o errexit
# Stop script execution if an undefined variable is used
Expand All @@ -10,6 +13,7 @@ NODE_NAME="node-name"
SEEDS="e6116822e1a5e283d8a85d3ec38f4d232274eaf3@consensus-full-seed-1.celestia-bootstrap.net:26656,cf7ac8b19ff56a9d47c75551bd4864883d1e24b5@consensus-full-seed-2.celestia-bootstrap.net:26656"
CELESTIA_APP_HOME="${HOME}/.celestia-app"
CELESTIA_APP_VERSION=$(celestia-appd version 2>&1)
RPC="https://celestia-rpc.polkachu.com:443"

echo "celestia-app home: ${CELESTIA_APP_HOME}"
echo "celestia-app version: ${CELESTIA_APP_VERSION}"
Expand All @@ -35,10 +39,20 @@ celestia-appd init ${NODE_NAME} --chain-id ${CHAIN_ID} > /dev/null 2>&1 # Hide o
echo "Settings seeds in config.toml..."
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/" $CELESTIA_APP_HOME/config/config.toml

LATEST_HEIGHT=$(curl -s $RPC/block | jq -r .result.block.header.height);
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \
TRUST_HASH=$(curl -s "$RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)

echo "Block height: $BLOCK_HEIGHT"
echo "Trust hash: $TRUST_HASH"
echo "Enabling state sync in config.toml..."
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$RPC,$RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" $HOME/.celestia-app/config/config.toml

echo "Downloading genesis file..."
celestia-appd download-genesis ${CHAIN_ID} > /dev/null 2>&1 # Hide output to reduce terminal noise

echo "Starting celestia-appd in the background and piping logs to mainnet.log"
nohup celestia-appd start > "${HOME}/mainnet.log" 2>&1 &

echo "You can check the node's status via: celestia-appd status"
echo "Starting celestia-appd..."
celestia-appd start --v2-upgrade-height 2371495
1 change: 1 addition & 0 deletions specs/src/parameters_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ hardcoded in the application or they are blocked by the `x/paramfilter` module.
| mint.DisinflationRate | 0.10 (10%) | The rate at which the inflation rate decreases each year. | False |
| mint.InitialInflationRate | 0.08 (8%) | The inflation rate the network starts at. | False |
| mint.TargetInflationRate | 0.015 (1.5%) | The inflation rate that the network aims to stabilize at. | False |
| packetfowardmiddleware.FeePercentage | 0 | % of the forwarded packet amount which will be subtracted and distributed to the community pool. | True |
| slashing.DowntimeJailDuration | 1 min | Duration of time a validator must stay jailed. | True |
| slashing.MinSignedPerWindow | 0.75 (75%) | The percentage of SignedBlocksWindow that must be signed not to get jailed. | True |
| slashing.SignedBlocksWindow | 5000 | The range of blocks used to count for downtime. | True |
Expand Down
1 change: 0 additions & 1 deletion specs/src/specs/ante_handler.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/ante_handler_v1.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/ante_handler_v2.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/block_proposer.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/block_validity_rules.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/cat_pool.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/consensus.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/data_square_layout.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/data_structures.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/fraud_proofs.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/multisig.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/namespace.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/networking.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/parameters.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/parameters_v1.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/parameters_v2.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/public_key_cryptography.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/resource_pricing.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/shares.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/state_machine_modules.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/state_machine_modules_v1.md

This file was deleted.

1 change: 0 additions & 1 deletion specs/src/specs/state_machine_modules_v2.md

This file was deleted.

0 comments on commit 95b7ebd

Please sign in to comment.