Skip to content

Commit

Permalink
feat: bump node to v0.18.1 (#45)
Browse files Browse the repository at this point in the history
Signed-off-by: Smuu <[email protected]>
  • Loading branch information
smuu authored Sep 27, 2024
1 parent af2b289 commit 6f31172
Show file tree
Hide file tree
Showing 7 changed files with 299 additions and 31 deletions.
4 changes: 2 additions & 2 deletions charts/celestia-node/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ annotations:
category: celestia
licenses: Apache-2.0
apiVersion: v2
appVersion: v0.18.0
appVersion: v0.18.1
dependencies:
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
Expand All @@ -21,4 +21,4 @@ maintainers:
name: celestia-node
sources:
- https://github.com/celestiaorg/celestia-node
version: 0.5.1
version: 0.5.2
4 changes: 2 additions & 2 deletions charts/celestia-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ node:
registry: ghcr.io
# -- repository for the image, celestiaorg/celestia-node by default
repository: celestiaorg/celestia-node
# -- tag for the image, v0.18.0 by default
tag: v0.18.0
# -- tag for the image, v0.18.1 by default
tag: v0.18.1
digest: ""
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
Expand Down
78 changes: 78 additions & 0 deletions scripts/config/node/bridge/v0.18.1/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
[Node]
StartupTimeout = "2m0s"
ShutdownTimeout = "2m0s"

[Core]
IP = ""
RPCPort = "26657"
GRPCPort = "9090"

[State]
DefaultKeyName = "my_celes_key"
DefaultBackendName = "test"

[P2P]
ListenAddresses = ["/ip4/0.0.0.0/udp/2121/quic-v1/webtransport", "/ip6/::/udp/2121/quic-v1/webtransport", "/ip4/0.0.0.0/udp/2121/quic-v1", "/ip6/::/udp/2121/quic-v1", "/ip4/0.0.0.0/udp/2121/webrtc-direct", "/ip6/::/udp/2121/webrtc-direct", "/ip4/0.0.0.0/tcp/2121", "/ip6/::/tcp/2121"]
AnnounceAddresses = []
NoAnnounceAddresses = ["/ip4/127.0.0.1/udp/2121/quic-v1/webtransport", "/ip4/0.0.0.0/udp/2121/quic-v1/webtransport", "/ip6/::/udp/2121/quic-v1/webtransport", "/ip4/0.0.0.0/udp/2121/quic-v1", "/ip4/127.0.0.1/udp/2121/quic-v1", "/ip6/::/udp/2121/quic-v1", "/ip4/0.0.0.0/udp/2121/webrtc-direct", "/ip4/127.0.0.1/udp/2121/webrtc-direct", "/ip6/::/udp/2121/webrtc-direct", "/ip4/0.0.0.0/tcp/2121", "/ip4/127.0.0.1/tcp/2121", "/ip6/::/tcp/2121"]
MutualPeers = []
PeerExchange = true
[P2P.ConnManager]
Low = 800
High = 1000
GracePeriod = "1m0s"

[RPC]
Address = "localhost"
Port = "26658"
SkipAuth = false

[Gateway]
Address = "localhost"
Port = "26659"
Enabled = false

[Share]
BlockStoreCacheSize = 128
UseShareExchange = true
[Share.EDSStoreParams]
RecentBlocksCacheSize = 10
[Share.ShrExEDSParams]
ServerReadTimeout = "5s"
ServerWriteTimeout = "1m0s"
HandleRequestTimeout = "1m0s"
ConcurrencyLimit = 10
BufferSize = 32768
[Share.ShrExNDParams]
ServerReadTimeout = "5s"
ServerWriteTimeout = "1m0s"
HandleRequestTimeout = "1m0s"
ConcurrencyLimit = 10
[Share.PeerManagerParams]
PoolValidationTimeout = "2m0s"
PeerCooldown = "3s"
GcInterval = "30s"
EnableBlackListing = false
[Share.Discovery]
PeersLimit = 5
AdvertiseInterval = "1h0m0s"

[Header]
TrustedHash = ""
TrustedPeers = []
[Header.Store]
StoreCacheSize = 4096
IndexCacheSize = 16384
WriteBatchSize = 2048
[Header.Syncer]
TrustingPeriod = "336h0m0s"
[Header.Server]
WriteDeadline = "8s"
ReadDeadline = "1m0s"
RangeRequestTimeout = "10s"
[Header.Client]
MaxHeadersPerRangeRequest = 64
RangeRequestTimeout = "8s"

[Pruner]
EnableService = false
85 changes: 85 additions & 0 deletions scripts/config/node/full/v0.18.1/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
[Node]
StartupTimeout = "2m0s"
ShutdownTimeout = "2m0s"

[Core]
IP = ""
RPCPort = "26657"
GRPCPort = "9090"

[State]
DefaultKeyName = "my_celes_key"
DefaultBackendName = "test"

[P2P]
ListenAddresses = ["/ip4/0.0.0.0/udp/2121/quic-v1/webtransport", "/ip6/::/udp/2121/quic-v1/webtransport", "/ip4/0.0.0.0/udp/2121/quic-v1", "/ip6/::/udp/2121/quic-v1", "/ip4/0.0.0.0/udp/2121/webrtc-direct", "/ip6/::/udp/2121/webrtc-direct", "/ip4/0.0.0.0/tcp/2121", "/ip6/::/tcp/2121"]
AnnounceAddresses = []
NoAnnounceAddresses = ["/ip4/127.0.0.1/udp/2121/quic-v1/webtransport", "/ip4/0.0.0.0/udp/2121/quic-v1/webtransport", "/ip6/::/udp/2121/quic-v1/webtransport", "/ip4/0.0.0.0/udp/2121/quic-v1", "/ip4/127.0.0.1/udp/2121/quic-v1", "/ip6/::/udp/2121/quic-v1", "/ip4/0.0.0.0/udp/2121/webrtc-direct", "/ip4/127.0.0.1/udp/2121/webrtc-direct", "/ip6/::/udp/2121/webrtc-direct", "/ip4/0.0.0.0/tcp/2121", "/ip4/127.0.0.1/tcp/2121", "/ip6/::/tcp/2121"]
MutualPeers = []
PeerExchange = true
[P2P.ConnManager]
Low = 800
High = 1000
GracePeriod = "1m0s"

[RPC]
Address = "localhost"
Port = "26658"
SkipAuth = false

[Gateway]
Address = "localhost"
Port = "26659"
Enabled = false

[Share]
BlockStoreCacheSize = 128
UseShareExchange = true
[Share.EDSStoreParams]
RecentBlocksCacheSize = 10
[Share.ShrExEDSParams]
ServerReadTimeout = "5s"
ServerWriteTimeout = "1m0s"
HandleRequestTimeout = "1m0s"
ConcurrencyLimit = 10
BufferSize = 32768
[Share.ShrExNDParams]
ServerReadTimeout = "5s"
ServerWriteTimeout = "1m0s"
HandleRequestTimeout = "1m0s"
ConcurrencyLimit = 10
[Share.PeerManagerParams]
PoolValidationTimeout = "2m0s"
PeerCooldown = "3s"
GcInterval = "30s"
EnableBlackListing = false
[Share.Discovery]
PeersLimit = 5
AdvertiseInterval = "1h0m0s"

[Header]
TrustedHash = ""
TrustedPeers = []
[Header.Store]
StoreCacheSize = 4096
IndexCacheSize = 16384
WriteBatchSize = 2048
[Header.Syncer]
TrustingPeriod = "336h0m0s"
[Header.Server]
WriteDeadline = "8s"
ReadDeadline = "1m0s"
RangeRequestTimeout = "10s"
[Header.Client]
MaxHeadersPerRangeRequest = 64
RangeRequestTimeout = "8s"

[DASer]
SamplingRange = 100
ConcurrencyLimit = 6
BackgroundStoreInterval = "10m0s"
SampleFrom = 1
SampleTimeout = "2m0s"

[Pruner]
EnableService = false
87 changes: 87 additions & 0 deletions scripts/config/node/light/v0.18.1/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
[Node]
StartupTimeout = "20s"
ShutdownTimeout = "20s"

[Core]
IP = ""
RPCPort = "26657"
GRPCPort = "9090"

[State]
DefaultKeyName = "my_celes_key"
DefaultBackendName = "test"

[P2P]
ListenAddresses = ["/ip4/0.0.0.0/udp/2121/quic-v1/webtransport", "/ip6/::/udp/2121/quic-v1/webtransport", "/ip4/0.0.0.0/udp/2121/quic-v1", "/ip6/::/udp/2121/quic-v1", "/ip4/0.0.0.0/udp/2121/webrtc-direct", "/ip6/::/udp/2121/webrtc-direct", "/ip4/0.0.0.0/tcp/2121", "/ip6/::/tcp/2121"]
AnnounceAddresses = []
NoAnnounceAddresses = ["/ip4/127.0.0.1/udp/2121/quic-v1/webtransport", "/ip4/0.0.0.0/udp/2121/quic-v1/webtransport", "/ip6/::/udp/2121/quic-v1/webtransport", "/ip4/0.0.0.0/udp/2121/quic-v1", "/ip4/127.0.0.1/udp/2121/quic-v1", "/ip6/::/udp/2121/quic-v1", "/ip4/0.0.0.0/udp/2121/webrtc-direct", "/ip4/127.0.0.1/udp/2121/webrtc-direct", "/ip6/::/udp/2121/webrtc-direct", "/ip4/0.0.0.0/tcp/2121", "/ip4/127.0.0.1/tcp/2121", "/ip6/::/tcp/2121"]
MutualPeers = []
PeerExchange = false
[P2P.ConnManager]
Low = 50
High = 100
GracePeriod = "1m0s"

[RPC]
Address = "localhost"
Port = "26658"
SkipAuth = false

[Gateway]
Address = "localhost"
Port = "26659"
Enabled = false

[Share]
BlockStoreCacheSize = 128
UseShareExchange = true
[Share.EDSStoreParams]
RecentBlocksCacheSize = 10
[Share.ShrExEDSParams]
ServerReadTimeout = "5s"
ServerWriteTimeout = "1m0s"
HandleRequestTimeout = "1m0s"
ConcurrencyLimit = 10
BufferSize = 32768
[Share.ShrExNDParams]
ServerReadTimeout = "5s"
ServerWriteTimeout = "1m0s"
HandleRequestTimeout = "1m0s"
ConcurrencyLimit = 10
[Share.PeerManagerParams]
PoolValidationTimeout = "2m0s"
PeerCooldown = "3s"
GcInterval = "30s"
EnableBlackListing = false
[Share.LightAvailability]
SampleAmount = 16
[Share.Discovery]
PeersLimit = 5
AdvertiseInterval = "1h0m0s"

[Header]
TrustedHash = ""
TrustedPeers = []
[Header.Store]
StoreCacheSize = 512
IndexCacheSize = 2048
WriteBatchSize = 512
[Header.Syncer]
TrustingPeriod = "336h0m0s"
[Header.Server]
WriteDeadline = "8s"
ReadDeadline = "1m0s"
RangeRequestTimeout = "10s"
[Header.Client]
MaxHeadersPerRangeRequest = 64
RangeRequestTimeout = "8s"

[DASer]
SamplingRange = 100
ConcurrencyLimit = 16
BackgroundStoreInterval = "10m0s"
SampleFrom = 1
SampleTimeout = "2m40s"

[Pruner]
EnableService = false
41 changes: 41 additions & 0 deletions scripts/extract_app_configs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash

# Check if the correct number of arguments are provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <celestia-app-version>"
exit 1
fi

# Check if Docker is installed
if ! command -v docker &> /dev/null; then
echo "Docker is not installed. Please install Docker and try again."
exit 1
fi

# Assign arguments to variables
CELESTIA_APP_VERSION=$1

# Generate unique container name
APP_CONTAINER_NAME="celestia-app-container-$(date +%s)"

# Start the celestia-app container with the specified version and keep it running
docker run -d --name $APP_CONTAINER_NAME --entrypoint tail ghcr.io/celestiaorg/celestia-app:$CELESTIA_APP_VERSION -f /dev/null

# Execute the command in the celestia-app container
docker exec $APP_CONTAINER_NAME celestia-appd init app --chain-id celestia

# Create a directory named as the version in the scripts/config/app folder
SCRIPT_DIR=$(dirname "$0")
APP_CONFIG_DIR="$SCRIPT_DIR/config/app/$CELESTIA_APP_VERSION"
mkdir -p $APP_CONFIG_DIR

# Copy the config files from the celestia-app container to the folder
docker cp $APP_CONTAINER_NAME:/home/celestia/.celestia-app/config/app.toml $APP_CONFIG_DIR
docker cp $APP_CONTAINER_NAME:/home/celestia/.celestia-app/config/client.toml $APP_CONFIG_DIR
docker cp $APP_CONTAINER_NAME:/home/celestia/.celestia-app/config/config.toml $APP_CONFIG_DIR

# Stop and remove the celestia-app container in the background
docker stop $APP_CONTAINER_NAME
docker rm $APP_CONTAINER_NAME

echo "Config files for celestia-app version $CELESTIA_APP_VERSION have been extracted to $APP_CONFIG_DIR"
31 changes: 4 additions & 27 deletions scripts/extract_configs.sh → scripts/extract_node_config.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

# Check if the correct number of arguments are provided
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <celestia-app-version> <celestia-node-version>"
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <celestia-node-version>"
exit 1
fi

Expand All @@ -13,37 +13,13 @@ if ! command -v docker &> /dev/null; then
fi

# Assign arguments to variables
CELESTIA_APP_VERSION=$1
CELESTIA_NODE_VERSION=$2
CELESTIA_NODE_VERSION=$1

# Generate unique container names
APP_CONTAINER_NAME="celestia-app-container-$(date +%s)"
BRIDGE_CONTAINER_NAME="celestia-bridge-container-$(date +%s)"
FULL_CONTAINER_NAME="celestia-full-container-$(date +%s)"
LIGHT_CONTAINER_NAME="celestia-light-container-$(date +%s)"

# Start the celestia-app container with the specified version and keep it running
docker run -d --name $APP_CONTAINER_NAME --entrypoint tail ghcr.io/celestiaorg/celestia-app:$CELESTIA_APP_VERSION -f /dev/null

# Execute the command in the celestia-app container
docker exec $APP_CONTAINER_NAME celestia-appd init app --chain-id celestia

# Create a directory named as the version in the scripts/config/app folder
SCRIPT_DIR=$(dirname "$0")
APP_CONFIG_DIR="$SCRIPT_DIR/config/app/$CELESTIA_APP_VERSION"
mkdir -p $APP_CONFIG_DIR

# Copy the config files from the celestia-app container to the folder
docker cp $APP_CONTAINER_NAME:/home/celestia/.celestia-app/config/app.toml $APP_CONFIG_DIR
docker cp $APP_CONTAINER_NAME:/home/celestia/.celestia-app/config/client.toml $APP_CONFIG_DIR
docker cp $APP_CONTAINER_NAME:/home/celestia/.celestia-app/config/config.toml $APP_CONFIG_DIR

# Stop and remove the celestia-app container in the background
docker stop $APP_CONTAINER_NAME
docker rm $APP_CONTAINER_NAME

echo "Config files for celestia-app version $CELESTIA_APP_VERSION have been extracted to $APP_CONFIG_DIR"

# Function to extract config files for a given node type
extract_node_configs() {
NODE_TYPE=$1
Expand All @@ -56,6 +32,7 @@ extract_node_configs() {
docker exec $CONTAINER_NAME celestia $NODE_TYPE init

# Create a directory named as the version in the scripts/config/node/<node_type> folder
SCRIPT_DIR=$(dirname "$0")
NODE_CONFIG_DIR="$SCRIPT_DIR/config/node/$NODE_TYPE/$CELESTIA_NODE_VERSION"
mkdir -p $NODE_CONFIG_DIR

Expand Down

0 comments on commit 6f31172

Please sign in to comment.