Build Citrea from Source
You may want to do some changes, compile, and run the Citrea on your local.
Step 1: Install Rust
If you don't have it, install it from here.
Step 2: Clone the source code
Let's clone the repository and checkout the latest tag:
git clone https://github.com/chainwayxyz/citrea
cd citrea
git fetch --tags
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)Step 3: Build Citrea
Let's install necessary developer tools first:
make install-dev-toolsThen compile Citrea by running the following:
SKIP_GUEST_BUILD=1 cargo build --releaseOptionally, if you wish to verify ZK-Proofs, then you'll need to compile our ZK VM binaries inside Docker. To do so, follow instructions to install Docker here. Then, you should remove
SKIP_GUEST_BUILD=1and addREPR_GUEST_BUILD=1beforecargo buildcommand:REPR_GUEST_BUILD=1 cargo build --release
Step 4: Run Citrea
Look through the rollup_config.toml and apply changes as you wish, if you modified any Bitcoin RPC configs, change corresponding values under [da]. Then, you can run the full node by the following:
If everything is correct, you should see some logs that looks like this:
You can check the status with the following command (you may need to arrange the URL at the end based on your setup):
A sample response (fields may vary based on the sync status):
Last updated
Was this helpful?