Celestia 백서

Celestia

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 20쪽 중 13쪽

consensus/state.go:746 +0x44\npanic({0x1b91180?, 0x400153b240?})\n\t/usr/local/go/src/runtime/panic.go:770 +0x124\ngithub.com/tendermint/tendermint/consensus.(*State).finalizeCommit(0x400065ea88, 0x3)\n\t/go/pkg/mod/github.com/celestiaorg/celestia-core@v1.35.0-tm-v0.34.29/consensus/state.go:1637 +0xd30\ngithub.com/tendermint/tendermint/consensus.(*State).tryFinalizeCommit(0x400065ea88, 0x3)\n\t/go/pkg/mod/github.com/celestiaorg/celestia-core@v1.35.0-tm-v0.34.29/consensus/state.go:1606 +0x26c\ngithub.com/tendermint/tendermint/consensus.(*State).handleCompleteProposal(0x400065ea88, 0x3)\n\t/go/pkg/mod/github.com/celestiaorg/celestia-core@v1.35.0-tm-v0.34.29/consensus/state.go:2001 +0x2d8\ngithub.com/tendermint/tendermint/consensus.(*State).handleMsg(0x400065ea88, {{0x2b30a00, 0x400143e048}, {0x40002a61b0, 0x28}})\n\t/go/pkg/mod/github.com/celestiaorg/celestia-core@v1.35.0-tm-v0.34.29/consensus/state.go:856 +0x1c8\ngithub.com/tendermint/tendermint/consensus.(*State).receiveRoutine(0x400065ea88, 0x0)\n\t/go/pkg/mod/github.com/celestiaorg/celestia-core@v1.35.0-tm-v0.34.29/consensus/state.go:782 +0x2c4\ncreated by github.com/tendermint/tendermint/consensus.(*State).OnStart in goroutine 169\n\t/go/pkg/mod/github.com/celestiaorg/celestia-core@v1.35.0-tm-v0.34.29/consensus/state.go:391 +0x110\n" ``` then it is likely that the network has upgraded to a new app version but your consensus node was not prepared for the upgrade. To fix this, you'll need to update your binary to the latest version and restart your node with the relevant `--v2-upgrade-height` for the network you're running on. If your node still can't sync to the tip of the chain after the above steps, consider a `celestia-appd tendermint reset-state` to reset your node and start syncing from the genesis block. 1. [Optional] Back up your validator keys. 1. [Optional] Back up the `data/priv_validator_state.json` inside your CELESTIA_HOME directory. 1. Remove DBs from your CELESTIA_HOME directory via: `celestia-appd tendermint reset-state`. 1. Remove the `data/application.db` inside your CELESTIA_HOME directory. 1. Download the latest binary for your network. 1. Restart your consensus node with the relevant `--v2-upgrade-height` for the network you're running on. ### `App cannot be started without CometBFT when using the multiplexer` If you encounter an error like: ```bash 2025-11-13 14:48:24 6:48PM ERR App cannot be started without CometBFT when using the multiplexer. ``` It is possible that one of the historical celestia-app binaries you have downloaded is a multiplexer binary. To resolve you can remove all historical binaries: ```bash rm -rf ~/.celestia-app/bin ``` Re-download all historical binaries: ```bash make download-v3-binaries download-v4-binaries download-v5-binaries ``` ### `ERR failed to LoadFinalizeBlockResponse err="node is not persisting finalize block responses"` If you encounter an error like: ```bash ERR failed to LoadFinalizeBlockResponse err="node is not persisting finalize block responses" module=rpc ``` Then the RPC node you are querying is not persisting finalize block responses. To resolve, you can query a node that _does_ persist finalize block responses. If you run the node, you can modify the `config.toml` to set `discard_abci_responses = false`: ```toml [storage] # Set to true to discard ABCI responses from the state store, which can save a # considerable amount of disk space. Set to false to ensure ABCI responses are # persisted. ABCI responses are required for /block_results RPC queries, and to # reindex events in the command-line tool. discard_abci_responses = false ``` --- Title: Setting up a Celestia bridge node URL: https://docs.celestia.org/operate/data-availability/bridge-node.md Source: app/operate/data-availability/bridge-node/page.mdx --- # Setting up a Celestia bridge node This tutorial will go over the steps to set up your Celestia bridge node. Bridge nodes connect the data availability layer and the consensus layer. ## Overview of bridge nodes A Celestia bridge node has the following properties: 1. Import and process “raw” headers & blocks from a trusted core process (meaning a trusted RPC connection to a consensus node) in the Consensus network. Bridge nodes can run this core process internally (embedded) or simply connect to a remote endpoint. Bridge nodes also have the option of being an active validator in the consensus network. 2. Validate and erasure code the “raw” blocks 3. Supply block shares with data availability headers to light nodes in the DA network. ![bridge-node-diagram](/img/nodes/BridgeNodes.png) From an implementation perspective, Bridge nodes run two separate processes: 1. celestia-app with celestia-core ([see repo](https://github.com/celestiaorg/celestia-app)) - **celestia-app** is the state machine where the application and the proof-of-stake logic is run. celestia-app is built on [Cosmos SDK](https://docs.cosmos.network) and also encompasses **celestia-core**. - **celestia-core** is the state interaction, consensus and block production layer. celestia-core is built on [Tendermint Core](https://docs.tendermint.com), modified to store data roots of erasure coded blocks among other changes ([see ADRs](https://github.com/celestiaorg/celestia-core/tree/master/docs/celestia-architecture)). 2. celestia-node ([see repo](https://github.com/celestiaorg/celestia-node)) - **celestia-node** augments the above with a separate libp2p network that serves data availability sampling requests. The team sometimes refers to this as the “halo” network. ## Hardware requirements See [hardware requirements](/operate/getting-started/hardware-requirements). ## Setting up your bridge node The following tutorial is done on an Ubuntu Linux 20.04 (LTS) x64 instance machine. Deploy the Celestia bridge node with the following steps. You can create your key for your node by [following the `cel-key` instructions](/operate/keys-wallets/celestia-node-key). Once you start the bridge node, a wallet key will be generated for you. You will need to fund that address with Testnet tokens to pay for `PayForBlob` transactions. You can find the address by running the following command: ```sh ./cel-key list --node.type bridge --keyring-backend test --p2p.network <network> ``` You do not need to declare a network for Mainnet Beta. Refer to [the chain ID section on the troubleshooting page for more information](/operate/maintenance/troubleshooting). You can get testnet tokens from: - [Mocha](/operate/networks/mocha-testnet) > **Note:** If you are running a bridge node for your validator, it is highly recommended to request Mocha testnet tokens as this is the testnet used to test out validator operations. #### Optional: run the bridge node with a custom key In order to run a bridge node using a custom key: 1. The custom key must exist inside the celestia bridge node directory at the correct path (default: `~/.celestia-bridge/keys/keyring-test`) 2. The name of the custom key must be passed upon `start`, like so: #### Optional: Migrate node id to another server To migrate a bridge node ID: 1. You need to back up two files located in the celestia-bridge node directory at the correct path (default: `~/.celestia-bridge/keys`). 2. Upload the files to the new server and start the node. ### Optional: start the bridge node with SystemD Follow the [tutorial on setting up the bridge node as a background process with SystemD](/operate/maintenance/systemd). You have successfully set up a bridge node that is syncing with the network. ### Optional: enable on-fly compression with ZFS Follow the [tutorial on how to set up your DA node to use on-fly compression with ZFS](/operate/data-availability/storage-optimization). --- Title: config.toml guide URL: https://docs.celestia.org/operate/data-availability/config-reference.md Source: app/operate/data-availability/config-reference/page.mdx --- # config.toml guide ## Pre-requisites Please, make sure that you have installed and initialized `celestia-node` ## Viewing the help menu In order to view all flags and their descriptions, use: ```bash celestia light start --help ``` ## Understanding config.toml After initialization, for any type of node, you will find a `config.toml` in the following path (default location): - `$HOME/.celestia-bridge/config.toml` for bridge node - `$HOME/.celestia-light/config.toml` for light node Let's break down some of the most used sections. ### Core (Consensus) This section is needed for the Celestia bridge node. By default, `Remote = false`. Still for devnet, we are going to use the remote consensus node option and this can also be set by the command line flag `--core.remote`. ### RPC Starting with celestia-node v0.31.3, the RPC server supports optional per-IP rate limiting. If you upgraded an existing node from an earlier version, add the new fields while preserving your custom configuration by running: ```bash celestia <node_type> config-update --p2p.network <network> ``` The default rate-limit configuration is: ```toml [RPC.RateLimit] Enabled = false RequestsPerSec = 100 Burst = 200 CacheSize = 8192 ``` - `Enabled` turns per-IP rate limiting on or off. - `RequestsPerSec` sets the sustained request rate allowed for each IP address. - `Burst` allows short request spikes before the sustained rate is enforced. - `CacheSize` limits the number of per-IP rate-limit buckets held in memory. When the limit is exceeded, the RPC server responds with HTTP status `429 Too Many Requests`. Leave this rate limiter disabled when the node is behind a reverse proxy because all requests may appear to come from the proxy's IP address. Apply rate limiting at the proxy instead. RPC request bodies are limited to 16 MiB, and the server accepts up to 500 concurrent connections. These limits are enforced by the server and are not configurable in `config.toml`. See the [celestia-node v0.31.3 release notes](https://github.com/celestiaorg/celestia-node/releases/tag/v0.31.3) for the complete upgrade instructions. ### P2P #### Bootstrap Bootstrappers help new nodes to find peers faster in the network. By default, the `Bootstrapper = false` and the `BootstrapPeers` is empty. If you want your node to be a bootstrapper, then activate `Bootstrapper = true`. `BootstrapPeers` are already provided by default during initialisation. If you want to add your own manually, you need to provide the multiaddresses of the peers. #### Mutual peers The purpose of this config is to set up a bidirectional communication. This is usually the case for Celestia bridge nodes. In addition, you need to change the field `PeerExchange` from false to true. ### Services #### TrustedHash and TrustedPeer `TrustedHash` is needed to properly initialize a Celestia bridge node with an already-running `Remote` Celestia consensus node. Celestia light node will take a genesis hash as the trusted one, if no hash is manually provided during initialization phase. `TrustedPeers` is the array of bridge nodes' peers that Celestia light node trusts. By default, bootstrap peers becomes trusted peers for Celestia light nodes if a user is not setting the trusted peer params in config file. Any Celestia bridge node can be a trusted peer for the light one. However, the light node by design can not be a trusted peer for another light node. --- Title: Custom networks and values URL: https://docs.celestia.org/operate/data-availability/custom-networks.md Source: app/operate/data-availability/custom-networks/page.mdx --- # Custom networks and values This section will cover importing bootstrapper IDs, chain ID, and network ID. This will allow you to import custom values for a chain that is not in the default configuration. If you have a custom network you can export `CELESTIA_CUSTOM`, which will look something like: ```bash export BRIDGE="/ip4/<ip-address>/tcp/2121/p2p/<node-ID>" export GENESIS_HASH=<genesis-hash> export NETWORK=<network-name> export CELESTIA_CUSTOM="${NETWORK}:${GENESIS_HASH}:${BRIDGE}" ``` Query your node ID [from the CLI](/operate/data-availability/light-node/advanced#find-your-node-id). These values with examples would look like: ```bash export BRIDGE="/ip4/151.115.14.33/tcp/2121/p2p/12D3KooWKEeRtzVMPUdxYsZo2edqps6mS67n6LT5mPdULSkPSxBQ" export GENESIS_HASH=580B3DFF8A7C716968161D91116A1E171F486298D582874E93714E489C9E6E88 export NETWORK=custom export CELESTIA_CUSTOM="${NETWORK}:${GENESIS_HASH}:${BRIDGE}" ``` Then, start your node with: ```bash celestia <node-type> start [flags...] ``` --- Title: IBC relaying guide URL: https://docs.celestia.org/operate/data-availability/ibc-relayer.md Source: app/operate/data-availability/ibc-relayer/page.mdx --- # IBC relaying guide Celestia uses [IBC](https://ibcprotocol.dev/) to enable cross-chain token transfers. Relayers scan for outbound packets on one chain and submit them with proofs on the destination chain. This guide shows how to set up a relayer and create connections using Hermes between Celestia Mocha testnet and Cosmos Hub theta-testnet-001. There are two standard relayer implementations: - [Hermes](https://hermes.informal.systems/) (Rust) - [Go Relayer](https://pkg.go.dev/github.com/cosmos/relayer) (Go) Check the [latest celestia-app release's `go.mod`](https://github.com/celestiaorg/celestia-app/blob/2b8cc9e23826ccb658b7dd5aa6cd51a0921a0c29/go.mod#L35) for the ibc-go version in use. ## Hermes [Hermes](https://github.com/informalsystems/hermes) is an open-source Rust relayer. Follow the [Hermes Quick Start](https://hermes.informal.systems/quick-start/) to install, then verify with `hermes version`. Hermes currently doesn't support configuring Tendermint `CompatMode` in chain config. Use Hermes [v1.7.0+](https://github.com/informalsystems/hermes/releases/tag/v1.7.0), which falls back to Tendermint `CompatMode` v0.34 (compatible with Celestia). ### Configuration After installing Hermes, edit `config.toml` to add your chains. This tutorial uses: - Celestia `mocha-5` testnet - Cosmos Hub `theta-testnet-001` testnet Edit the Hermes configuration: ```bash vim $HOME/.hermes/config.toml ``` ```toml [global] log_level = "info" [mode.clients] enabled = true refresh = true misbehaviour = true [mode.connections] enabled = false [mode.channels] enabled = false [mode.packets] enabled = true clear_interval = 100 clear_on_start = true tx_confirmation = false auto_register_counterparty_payee = false [rest] enabled = false host = "127.0.0.1" port = 3000 [telemetry] enabled = false host = "127.0.0.1" port = 3001 [telemetry.buckets.latency_submitted] start = 500 end = 20000 buckets = 10 [telemetry.buckets.latency_confirmed] start = 1000 end = 30000 buckets = 10 [[chains]] id = "theta-testnet-001" type = "CosmosSdk" rpc_addr = "https://rpc.sentry-01.theta-testnet.polypore.xyz" grpc_addr = "https://grpc.sentry-01.theta-testnet.polypore.xyz" rpc_timeout = "10s" trusted_node = false account_prefix = "cosmos" key_name = "key-cosmos" key_store_type = "Test" store_prefix = "ibc" default_gas = 100000 max_gas = 400000 gas_multiplier = 1.5 max_msg_num = 30 max_tx_size = 180000 max_grpc_decoding_size = 33554432 clock_drift = "5s" max_block_time = "30s" ccv_consumer_chain = false memo_prefix = "" sequential_batch_tx = false [chains.event_source] mode = "push" url = "ws://rpc.sentry-01.theta-testnet.polypore.xyz:26657/websocket" batch_delay = "500ms" [chains.trust_threshold] numerator = "1" denominator = "3" [chains.gas_price] price = 0.025 denom = "uatom" [chains.packet_filter] policy = "allow" list = [["transfer", "channel-3108"]] [chains.packet_filter.min_fees] [chains.address_type] derivation = "cosmos" [[chains]] id = "mocha-5" type = "CosmosSdk" rpc_addr = "https://public-endpoint.celestia-mocha.quiknode.pro" grpc_addr = "https://grpc.celestia-mocha.com:443" rpc_timeout = "10s" trusted_node = false account_prefix = "celestia" key_name = "celestia-key" key_store_type = "Test" store_prefix = "ibc" default_gas = 100000 max_gas = 400000 gas_multiplier = 1.5 max_msg_num = 30 max_tx_size = 180000 max_grpc_decoding_size = 33554432 clock_drift = "5s" max_block_time = "30s" ccv_consumer_chain = false memo_prefix = "" sequential_batch_tx = false [chains.event_source] mode = "push" url = "wss://public-endpoint.celestia-mocha.quiknode.pro/websocket" batch_delay = "500ms" [chains.trust_threshold] numerator = "1" denominator = "3" [chains.gas_price] price = 0.1 denom = "utia" [chains.packet_filter] policy = "allow" list = [["transfer", "channel-0"]] [chains.packet_filter.min_fees] [chains.address_type] derivation = "cosmos" ``` ### Add relayer wallets Import and fund wallets for both chains (native tokens required). Faucets: - Celestia: [discord.gg](https://discord.com/invite/YsnTPcSfWQ) - Cosmos Hub: [discord.gg/cosmosnetwork](https://discord.gg/cosmosnetwork) Add Cosmos wallet: ```bash hermes keys add --key-name key-cosmos --chain theta-testnet-001 --mnemonic-file $HOME/.hermes/key-cosmos-mnemonic.txt ``` Add Celestia wallet: ```bash hermes keys add --key-name celestia-key --chain mocha-5 --mnemonic-file $HOME/.hermes/key-celestia-mnemonic.txt ``` ### Create a channel With both chains configured and wallets funded, create a channel: ```bash hermes create channel --a-chain theta-testnet-001 --b-chain mocha-5 --a-port transfer --b-port transfer --new-client-connection ``` This command creates: - New clients on both chains - A connection between them - A channel on the `transfer` port ### Relay packets Start relaying packets on the channel: ```bash hermes start ``` Hermes will now relay IBC packets between Mocha testnet and Cosmos Hub theta-testnet-001. --- Title: Install celestia-node URL: https://docs.celestia.org/operate/data-availability/install-celestia-node.md Source: app/operate/data-availability/install-celestia-node/page.mdx --- # Install celestia-node ## Supported architectures Celestia-node officially supports the following architectures: - linux/amd64 - linux/arm64 - darwin/amd64 (macOS Intel) - darwin/arm64 (macOS Apple Silicon) Only these four architectures are officially tested and supported. ## Installing from source This section goes over building and installing celestia-node. This tutorial assumes you completed the steps in [setting up your development environment](/operate/getting-started/environment-setup). Install the celestia-node binary by running the following commands: ## Installing a pre-built binary Installing a pre-built binary is the fastest way to get started with your Celestia data availability node. Releases after celestia-node v0.13.3 have these binaries available. The installation script will download a binary file named `celestia`. Depending on your environment and chosen installation option, the `celestia` binary will be available at one of these locations: - The Homebrew bin directory (usually `/opt/homebrew/bin/celestia` on Apple silicon or `/usr/local/bin/celestia` on Intel Macs) when Go is installed with Homebrew - `$GOBIN/celestia`, or `$GOPATH/bin/celestia` when `GOBIN` is unset, for other Go installations - `/usr/local/bin/celestia` - `$HOME/celestia-node-temp/celestia` Pre-built binaries are available for: - Operating systems: Darwin (Apple), Linux - Architectures: x86_64 (amd64), arm64 ### Installation options Pass the `-v` flag to install the recommended version for your network: If you omit `-v`, the script installs the [latest stable GitHub release](https://github.com/celestiaorg/celestia-node/releases/latest). This does not select a version for your network and excludes releases marked as pre-releases, including Mocha releases. Use the network-specific command above. The script will: 1. Detect your system's operating system and architecture 2. Download the appropriate binary 3. Verify the checksum for security 4. Provide installation location options based on your environment: - If Go is installed: - Detected Go bin d
프로젝트로 돌아가기