Run Steemit testnet locally for Secondary development_01

in #steem-development7 years ago (edited)

Note: my running environtment is Ubuntu 16.04

Get source and configure build environment

  • Get steem source code
 git clone https://github.com/steemit/steem.git
 cd steem
 git checkout stable
 git submodule update --init --recursive

  • Install the building requirements
sudo apt-get install -y \
    autoconf \
    automake \
    cmake \
    g++ \
    git \
    libssl-dev \
    libtool \
    make \
    pkg-config \
    python3 \
    python3-jinja2

sudo apt-get install -y \
    libboost-chrono-dev \
    libboost-context-dev \
    libboost-coroutine-dev \
    libboost-date-time-dev \
    libboost-filesystem-dev \
    libboost-iostreams-dev \
    libboost-locale-dev \
    libboost-program-options-dev \
    libboost-serialization-dev \
    libboost-signals-dev \
    libboost-system-dev \
    libboost-test-dev \
    libboost-thread-dev

sudo apt-get install -y \
    doxygen \
    libncurses5-dev \
    libreadline-dev \
    perl

Config the build options

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_STEEM_TESTNET=ON .. -G "Unix Makefiles"

Build

make -j 2 steemd
make -j 2 cli_wallet

Generate you steed configure file

cd Programs/steemd
./steemd -d testnet

Edit config.ini in the testnet folder

  • p2p_endpoint = 0.0.0.0:3333
  • rpc_endpoint = 127.0.0.1:8090
  • witness_private = "your initminer's private key"
  • enable_stale_production = true

Restart your local steemd

 ./steemd -d testnet

Use cli_wallet to connect to your local steemd

./cli_wallet 127.0.0.1:8090

Now you can send command to your local steemit from cli_wallet.
Just trying.

Sort:  

It feels bad. No one response.
I am tired with sharing.

Congratulations @lispre! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.19
TRX 0.17
JST 0.031
BTC 87962.02
ETH 3341.45
USDT 1.00
SBD 2.89