Build, run & test using source code
Last updated
Last updated
This guide will walk you through:
building the blockchain node from source code,
running a local development instance, which spawns a new single-node testnet,
interacting with development instance,
running automated tests.
For Ubuntu & Debian derivatives:
Next install Rust itself. Run and follow prompts:
And install WASM target:
See for detailed guide and other platforms.
Development of Liberland Blockchain Node happens in two branches:
main
, which contains latest stable release
develop
, which contains latest, not yet released as stable changes
To fetch source code, run the following (you may replace main
with develop
if desired):
To build the node, run:
Note that this will likely take a long time. If everything goes correctly, you'll see:
And will be able to run the node using built executable (output might differ slightly):
To run a development instance of Liberland node, execute:
Liberland Blockchain node is comprehensively covered with automated unit tests. To run them, execute:
As these typically take a long time, you can also choose to run tests only for specific pallets. Here's example for the legislation pallet:
Make sure you have at least 4 GB of RAM available. If you dont, add whats missing to swap. Note that this will fix some out of memory build errors, but will significantly prolong the build.
Development instance is a single-node testnet, in which standard development accounts (Alice, Bob, etc.) are endowed with assets. To interact with it, visit .