./electronero-blockchain-import --input-file blockchain-872025.raw --batch-size 20000 --database lmdb#fastest --guard-against-pwnage 0
This method is the fastest and most reliable way to import the blockchain snapshot. Make sure to run this command from the same directory as blockchain-872025.raw.
tar -xzvf bitelectronero.tar.gz cp -r bitelectronero ~/.bitelectronero
This method replaces your existing blockchain data with the included lmdb folder.
⚠️ Warning: Always stop electronerod before replacing blockchain files.
git clone --recursive https://github.com/electronero-project/electronero.git cd electronero # If you forgot --recursive, run this: git submodule init && git submodule update
Make sure to clone with --recursive to get all required submodules. If you already cloned it normally, use the second command to initialize submodules manually.
mkdir build && cd build ## Refer to below dependencies and installation instructions!
This guide below will teach you to compile electronerod and related tools. You can then run the daemon, wallet CLI, and electronero-blockchain-import from build/src.
View the full source code and contribute at:
github.com/electronero-project/electronero
This guide was written for Linux Ubuntu distros, we'll post a windows build guide later. For more support join us on Telegram. Before compiling Electronero, install required system packages:
sudo apt update && sudo apt install -y \ build-essential cmake pkg-config libssl-dev libzmq3-dev \ libunbound-dev libsodium-dev libunwind-dev liblzma-dev \ libreadline-dev libldns-dev libexpat1-dev libpgm-dev \ qttools5-dev-tools libhidapi-dev libusb-1.0-0-dev \ libprotobuf-dev protobuf-compiler libudev-dev \ ccache doxygen graphviz
Electronero requires Boost version 1.88.0+, which must be compiled from source. Follow the instructions below to build and install it with the correct configuration:
# Download and extract Boost 1.88.0 wget https://archives.boost.io/release/1.88.0/source/boost_1_88_0.tar.bz2 tar --bzip2 -xf boost_1_88_0.tar.bz2 cd boost_1_88_0 # Configure with only required libraries ./bootstrap.sh --with-libraries=system,filesystem,thread,chrono,date_time,regex,test,serialization,program_options,locale # Build and install Boost (static, multithreaded, 64-bit) ./b2 install \ variant=release \ link=static \ threading=multi \ runtime-link=static \ address-model=64 \ --prefix=/usr/local/boost_1_88_0
📌 After installing, cd back to ~/electronero/build or wherever your electronero build directory path is and pass this to CMake so it can find Boost properly:
cmake .. \ -DBOOST_ROOT=/usr/local/boost_1_88_0 \ -DBoost_NO_SYSTEM_PATHS=ON \ -DBoost_USE_STATIC_LIBS=ON \ -DCMAKE_PREFIX_PATH=/usr/local/boost_1_88_0 \ -DBoost_USE_STATIC_RUNTIME=ONThen simply
make -j$(nproc)
This ensures Electronero uses your custom Boost 1.88 install instead of the outdated system version.
🪟 Building on Windows? 👉 View the Windows Build Guide