BitShares 2.0 环境设置

BitShares 2.0 环境设置

工作环境:Ubuntu

第一步:准备环境与下载 BitShares 2.0  Core 源代码:

bitshares-core 见证节点和命令行钱包,C++代码,基于石墨烯区块链。

sudo apt-get update
sudo apt-get install autoconf cmake git libboost-all-dev libssl-dev g++ libcurl4-openssl-dev
git clone https://github.com/bitshares/bitshares-core.git

cd bitshares-core/


git remote set-url origin https://github.com/bitshares/bitshares-core.git
git checkout master
git remote set-head origin --auto
git pull
git submodule sync --recursive
git submodule update --init --recursive

git clone https://github.com/bitshares/bitshares-core.git
cd bitshares-core

git checkout 2.0.180202-fix-windows-build

#自己检查最近的Tag
#git checkout <LATEST_RELEASE_TAG>

git submodule update --init --recursive

cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .

> -- Configuring done
> -- Generating done

make
 

最终完成 make 。

启动 witness_node

./programs/witness_node/witness_node

 ./programs/witness_node/witness_node
create_new_config_fi | Writing new config file at /witness_node_data_dir/config.ini
plugin_initialize    | witness plugin:  plugin_initialize() begin
plugin_initialize    | Public Key: .....

plugin_initialize    | witness plugin:  plugin_initialize() end
open                 | Wiping object_database due to missing or wrong version
wipe                 | Wiping object database...
wipe                 | Done wiping object databse.

open                 | Opening object database from /witness_node_data_dir/blockchain ...
open                 | Done opening object database.
operator()           | Initializing database...
debug_dump           | total_balances[asset_id_type()|.value: .... core_asset_data.current_supply.value: ... 

reset_p2p_node       | Adding seed node .....
reset_p2p_node       | Adding seed node .....
reset_p2p_node       | Adding seed node .....

reset_p2p_node       | Configured p2p node to listen on 0.0.0.0:33993

plugin_startup       | witness plugin:  plugin_startup() begin

plugin_startup       | No witnesses configured! Please add witness IDs and private keys to configuration.

plugin_startup       | witness plugin:  plugin_startup() end

main                 | Started BitShares node on a chain with 0 blocks.
main                 | Chain ID is .....


然后就是漫长的数据同步。

相关阅读:

https://github.com/bitshares/bitshares-core

https://bitsharestalk.org/index.php

https://blog.xiaofuxing.name/2017/04/07/bitshares_dev_introduction.html



©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页