Setup local blockchain node to speedup piston

in #piston8 years ago (edited)

This tutorial describes how to setup a local steemd node to use with
piston. This allows to speed up your development since your run your own
API node.

  1. Installation of steemd
    There are plenty of resources on Steem on how to install steemd:

  1. Configuration
    Piston requires a couple APIs to be enabled in the configuration. The config.ini for the piston.rocks machine currently looks like this:

    rpc-endpoint = 127.0.0.1:5090
    
    seed-node=52.38.66.234:2001
    seed-node=52.37.169.52:2001
    seed-node=52.26.78.244:2001
    seed-node=192.99.4.226:2001
    seed-node=46.252.27.1:1337
    seed-node=81.89.101.133:2001
    seed-node=52.4.250.181:39705
    seed-node=85.214.65.220:2001
    seed-node=104.199.157.70:2001
    seed-node=104.236.82.250:2001
    seed-node=104.168.154.160:40696
    seed-node=162.213.199.171:34191
    seed-node=seed.steemed.net:2001
    seed-node=steem.clawmap.com:2001
    seed-node=seed.steemwitness.com:2001
    seed-node=steem-seed1.abit-more.com:2001
    
    enable-plugin = account_history
    enable-plugin = follow
    enable-plugin = market_history
    enable-plugin = private_message
    enable-plugin = tags
    
    public-api = database_api login_api market_history_api tag_api follow_api
    

    However, since piston evolves over time, we would ask to follow the official config.ini

  2. Syncing the network
    With the configuration above, you can start the steemd process and wait for it to fully sync. The seed nodes provided will help your link up with the P2P network quickly.

  3. Configure piston
    Piston can easily be configured to use any API node not just this.piston.rocks. You can change the API node by running

    piston set node ws://localhost:5090
    

    assuming the steemd process is running on the same machine and exposes port 5090 (line 1 in the config.ini)

  4. Have fun

Sort:  

awesome thx... I will switch my piston to
piston set node ws://localhost:5090
Will this also automatically set this for python-steem usage from there onwards, yes right?

Will this also automatically set this for python-steem usage from there onwards, yes right?

Nop. the python-steem package always required and will always require that you define a node manually.
Only piston has a "default" API node hard coded for convenience

way above my head! lol

A PERFECT use of animation !
Well done!

@xeroc, i want collect some statistic from network. But stream_comments show only new posts and comments.
In which direction to look, to collect more comprehensive statistics?
Like.. upvotes, transactions,awards for posts or comments and etc... ?
Thanks.

e-mail me.

[email protected]

I will make servers available to you where you can do that.

Screenshotfrom2016-09-1019-54-421ab4b.png

Ha Ha
Funny Cartoon!!

amazing mate :) Tkx

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 58786.64
ETH 2309.42
USDT 1.00
SBD 2.49