A majority of xDai validators are now running the Nethermind client. The latest version includes support for MEV via flashbots and increased default xDAI TxPool size from 1024 transactions to 2048.
Generally the faster IO operations the better. For this reason Digital Ocean and UpCloud are so far the best cloud providers we have tested when running Nethermind nodes.
Ubuntu 20.4 / 8 GB / 4 CPUs 160 GB SSD Disk 5 TB transfer
If your sync is very slow (extended beyond two days) then very likely your setup cannot catch up with the chain progress.
sudo apt-get update && sudo apt-get install libsnappy-dev libc6-dev libc6 unzip -y- Linux dependencies
unzip NETHERMIND_URL -d nethermind- unzip to nethermind folder
nethermindfolder you will see
Nethermind.Launcher is an interactive prompt that allows you to choose the network which then calls Nethermind.Runner with the appropriate config file. This is the quickest way to get up and running. Nethermind.Runner is the actual client binary similar to the geth binary and supports both cli options or a JSON configuration file.
Nethermind.Runner --config <path_to_config>
Nethermind.Runnerbinary with my custom config file.
pruning is the process of removing some of the intermediary state nodes - it saves some disk space but makes most of the historical state queries fail.
cp configs/CONFIG_FILE configs/YOUR_CONFIGNAME
cp configs/xdai_pruned_mev.cfg configs/xdai_dfdao.cfg
nano configs/xdai_dfdao.cfgand change the following fields to allow access to your node from the internet: 1. Your JSON RPC should look like this:
if you have a good connection and a reasonable machine then setting --Network.MaxActiveSyncPeers to 256 (see NetworkConfig secion in configuration) should give much better fast sync times (we use 256 peers to get 5 hours syncs)
./Nethermind.Runner --config <path-to-config-file>and logout, your process will stop.
nohup ./Nethermind.Runner --config <path-to-config-file> &
nohup ./Nethermind.Runner --config <path-to-config-file> --HealthChecks.Enabled true &
nohup.out(name can be configured with
nohup ... > output.txt) in the
netherminddirectory, with logs that you can inspect.
kill 13059You can also check out the Digital Ocean Droplet Activity Dashboard, which should show a large increase in activity while syncing occurs.
http://DIGITAL_OCEAN_IP:8545and you should see the following:
nohup.out(or whatever you name your output file) and
cat filenamecommand and once the file got too big
tail -n 10 filenameto view the newest entries.