Skip to content

Instantly share code, notes, and snippets.

@blockpane
Last active December 14, 2020 05:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save blockpane/6223e76971bd3e15666793e016eb938d to your computer and use it in GitHub Desktop.
Save blockpane/6223e76971bd3e15666793e016eb938d to your computer and use it in GitHub Desktop.
FIO Devnet

FIO devnet

  1. I recommend creating a seperate user account for this, only used for running a dev net.
  2. Must be on Ubuntu 18.04
  3. User will require sudo access for part of the install.

Get code

In the user's home directory clone the following four repositories, suggest using the Develop branch for each:

git clone https://github.com/fioprotocol/fio.devtools.git
git clone https://github.com/fioprotocol/fio.git
git clone https://github.com/fioprotocol/fio.cdt.git
git clone https://github.com/fioprotocol/fio.contracts.git

Build core software

This can take a while, more cores and RAM help.

cd fio/scripts
./fio_build.sh
# the first time this will build the CDT, which can take a very long time....
./fio_install.sh

Build contracts

cd ~/fio.devtools
./start.sh 2.0
# from the prompts select 1 (Local Startup), then 2 (Update/Build Contracts)

Launch the devnet

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

@blockpane
Copy link
Author

Be sure to checkout the develop branch on fio.devtools, fio, and fio.contracts repositories, might not work otherwise. Every once in a while, have to build contracts twice if it doesn't launch, pretty rare but if it happens be sure to use the Nuke All option in fio.devtools first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment