If you'd like to run the node with verbose logs, you may add the following arguments during initial setup. Adjust the target for the desired logging level (debug | error | info| trace | warn):
-ldkg=debug \ -ldkg_metadata=debug \ -lruntime::offchain=debug \ -ldkg_proposal_handler=debug \ -ldkg_proposals=debug
If you don't see an "Imported" message (without the [Relaychain] tag), check the P2P port configuration. Ensure the P2P port is open to incoming traffic.
Both chains must be in sync at all times. Look for "Imported" or "Idle" messages and ensure you have connected peers.
If you notice log messages like:
DATE [Relaychain] Bootnode with peer id ID is on a different chain (our genesis: 0x3f5... theirs: 0x45j...)
You may be running an older version and need to upgrade.
If you haven't installed Homebrew: https://brew.sh/ (opens in a new tab)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Make sure Homebrew is up-to-date, install openssl
brew update brew install openssl
After installation, ensure you've added /opt/homebrew/bin to your PATH:
echo 'export PATH=/opt/homebrew/bin:$PATH' >> ~/.bash_profile
To build dkg-substrate in --release mode using the aarch64-apple-darwin Rust toolchain, set the required environment variables:
echo 'export RUSTFLAGS="-L /opt/homebrew/lib"' >> ~/.bash_profile
- GMP: Ensure the gmp dependency is correctly installed.
brew install gmp
- If you're still facing an issue with gmp, adjust your path to the gmp lib:
cargo clean export LIBRARY_PATH=$LIBRARY_PATH:$(brew --prefix)/lib:$(brew --prefix)/opt/gmp/lib
Add the above export to your bash_profile as well.
- Ensure the Protobuf dependency is correctly installed:
brew install protobuf