Compile and run Bitshares V2
הורדת TAR מ https://github.com/bitshares/bitshares-2/releases קימפול וכו
תוכן עניינים |
From TAR
https://github.com/cryptonomex/graphene/wiki/build-ubuntu
sudo apt-get install gcc-4.9 g++-4.9 cmake make libbz2-dev libdb++-dev libdb-dev libssl-dev openssl libreadline-dev autoconf libtool git
E: Unable to locate package g++-4.9 E: Couldn't find any package by regex 'g++-4.9'
sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install g++-4.9
Build Boost 1.57.0
BOOST_ROOT=$HOME/opt/boost_1_57_0 sudo apt-get update sudo apt-get install autotools-dev build-essential g++ libbz2-dev libicu-dev python-dev wget -c 'http://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.tar.bz2/download' -O boost_1_57_0.tar.bz2 [ $( sha256sum boost_1_57_0.tar.bz2 | cut -d ' ' -f 1 ) == "910c8c022a33ccec7f088bd65d4f14b466588dda94ba2124e78b8c57db264967" ] || ( echo 'Corrupt download' ; exit 1 )
tar xjf boost_1_57_0.tar.bz2 cd boost_1_57_0/ ./bootstrap.sh "--prefix=$BOOST_ROOT" ./b2 install
skipping installing Qt for light_client
Qt 5.5 is a dependency if you wish to build light_client
Build Graphene
1st time
base on http://docs.bitshares.eu/bitshares/installation/index.html
mkdir /home2/bitshares-2
cd /home2/bitshares-2
git clone https://github.com/bitshares/bitshares-2
cd bitshares-2
git submodule update --init --recursive
BOOST_ROOT=$HOME/opt/boost_1_57_0
cmake -DBOOST_ROOT="$BOOST_ROOT" -DCMAKE_BUILD_TYPE=Release .
make
./programs/witness_node/witness_node
old
mkdir /home/kit/graphene cd /home/kit/graphene git clone https://github.com/cryptonomex/graphene.git cd graphene git submodule update --init --recursive BOOST_ROOT=$HOME/opt/boost_1_57_0 cmake -DBOOST_ROOT="$BOOST_ROOT" -DCMAKE_BUILD_TYPE=Debug . make
or
from the 2nd time
need to follow: http://docs.bitshares.eu/bitshares/installation/Upgrades.html
Running
witness_node
cd /home/kit/graphene/graphene ./programs/witness_node/witness_node
command-line wallet
stop witness_node
vim witness_node_data_dir/config.ini
rpc-endpoint = 127.0.0.1:8090
Terminal 1:
cd /home/kit/graphene/graphene ./programs/witness_node/witness_node
Terminal 2:
cd /home/kit/graphene/graphene ./programs/cli_wallet/cli_wallet
To set your iniital password to 'password' use:
set_password password unlock password
To import your initial balance:
>>> import_balance nathan [5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3] true
If you send private keys over this connection, `rpc-endpoint` should be bound to localhost for security.
A list of CLI wallet commands is available https://github.com/cryptonomex/graphene/blob/master/libraries/wallet/include/graphene/wallet/wallet.hpp ...