bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 52쪽 중 38쪽
transferred back at a rate similar to the original data transfer rate, which depends on several factors.
Because of the various steps involved in the data retrieval process, Filecoin storage currently meets similar performance bars as traditional *warm* or *cold* storage. To get performance that is similar to other hot storage solutions, most users utilize Filecoin with a caching layer such as IPFS. These hybrid and multi-tiered storage solutions use IPFS for hot storage and Filecoin for affordable, frequent, and versioned backups. Some example hybrid storage products include [Lighthouse](https://www.lighthouse.storage/) and [web3.storage](https://web3.storage/).
[Was this page helpful?](https://airtable.com/apppq4inOe4gmSSlk/pagoZHC2i1iqgphgl/form?prefill_Page+URL=https://docs.filecoin.io/networks-and-tools/networks/mainnet/network-performance)
# Calibration
The calibration network is the most realistic testnet simulation of the Filecoin mainnet.
{% hint style="info" %}
Also see [Calibration RPCs](/networks-and-tools/networks/calibration/rpcs) and [Calibration Explorers](/networks-and-tools/networks/calibration/explorers).
{% endhint %}
The calibration network is the most realistic testnet simulation of the Filecoin mainnet.
## Quick Start Commands
### Download Latest Snapshot
```bash
# Fast download with aria2c (recommended)
aria2c -x5 https://forest-archive.chainsafe.dev/latest/calibnet/
# Alternative: wget method
wget https://forest-archive.chainsafe.dev/latest/calibnet/
```
### Connect to Calibration Network
```bash
# Lite node (fastest startup)
FULLNODE_API_INFO=wss://wss.calibration.node.glif.io/apigw/lotus lotus daemon --lite
# Full node with snapshot import
lotus daemon --import-snapshot <calibnet-snapshot-file>
# Connect to RPC endpoint
curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"Filecoin.ChainHead","params":[],"id":1}' https://api.calibration.node.glif.io/rpc/v1
```
### Get Test FIL
Quick access to faucets:
* **Chainsafe**: <https://faucet.calibnet.chainsafe-fil.io>
* **Zondax**: <https://beryx.zondax.ch/faucet/>
* **Forest**: <https://forest-explorer.chainsafe.dev/faucet/calibnet>
### Essential Network Info
* **Chain ID**: `314159` (for MetaMask/wallets)
* **RPC**: `https://api.calibration.node.glif.io/rpc/v1`
* **WebSocket**: `wss://wss.calibration.node.glif.io/apigw/lotus/rpc/v1`
* **Minimum Power**: `32 GiB`
## About Calibration
Prospective storage providers can experience more realistic sealing performance and hardware requirements using final proofs constructions and parameters. Storage clients can store and retrieve *real data* on the network. Clients can also participate in deal-making workflows and storage and retrieval functionality. The sector size on the Calibration testnet is the same as on the Filecoin mainnet; 32 GiB and 64 GiB sectors are supported. This testnet also includes the Filecoin EVM-runtime features found on the Filecoin mainnet.
Developers can reference pre-existing deals that are already available on the network. See the [`#fil-net-calibration-discuss` channel in the Filecoin Slack](https://filecoinproject.slack.com/archives/C01D42NNLMS) for support.
**Maintainer**: [Protocol Labs](https://protocol.ai/)
## Genesis <a href="#genesis" id="genesis"></a>
* CAR File: `QmbHZuVjgtxvgtcE5H3FpE1ywEyawYmZcbx4Eh47WZ7YF8`
* Reset Timestamp: `1667326380` (`2022-11-01T18:13:00Z`)
* Genesis Block CID: `bafy2bzacecyaggy24wol5ruvs6qm73gjibs2l2iyhcqmvi7r7a4ph7zx3yqd4`
* SHA-1 Digest: `f9004d1266e0b023a018eb2fe6bb403cb8204df4`
## Network parameters <a href="#network-parameters" id="network-parameters"></a>
* Supported Sector Sizes: `32 GiB` and `64 GiB`
* Consensus Miner Min Power: `32 GiB`
* Epoch Duration Seconds: `30`
* Expected Leaders per Epoch: `5`
* WindowPoSt Proving Period: `2880`
* WindowPoSt Challenge Window: `60`
* WindowPoSt Period Deadlines: `48`
* Pre-Commit Challenge Delay: `150`
## Bootstrap peers <a href="#bootstrap-peers" id="bootstrap-peers"></a>
Bootstrap peers for Calibration testnet can be found at:
`https://github.com/filecoin-project/lotus/blob/release/`**\[latest release]**`/build/bootstrap/calibnet.pi`
The latest Lotus release can be found at <https://github.com/filecoin-project/lotus/releases/latest/>
## Snapshots <a href="#snapshots" id="snapshots"></a>
* [Latest minimal snapshot](https://forest-archive.chainsafe.dev/latest/calibnet) (note, as of March 2024, this is a 3.5GB download)
## Active storage providers <a href="#active-storage-providers" id="active-storage-providers"></a>
The following storage providers are running on the Calibration testnet.
### [PiKNiK](https://github.com/benjaminh83/fvm-calib-deal-miners) <a href="#piknikhttpsgithubcombenjaminh83fvm-calib-deal-miners" id="piknikhttpsgithubcombenjaminh83fvm-calib-deal-miners"></a>
* **t017840**: Every deal accepted by this SP will be aggregated into 32 GiB sectors, which is the minimum size for calibration network. This miner has a preset sealing capacity of 2x 32 GiB sectors per day, defined as sectors in waitdeals will be flushed every 12 hours. [More information](https://github.com/benjaminh83/fvm-calib-deal-miners)
## Resources <a href="#resources" id="resources"></a>
* [Calibration Faucet - Chainsafe](https://faucet.calibnet.chainsafe-fil.io)
* [Calibration Faucet - Zondax](https://beryx.zondax.ch/faucet/)
* [Calibration Faucet - Forest Explorer](https://forest-explorer.chainsafe.dev/faucet/calibnet)
* [Calibration USDFC Faucet - Chainsafe](https://forest-explorer.chainsafe.dev/faucet/calibnet_usdfc)
* [DataCap allocation](https://faucet.calibnet.chainsafe-fil.io/datacap.html)
* [Slack Channel for Updates: #fil-network-announcements](https://filecoinproject.slack.com/archives/C01AC6999KQ)
* [Slack Channel for Questions: #fil-help](https://filecoinproject.slack.com/archives/CEGN061C5)
* [Latest lightweight snapshot](https://forest-archive.chainsafe.dev/latest/calibnet/) generated with [Forest](http://github.com/ChainSafe/forest) by [ChainSafe](https://chainsafe.io/)
* [Complete calibration net archival data](https://forest-archive.chainsafe.dev/list/) generated with [Forest](http://github.com/ChainSafe/forest) by [ChainSafe](https://chainsafe.io/)
[Was this page helpful?](https://airtable.com/apppq4inOe4gmSSlk/pagoZHC2i1iqgphgl/form?prefill_Page+URL=https://docs.filecoin.io/networks-and-tools/networks/calibration)
# Explorers
The following block explorers are available for the Calibration testnet, listed in alphabetical order.
## Beryx
<https://beryx.zondax.ch>
## FILFOX
<https://calibration.filfox.info>
## Filscan
<https://calibration.filscan.io/>
## Blockscout Open-Source FEVM Explorer
<https://filecoin-testnet.blockscout.com>
## Starboard
<https://fvm.starboard.ventures/>
[Was this page helpful?](https://airtable.com/apppq4inOe4gmSSlk/pagoZHC2i1iqgphgl/form?prefill_Page+URL=https://docs.filecoin.io/networks-and-tools/networks/calibration/explorers)
# RPCs
Public RPC endpoints are available for the Calibration testnet.
{% hint style="info" %}
[Chainlist](https://chainlist.org/?search=filecoin\&testnets=true) contains a dynamically updated list of available Filecoin RPCs. Select **Include Testnets** to view available test networks. [Find out more at chainlist.org's Filecoin listings](https://chainlist.org/?search=filecoin\&testnets=true).
{% endhint %}
These endpoints are limited to [read-only Filecoin JSON RPC API calls](/reference/json-rpc) and [`MPoolPush`](/reference/json-rpc/mpool) for sending messages that have already been signed.
## [Ankr](https://www.ankr.com/rpc/filecoin)
* HTTPS: `https://rpc.ankr.com/filecoin_testnet`
* [Ankr documentation](https://www.ankr.com/docs/rpc-service/chains/chains-list/#filecoin)
## [Glif](https://hosting.glif.io/)
Please note that publicly available hosted endpoints **only guarantee 2000 of the latest blocks.**
* HTTPS: `https://api.calibration.node.glif.io/rpc/v1`
* WebSocket: `wss://wss.calibration.node.glif.io/apigw/lotus/rpc/v1`
* Lotus lite-node command:
```
FULLNODE_API_INFO=wss://wss.calibration.node.glif.io/apigw/lotus lotus daemon --lite
```
* When using a lite-node, omit `/rpc/v1` from Glif’s WebSocket address.
* [Glif documentation](https://hosting.glif.io/)
[Was this page helpful?](https://airtable.com/apppq4inOe4gmSSlk/pagoZHC2i1iqgphgl/form?prefill_Page+URL=https://docs.filecoin.io/networks-and-tools/networks/calibration/rpcs)
# Local testnet
Local networks are a useful way to get started with Filecoin development. This guide covers how to start a local network using Lotus as the Filecoin node implementation.
## Setup
A Filecoin network has two node types: storage provider nodes and client nodes. In our local developer network (devnet), we’re going to create a single storage provider node to handle our requests, and we’ll also create a client node to pass information into our network. Both of these nodes run in the terminal. In total, we’ll have three terminal windows open at once.
## Prerequisites
The nodes we’re going to run have relatively lightweight hardware requirements. However, since we’re running multiple instances at once it’s recommended that your computer meets the following requirements:
1. At least 8 GiB of RAM
2. A quad-core CPU.
3. (Optional) Because parts of this tutorial require multiple terminal windows, install a terminal multiplexer like [Tmux](https://github.com/tmux/tmux).
## Steps
To build the nodes, you’ll need some specific software. Run the following command to install the software prerequisites:
{% tabs %}
{% tab title="MacOS" %}
1. Open a terminal window.
2. Check that you have [Homebrew](https://brew.sh/) installed.\\
```shell
brew --version
# Homebrew 3.6.18
# ...
```
\
If you do not see a version number. or receive an error message, install [Homebrew](https://brew.sh/).
3. Ensure you have [XCode](https://developer.apple.com/xcode/) installed.\\
```shell
xcode-select -p
# /Library/Developer/CommandLineTools
```
\
If you do not see the output above. or receive an error message, install [XCode](https://developer.apple.com/xcode/).
4. Install the following dependencies:\\
```shell
brew install go bzr jq pkg-config hwloc coreutils
```
5. Install Rust:\\
```shell
curl https://sh.rustup.rs -sSf | sh -s -- -y
# ...
# Rust is installed now. Great!
# ...
```
6. Source the `~/.cargo/env` config file:\\
```shell
source "$HOME/.cargo/env"
```
{% endtab %}
{% tab title="Ubuntu" %}
1. Install the following dependencies:\\
```shell
sudo apt update -y
sudo apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl clang build-essential hwloc libhwloc-dev wget -y
```
2. Install Go and add `/usr/local/go/bin` to your `$PATH` variable:\\
```shell
wget -c https://golang.org/dl/go1.18.8.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local
```
3. You may need to export `/usr/local/go/bin` to your `$PATH`. This process changes depending on which shell you’re using:
| Shell | Export to $PATH example |
| ----- | ----------------------------------------------------------------------------- |
| Bash | `echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc && source ~/.bashrc` |
| ZSH | `echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.zshrc && source ~/.zshrc` |
4. Install Rust and source the `~/.cargo/env` config file:
```shell
curl https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env"
```
5. Done! You can move on to the [Pre-build](#pre-build) section.
{% endtab %}
{% endtabs %}
### Pre-build
Before we can build the Lotus binaries, there’s some setup we need to do. We’ll create the executable binaries within a new `~/lotus-devnet`.
{% tabs %}
{% tab title="MacOS Intel" %}
1. Clone the repository:\\
```shell
git clone https://github.com/filecoin-project/lotus.git ~/lotus-devnet
cd lotus
```
2. Checkout to the latest stable branch:\\
```shell
git checkout releases
```
3. Done! You can move on to the [Build](#build) section.
{% endtab %}
{% tab title="MacOS ARM" %}
1. Clone the repository into a new `~/lotus-devnet` directory:\\
```shell
git clone https://github.com/filecoin-project/lotus.git ~/lotus-devnet
cd ~/lotus-devnet
```
2. Checkout to the latest stable branch:\\
```shell
git checkout releases
```
3. Create the necessary environment variables to allow Lotus to run on M1 architecture:\\
```shell
export LIBRARY_PATH=/opt/homebrew/lib
export FFI_BUILD_FROM_SOURCE=1
export PATH="$(brew --prefix coreutils)/libexec/gnubin:/usr/local/bin:$PATH"
```
4. Done! You can move on to the [Build](#build) section.
{% endtab %}
{% tab title="Ubuntu" %}
1. Clone the repository into a new `~/lotus-devnet` directory:\\
```shell
git clone https://github.com/filecoin-project/lotus.git ~/lotus-devnet
cd ~/lotus-devnet
```
2. Checkout to the latest stable branch:\\
```shell
git checkout releases
```
3. If your processor was released later than an AMD Zen or Intel Ice Lake CPU, enable the use of SHA extensions by adding these two environment variables:\\
```shell
export RUSTFLAGS="-C target-cpu=native -g"
export FFI_BUILD_FROM_SOURCE=1
```
\
If in doubt, ignore this command and move on to [the next section](#build).
4. Done! You can move on to the [Build](#build) section.
{% endtab %}
{% endtabs %}
### Build
1. Create the `2k` binary for Lotus:\\
```shell
make 2k
```
\
This will output something like:\\
```plaintext
git submodule update --init --recursive
Submodule 'extern/filecoin-ffi' (https://github.com/filecoin-project/filecoin-ffi.git) registered for path 'extern/filecoin-ffi'
Submodule 'extern/serialization-vectors' (https://github.com/filecoin-project/serialization-vectors.git) registered for path 'extern/serialization-vectors'
...
```
\
This process will take about 5 minutes to complete.
2. Fetch the proving parameters for a 2048-byte sector size:\\
```shell
./lotus fetch-params 2048
```
\
This will output something like:\\
```plaintext
2023-01-31T10:44:43.058-0400 INFO paramfetch go-paramfetch@v0.0.4/paramfetch.go:244 Fetching /var/tmp/filecoin-proof-parameters/v28-proof-of-spacetime-fallback-merkletree-poseidon_hasher-8-8-0-559e581f022bb4e4ec6e719e563bf0e026ad6de42e56c18714a2c692b1b88d7e.vk from https://proofs.filecoin.io/ipfs
2023-01-31T10:44:43.058-0400 INFO paramfetch go-paramfetch@v0.0.4/paramfetch.go:262 GET https://proofs.filecoin.io/ipfs/QmZCvxKcKP97vDAk8Nxs9R1fWtqpjQrAhhfXPoCi1nkDoF 13.32 KiB / 13.32 KiB [===========================================================================================================================================] 100.00% 155.63 KiB/s 0
...
```
\
This process downloads a few files totalling to around 2 GiB in size. Depending on your internet speed, this process can take a few minutes to complete.
3. Pre-seal two sectors for the genesis block:\\
```shell
./lotus-seed pre-seal --sector-size 2KiB --num-sectors 2
```
\
This will output something like:\\
```plaintext
sector-id: ({1000 1} 5), piece info: {2048 baga6ea4seaqf7ovs6euxa4ktencg2gza7lua32l2ugqu76uqgvnjocek6gtoufi}
2023-01-31T10:49:46.562-0400 WARN preseal seed/seed.go:175 PreCommitOutput: ({1000 1} 5) bagboea4b5abcamxkzmzcciabqqk3xuuvj3k23nfuojboopyw3kg2mblhj6mzipii baga6ea4seaqf7ovs6euxa4ktencg2gza7lua32l2ugqu76uqgvnjocek6gtoufi
2023-01-31T10:49:46.562-0400 WARN preseal seed/seed.go:100 PeerID not specified, generating dummy
...
```
4. Create the genesis block:\\
```shell
./lotus-seed genesis new localnet.json
```
5. Create a pre-miner and an address with some funds:\\
```shell
./lotus-seed genesis add-miner localnet.json ~/.genesis-sectors/pre-seal-t01000.json
```
\
This will output something like:\\
```plaintext
2023-01-31T10:52:03.855-0400 INFO lotus-seed lotus-seed/genesis.go:129 Adding miner t01000 to genesis template
2023-01-31T10:52:03.855-0400 INFO lotus-seed lotus-seed/genesis.go:146 Giving t3q4o7gkwe7p7xokhgws4rwntj7yqfhpj5pm6cqc7dycl7cwk4uvgh2odwdvge5re7ne5gcc6xluifss5uu5cq some initial balance
```
Our Lotus installation is now ready to start running the nodes!
### Start the nodes
As mentioned earlier, we will be running two types of a node: a storage provider node and a client node. In the Lotus project, a storage provider node is referred to as a *miner*. Since we’re going to run multiple nodes, you’ll need to have at least three terminal windows open. If your terminal emulator supports tabs, consider using them to help organize your setup.
#### Client
1. Open a new terminal window.
2. Move into the `~/lotus-devnet` directory:\\
```shell
cd ~/lotus-devnet
```
3. Export the devnet-specific variables again to make sure we don’t interfere with any existing Lotus installations on your system:\\
```shell
export LOTUS_PATH=~/.lotus-local-net
export LOTUS_MINER_PATH=~/.lotus-miner-local-net
export LOTUS_SKIP_GENESIS_CHECK=_yes_
export CGO_CFLAGS_ALLOW="-D__BLST_PORTABLE__"
export CGO_CFLAGS="-D__BLST_PORTABLE__"
```
\
Because environmental variables are reset when you open a new terminal window, these variables must be exported every time we start a new terminal.
4. Start the client node using `lotus daemon`:\\
```shell
./lotus daemon --lotus-make-genesis=devgen.car --genesis-template=localnet.json --bootstrap=false
```
\
This will output something like:\\
```plaintext
2023-01-31T10:57:41.022-0400 INFO main lotus/daemon.go:218 lotus repo: /home/johnny/.lotus
2023-01-31T10:57:41.022-0400 INFO repo repo/fsrepo.go:265 Initializing repo at '/home/johnny/.lotus'
2023-01-31T10:57:41.022-0400 INFO paramfetch go-paramfetch@v0.0.4/paramfetch.go:209 Parameter file /var/tmp/filecoin-proof-parameters/v28-stacked-proof-of-replication-merkletree-poseidon_hasher-8-0-0-sha256_hasher-ecd683648512ab1765faa2a5f14bab48f676e633467f0aa8aad4b55dcb0652bb.vk is ok
```
\
This command will continue to run. Leave this window open.
#### Storage provider
1. Open a new terminal window.
2. Move into the `~/lotus-devnet` directory:\\
```shell
cd ~/lotus-devnet
```
3. Export the devnet-specific variables again to make sure we don’t interfere with any existing Lotus installations on your system:\\
```shell
export LOTUS_PATH=~/.lotus-local-net
export LOTUS_MINER_PATH=~/.lotus-miner-local-net
export LOTUS_SKIP_GENESIS_CHECK=_yes_
export CGO_CFLAGS_ALLOW="-D__BLST_PORTABLE__"
export CGO_CFLAGS="-D__BLST_PORTABLE__"
```
4. Import the genesis miner key:\\
```shell
./lotus wallet import --as-default ~/.genesis-sectors/pre-seal-t01000.key
```
\
This will output something like:\\
```plaintext
imported key t3q4o7gkwe7p7xokhgws4rwntj7yqfhpj5pm6cqc7dycl7cwk4uvgh2odwdvge5re7ne5gcc6xluifss5uu5cq successfully!
```
5. Initialize the genesis miner:\\
```shell
./lotus-miner init --genesis-miner --actor=t01000 --sector-size=2KiB --pre-sealed-sectors=~/.genesis-sectors --pre-sealed-metadata=~/.genesis-sectors/pre-seal-t01000.json --nosync
```
\
This will output something like:\\
```plaintext
2023-01-31T11:04:46.148-0400 INFO main lotus-miner/init.go:130 Initializing lotus miner
2023-01-31T11:04:46.148-0400 INFO main lotus-miner/init.go:157 Checking proof parameters
...
2023-01-31T11:04:46.148-0400 INFO main lotus-miner/init.go:283 Miner successfully created, you can now start it with 'lotus-miner run'
```
\
This process take a few minutes to complete.
6. Start the storage provider node with `lotus-miner run`:\\
```shell
./lotus-miner run --nosync
```
\
This terminal window will continue to run. You must run all further commands from a new terminal window.
We now have a client node and a storage provider node successfully talking to each other! Next up, we can send requests to our client node to ensure everything is set up correctly.
### Get some FIL
Now that we’ve got our local devnet running let’s create a new wallet and send some funds from our miner account to that new wallet.
#### Create a wal프로젝트로 돌아가기