create account

Setup local blockchain node to speedup piston by xeroc

View this thread on: hive.blogpeakd.comecency.com
· @xeroc · (edited)
$109.26
Setup local blockchain node to speedup piston
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`:

   * [The Complete Guide to Setup Steem Development Environment in Ubuntu](/steem/@woung717/the-complete-guide-to-setup-steem-development-environment-in-ubuntu)
   * [Easy install Steemd in Ubuntu Server 16.04 LTS](/steemhelp/@proctologic/easy-install-steemd-in-ubuntu)
   * [Steem Mining - Comprehensive Guide](/steem/@geoffrey/steem-mining-comprehensive-guide)
   * [Easy and portable Steem install script: speeded up with Ninja-build](/steem/@adoal/easy-and-portable-steem-install-script-speeded-up-with-ninja-build)


2. **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](http://piston.readthedocs.io/en/develop/public-api.html#steemd-node)

3. **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.

4. **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`)

5. **Have fun**
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 144 others
properties (23)
authorxeroc
permlinksetup-local-blockchain-node-to-speedup-piston
categorypiston
json_metadata"{"tags": []}"
created2016-09-02 08:11:15
last_update2016-09-02 08:12:18
depth0
children11
last_payout2016-10-03 10:18:42
cashout_time1969-12-31 23:59:59
total_payout_value104.530 HBD
curator_payout_value4.725 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,471
author_reputation118,819,064,085,695
root_title"Setup local blockchain node to speedup piston"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,095,824
net_rshares31,061,705,281,748
author_curate_reward""
vote details (208)
@alima ·
@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.
👍  , , , , , , ,
properties (23)
authoralima
permlinkre-xeroc-setup-local-blockchain-node-to-speedup-piston-20160904t125119779z
categorypiston
json_metadata{"tags":["piston"],"users":["xeroc"]}
created2016-09-04 12:51:21
last_update2016-09-04 12:51:21
depth1
children1
last_payout2016-10-03 10:18:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length255
author_reputation19,663,687,949
root_title"Setup local blockchain node to speedup piston"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,122,043
net_rshares1,563,319,034
author_curate_reward""
vote details (8)
@faddat · (edited)
e-mail me.

faddat@gmail.com

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

![Screenshotfrom2016-09-1019-54-421ab4b.png](https://www.steemimg.com/images/2016/09/10/Screenshotfrom2016-09-1019-54-421ab4b.png)
properties (22)
authorfaddat
permlinkre-alima-re-xeroc-setup-local-blockchain-node-to-speedup-piston-20160910t124950079z
categorypiston
json_metadata{"tags":["piston"],"image":["https://www.steemimg.com/images/2016/09/10/Screenshotfrom2016-09-1019-54-421ab4b.png"]}
created2016-09-10 12:49:51
last_update2016-09-10 13:14:03
depth2
children0
last_payout2016-10-03 10:18:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length221
author_reputation36,581,868,473,026
root_title"Setup local blockchain node to speedup piston"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,195,429
net_rshares0
@anns ·
Ha Ha
Funny Cartoon!!
properties (22)
authoranns
permlinkre-xeroc-setup-local-blockchain-node-to-speedup-piston-20160902t085013568z
categorypiston
json_metadata{"tags":["piston"]}
created2016-09-02 08:50:09
last_update2016-09-02 08:50:09
depth1
children0
last_payout2016-10-03 10:18:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length21
author_reputation1,459,974,862,812
root_title"Setup local blockchain node to speedup piston"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,096,106
net_rshares0
@doitvoluntarily ·
$0.03
way above my head! lol
http://img.pandawhale.com/post-25893-ralph-wiggum-pencil-face-gif-hXmY.gif
👍  ,
properties (23)
authordoitvoluntarily
permlinkre-xeroc-setup-local-blockchain-node-to-speedup-piston-20160902t081239036z
categorypiston
json_metadata{"tags":["piston"],"image":["http://img.pandawhale.com/post-25893-ralph-wiggum-pencil-face-gif-hXmY.gif"]}
created2016-09-02 08:12:39
last_update2016-09-02 08:12:39
depth1
children1
last_payout2016-10-03 10:18:42
cashout_time1969-12-31 23:59:59
total_payout_value0.020 HBD
curator_payout_value0.007 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length97
author_reputation1,413,017,490,894,511
root_title"Setup local blockchain node to speedup piston"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,095,833
net_rshares69,335,855,060
author_curate_reward""
vote details (2)
@quinneaker ·
A PERFECT use of animation !
Well done!
👍  ,
properties (23)
authorquinneaker
permlinkre-doitvoluntarily-re-xeroc-setup-local-blockchain-node-to-speedup-piston-20160902t082708466z
categorypiston
json_metadata{"tags":["piston"]}
created2016-09-02 08:27:09
last_update2016-09-02 08:27:09
depth2
children0
last_payout2016-10-03 10:18:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length39
author_reputation326,681,856,591,722
root_title"Setup local blockchain node to speedup piston"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,095,951
net_rshares104,330,847
author_curate_reward""
vote details (2)
@kyriacos ·
nice one @xeroc
properties (22)
authorkyriacos
permlinkre-xeroc-setup-local-blockchain-node-to-speedup-piston-20160902t110524729z
categorypiston
json_metadata{"tags":["piston"],"users":["xeroc"]}
created2016-09-02 11:05:24
last_update2016-09-02 11:05:24
depth1
children0
last_payout2016-10-03 10:18:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length15
author_reputation151,079,958,921,004
root_title"Setup local blockchain node to speedup piston"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,097,035
net_rshares0
@roelandp ·
$0.82
awesome thx... I will switch my piston to 
<code> piston set node ws://localhost:5090</code>
Will this also automatically set this for python-steem usage from there onwards, yes right?
👍  
properties (23)
authorroelandp
permlinkre-xeroc-setup-local-blockchain-node-to-speedup-piston-20160902t170409661z
categorypiston
json_metadata{"tags":["piston"]}
created2016-09-02 17:04:09
last_update2016-09-02 17:04:09
depth1
children1
last_payout2016-10-03 10:18:42
cashout_time1969-12-31 23:59:59
total_payout_value0.818 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length184
author_reputation662,943,317,989,456
root_title"Setup local blockchain node to speedup piston"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,100,757
net_rshares1,472,181,284,879
author_curate_reward""
vote details (1)
@xeroc ·
$0.82
> 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
👍  
properties (23)
authorxeroc
permlinkre-roelandp-re-xeroc-setup-local-blockchain-node-to-speedup-piston-20160903t082948375z
categorypiston
json_metadata{"tags":["piston"]}
created2016-09-03 08:29:48
last_update2016-09-03 08:29:48
depth2
children0
last_payout2016-10-03 10:18:42
cashout_time1969-12-31 23:59:59
total_payout_value0.818 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length261
author_reputation118,819,064,085,695
root_title"Setup local blockchain node to speedup piston"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,108,963
net_rshares1,472,181,432,902
author_curate_reward""
vote details (1)
@sigmajin · (edited)
$0.04
@xeroc I think those links are broken... missing "steemit.com"
https://steemit.com/steem/@woung717/the-complete-guide-to-setup-steem-development-environment-in-ubuntu
https://steemit.com/steemhelp/@proctologic/easy-install-steemd-in-ubuntu
https://steemit.com/steem/@geoffrey/steem-mining-comprehensive-guide
https://steemit.com/steem/@adoal/easy-and-portable-steem-install-script-speeded-up-with-ninja-build
👍  
properties (23)
authorsigmajin
permlinkre-xeroc-setup-local-blockchain-node-to-speedup-piston-20160902t103729542z
categorypiston
json_metadata{"tags":["piston"],"users":["xeroc"],"links":["https://steemit.com/steem/@woung717/the-complete-guide-to-setup-steem-development-environment-in-ubuntu"]}
created2016-09-02 10:37:24
last_update2016-09-02 10:41:09
depth1
children1
last_payout2016-10-03 10:18:42
cashout_time1969-12-31 23:59:59
total_payout_value0.036 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length408
author_reputation35,847,511,233,614
root_title"Setup local blockchain node to speedup piston"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,096,828
net_rshares89,356,361,332
author_curate_reward""
vote details (1)
@btcbtcbtc20155 ·
Still have npt get the mining to work for windows pc. Thanks for references.
properties (22)
authorbtcbtcbtc20155
permlinkre-sigmajin-re-xeroc-setup-local-blockchain-node-to-speedup-piston-20160902t112029207z
categorypiston
json_metadata{"tags":["piston"]}
created2016-09-02 11:20:36
last_update2016-09-02 11:20:36
depth2
children0
last_payout2016-10-03 10:18:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length76
author_reputation3,556,221,968,131
root_title"Setup local blockchain node to speedup piston"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,097,154
net_rshares0
@webdeals ·
amazing mate :) Tkx
properties (22)
authorwebdeals
permlinkre-xeroc-setup-local-blockchain-node-to-speedup-piston-20160902t132738442z
categorypiston
json_metadata{"tags":["piston"]}
created2016-09-02 13:27:42
last_update2016-09-02 13:27:42
depth1
children0
last_payout2016-10-03 10:18:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length19
author_reputation410,373,804,154,165
root_title"Setup local blockchain node to speedup piston"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,098,281
net_rshares0