2 Star 0 Fork 0

jianchao.teng / testnet9-blockchain

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
BUILD_TIMELORD.md 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
Michael Mann 提交于 2021-05-26 14:33 . update permissions (#6061)

Building timelords

The Linux and MacOS chiavdf binary wheels currently exclude an executable required to run a Timelord. If you want to run a Timelord on Linux or MacOS, you must install the wheel from source (which may require some additional development packages) while in the virtual environment.

. ./activate

chmod +x ./install-timelord.sh
sh install-timelord.sh

If the compile fails, it's likely due to a missing dependency. The script install-timelord.sh attempts to install required build dependencies for Linux and MacOS before invoking pip to build from the source python distribution of chiavdf.

The install-timelord.sh install script leverages two environmental variables that the chiavdf wheels can use to specify how to build. The service that the Timelord uses to run the VDF and prove the Proof of Time is vdf_client and vdf_bench is a utility to get a sense of a given CPU's iterations per second.

  • To build vdf_client set the environment variable BUILD_VDF_CLIENT to "Y". export BUILD_VDF_CLIENT=Y.
  • Similarly, to build vdf_bench set the environment variable BUILD_VDF_BENCH to "Y". export BUILD_VDF_BENCH=Y.

Building and running Timelords in Windows x86-64 is not yet supported.

Python
1
https://gitee.com/jianchaoteng/testnet9-blockchain.git
git@gitee.com:jianchaoteng/testnet9-blockchain.git
jianchaoteng
testnet9-blockchain
testnet9-blockchain
ext9.dev

搜索帮助