Bios Boot Tutorial
The bios-boot-tutorial.py script simulates the bios boot sequence.
Prerequisites
- Python 3.x
- CMake
- git
- curl
- libcurl4-gnutls-dev
Steps
-
Install the latest Leap binaries by following the steps provided in the README.
-
Install the latest CDT binaries by following the steps provided in the README.
-
Compile the latest EOS System Contracts. Replaces
release/*latest*with the latest release branch.
$ cd ~
$ git clone https://github.com/eosnetworkfoundation/eos-system-contracts
$ cd ./eos-system-contracts/
$ git checkout release/*latest*
$ mkdir build
$ cd ./build
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make -j $(nproc)
$ cd ./contracts/
$ pwd
-
Make note of the path where the contracts were compiled The last command in the previous step printed the contracts directory. Make note of it; we will reference it from now on as the environment variable
CONTRACTS_DIRECTORY. -
Launch the
bios-boot-tutorial.pyscript:
$ pip install numpy
$ cd ~
$ git clone -b release/*latest* https://github.com/AntelopeIO/leap
$ cd ./leap/tutorials/bios-boot-tutorial/
$ python3 bios-boot-tutorial.py --cleos=cleos --nodeos=nodeos --keosd=keosd --contracts-dir="${CONTRACTS_DIRECTORY}" -w -a