<aside> <img src="https://prod-files-secure.s3.us-west-2.amazonaws.com/6f767d5e-c4ca-4e4e-a39d-7baa69ca6f6c/dd20988e-6977-4da9-88c5-b14d8aa704e0/280.png" alt="https://prod-files-secure.s3.us-west-2.amazonaws.com/6f767d5e-c4ca-4e4e-a39d-7baa69ca6f6c/dd20988e-6977-4da9-88c5-b14d8aa704e0/280.png" width="40px" /> Xfiscan
https://test.xfiscan.com/validators/mxvaloper132qnlwgyetqd83nrws88c04a5uj93nwc88e0tt
</aside>
Prerequisites
Install Node.js: Ensure you have Node.js installed on your system. You can download it from the official Node.js website. It's recommended to use a version manager like nvm
to manage Node.js versions easily.
# Install nvm (Node Version Manager)
curl -o- <https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh> | bash
source ~/.nvm/nvm.sh
# Install the latest LTS version of Node.js
nvm install --lts
Install Git: Ensure Git is installed on your system. You can install it using a package manager.
# For Debian/Ubuntu-based systems
sudo apt-get install git
# For macOS
brew install git
Clone the XFIScan repository from GitHub.
git clone <https://github.com/xfiscan/xfiscan.git>
cd xfiscan
Install the required dependencies using npm.
npm install
Configuration File: The main configuration is typically located in the ~/.crossfid/config/app.toml
file. You need to configure the API and gRPC settings if required.
[api]
enable = true
address = "tcp://0.0.0.0:1317"
[grpc]
enable = true
address = "0.0.0.0:9090"
State Sync Configuration: Enable state sync by modifying ~/.crossfid/config/config.toml
.
[statesync]
enable = true
trust_height = <RECENT_BLOCK_HEIGHT>
trust_hash = "<RECENT_BLOCK_HASH>"
rpc_servers = "<http://rpc1.example.com:26657>,<http://rpc2.example.com:26657>"
Replace <RECENT_BLOCK_HEIGHT>
and <RECENT_BLOCK_HASH>
with appropriate values from a trusted block explorer.
Start the Node: Use the following command to start the node.
crossfid start --x-crisis-skip-assert-invariants
This command will start your node and begin syncing with the network.
Logs: Monitor the logs to ensure your node is syncing properly.
tail -f ~/.crossfid/logs/crossfid.log
Updating the Node: Regularly update your node to the latest version by pulling the latest changes from the repository and reinstalling dependencies.
git pull
npm install
By following these steps, you should be able to successfully set up and run a node for the XFIScan project. For more detailed instructions and troubleshooting, refer to the official documentation and Node.js documentation.