- I recommend creating a seperate user account for this, only used for running a dev net.
- Must be on Ubuntu 18.04
- User will require sudo access for part of the install.
In the user's home directory clone the following four repositories, suggest using the Develop branch for each:
git clone https://github.com/tvl83/fio.devtools.git
git clone https://github.com/tvl83/fio.git
git clone https://github.com/tvl83/fio.cdt.git
git clone https://github.com/tvl83/fio.contracts.git
This can take a while, more cores and RAM help.
cd fio
git submodule update --init --recursive
cd scripts
./fio_build.sh # on my 10 core 10GB ram server it took 1h16m
./fio_install.sh # Will require sudo if clang isnt installed (but the build script ran fine....)
cd ~/fio.devtools
./start.sh 2.0
# from the prompts select 1 (Local Startup), then 2 (Update/Build Contracts)
This will launch 3 nodes, load contracts, setup a bunch of accounts, and register 3 producers:
./start.sh 2.0
# select 1 (Local Startup), then 1 (Local Blockchain)
see fio.devtools/scripts/launch/02_import_keys.sh
for keys
The easiest way to restart is to nuke the chain
./start.sh 2.0
# select 1, then select 3 for nuke all, then y to confirm
./start.sh 2.0
# select 1 then 1 again to start the chain from scratch.