-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Smuu <[email protected]>
- Loading branch information
Showing
7 changed files
with
299 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters