create account

Building and running Steemd v0.19.0 natively in Windows 10 by liberosist

View this thread on: hive.blogpeakd.comecency.com
· @liberosist ·
$328.20
Building and running Steemd v0.19.0 natively in Windows 10
Windows 10 has a built-in Windows Subsystem for Linux (WSL). Currently, the subsystem is in beta and Ubuntu based, but in the Fall Creators Update, this will be expanded to SUSE and Fedora. Installing it will be as simple as a single click from the Store. A month ago, I [experimented with cli_wallet](https://steemit.com/steemhelp/@liberosist/using-cliwallet-and-steemd-natively-in-windows-10) and discovered it truly works. I used pre-compiled binaries, and only had a chance to test cli_wallet. 

Now, with the release candidate of the much anticipated v0.19.0 out, I'm going to attempt running a steemd note natively on Windows 10 **from scratch**. We'll stay in Windows 10 throughout the complete process. Check out my previous post for instructions to set up WSL and Bash on Ubuntu on Windows. The minimum requirement is Windows 10 1607, but I recommend 1703. 

**To be clear, I don't expect or recommend anyone to run a full time node on Windows**. You'll be best off on Ubuntu 16.04. However, if you use Windows but constantly have to run Steemd in Docker or VM - this is for you. This could indeed be very useful for Windows users and developers who may want to run a script, run cli_wallet, etc. 

### Building 

I'm going to follow the guide exactly as described [on GitHub](https://github.com/steemit/steem/blob/master/doc/building.md) as I would on Ubuntu. I shall install on my Windows C: which is a fast SSD. To do this, you need to simply cd into /mnt/c. 

Installed the pre-requisites and cloned Steem without a hitch. 

![Steem-2.PNG](https://steemitimages.com/DQmcxBqRBu5CgnXweqb3iCu3PQ5JCQ8MNuu7G2bZTkQv5sX/Steem-2.PNG)

Building steemd...

![Screenshot (7).png](https://steemitimages.com/DQmbxhxQzYv5TEKerB6HYZ8rmsjr2qzR8BPpieyWbK3mvQV/Screenshot%20(7).png)

Both steemd and cli_wallet were built without any issues. It took 16:44 (mm:ss) to build steemd on my AMD Ryzen 7 machine. On the same PC inside a VM, it took approximately 19:30. WSL has a clear performance advantage over using a VM here. The RAM usage was also at least 2-3 GB lower.

### Configuring steemd

First run on steemd, all good, generates the witness_node_data_dir as expected. 

http://i.imgur.com/jizIkas.png

You can edit the config.ini file in Notepad! Or Vim in Bash, if that's your speed. Personally, I use Notepad++. I'll keep the config as default, add seed nodes, but remove account_history. Curiously, the shared-file-size default shows up as 32 GB. That's clearly not enough to run a node with the default config! Unlike on Linux, the whole 32GB was allocated the moment I ran steemd - something to keep an eye out for. (No, I haven't tried using /dev/shm)

![Steem-5.PNG](https://steemitimages.com/DQmQ3uG9bueTNXneAcKKk9F1oxMScQKMhPYicW7R9Hjv63b/Steem-5.PNG)

### Running steemd

Before running steemd, I downloaded the latest blockchain provided by @gtg at https://gtg.steem.house/get/blockchain/

Copy pasted the block_log file into the blockchain folder using File Explorer, and now it's showdown time. 

![Steem-6.PNG](https://steemitimages.com/DQmZnfKPPdnFnYrA3keHnnHzcUs2GfY2n2i4L3efAsuYpEK/Steem-6.PNG)

Syncing just fine! I neglected to time the sync as I was away for a bit, but the first 10 minutes did feel faster than in a VM. Using a Samsung 960 EVO, the SSD was barely taxed, hovering under the 10% disk usage mark. Instead, the bottleneck was single thread, with steemd pegging just 1 of the 16 threads. You'll notice it's not quite 100%, not sure what that's about. Maybe some learnings from EOS' multi-threaded approach could help speed things up by an order of magnitude here. 

![Steem-7.PNG](https://steemitimages.com/DQmYXdY5GwpBMSNofJN8yV9tT5VGhg86M82ns2VQ2xDRLqi/Steem-7.PNG)

### Steem node up and running

I forgot to add the rpc-endpoint to config.ini. I also had to set a custom p2p-endpoint, otherwise it was throwing up " Exception binding outgoing connection to desired local endpoint", which are evidently REUSEPORT errors. With those set, steemd is ready to go!

![Steem-8.PNG](https://steemitimages.com/DQmQNRTuASn9q822EbGWWVqp3afWSFPKC2N9jPozXroQNCq/Steem-8.PNG)

Here's proof, folks - the latest version Steem node up and running natively on Windows 10! Needless to say, cli_wallet works just fine too off the local node. Also working are a couple of Python scripts I ran. The only minor hitch is when you close steemd for a while, it takes some time to get synced up again. Certainly more than on a VM. Not sure what that's about - I'll look into that in the future. 

Ultimately, there seems to be little difference between running Windows 10 and Ubuntu. I'm sure a native Ubuntu install probably offers better performance, but WSL is definitely faster than running an Ubuntu VM in Windows. 

Do note that WSL is still in Beta. It'll leave Beta in the Fall Creators Update releasing in September, at which point installing Ubuntu, Fedora or SUSE would be the matter of a single click in the Windows Store. If you run into issues, feel free to ask here - https://github.com/Microsoft/BashOnWindows/issues
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 152 others
properties (23)
authorliberosist
permlinkbuilding-and-running-steemd-v0-19-0-natively-in-windows-10
categorysteem
json_metadata{"tags":["steem","steemdev","steem-dev"],"users":["gtg"],"image":["https://steemitimages.com/DQmcxBqRBu5CgnXweqb3iCu3PQ5JCQ8MNuu7G2bZTkQv5sX/Steem-2.PNG","https://steemitimages.com/DQmbxhxQzYv5TEKerB6HYZ8rmsjr2qzR8BPpieyWbK3mvQV/Screenshot%20(7).png","http://i.imgur.com/jizIkas.png","https://steemitimages.com/DQmQ3uG9bueTNXneAcKKk9F1oxMScQKMhPYicW7R9Hjv63b/Steem-5.PNG","https://steemitimages.com/DQmZnfKPPdnFnYrA3keHnnHzcUs2GfY2n2i4L3efAsuYpEK/Steem-6.PNG","https://steemitimages.com/DQmYXdY5GwpBMSNofJN8yV9tT5VGhg86M82ns2VQ2xDRLqi/Steem-7.PNG","https://steemitimages.com/DQmQNRTuASn9q822EbGWWVqp3afWSFPKC2N9jPozXroQNCq/Steem-8.PNG"],"links":["https://steemit.com/steemhelp/@liberosist/using-cliwallet-and-steemd-natively-in-windows-10","https://github.com/steemit/steem/blob/master/doc/building.md","https://gtg.steem.house/get/blockchain/","https://github.com/Microsoft/BashOnWindows/issues"],"app":"steemit/0.1","format":"markdown"}
created2017-05-22 03:00:12
last_update2017-05-22 03:00:12
depth0
children14
last_payout2017-05-29 03:00:12
cashout_time1969-12-31 23:59:59
total_payout_value290.889 HBD
curator_payout_value37.306 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length5,045
author_reputation177,167,275,265,899
root_title"Building and running Steemd v0.19.0 natively in Windows 10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,650,091
net_rshares28,773,944,115,961
author_curate_reward""
vote details (216)
@lautenglye ·
great...
properties (22)
authorlautenglye
permlinkre-liberosist-building-and-running-steemd-v0-19-0-natively-in-windows-10-20170522t071724693z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2017-05-22 07:18:33
last_update2017-05-22 07:18:33
depth1
children0
last_payout2017-05-29 07:18:33
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_length8
author_reputation1,745,262,632,168
root_title"Building and running Steemd v0.19.0 natively in Windows 10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,654,743
net_rshares0
@leanvix ·
Good post!
properties (22)
authorleanvix
permlinkre-liberosist-building-and-running-steemd-v0-19-0-natively-in-windows-10-20170522t234907190z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2017-05-22 23:49:06
last_update2017-05-22 23:49:06
depth1
children0
last_payout2017-05-29 23:49:06
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_length10
author_reputation3,250,155,962,004
root_title"Building and running Steemd v0.19.0 natively in Windows 10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,681,362
net_rshares0
@mining1 ·
Where can I find a custom p2p-endpoint? What is a custom p2p endpoint exactly?
properties (22)
authormining1
permlinkre-liberosist-building-and-running-steemd-v0-19-0-natively-in-windows-10-20170602t042305511z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2017-06-02 04:23:03
last_update2017-06-02 04:23:03
depth1
children1
last_payout2017-06-09 04:23:03
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_length78
author_reputation645,428,314
root_title"Building and running Steemd v0.19.0 natively in Windows 10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id4,056,275
net_rshares0
@liberosist ·
That is for seed nodes, so other people can access your node. You can leave that blank in the config file unless you are interested in running a seed node.
properties (22)
authorliberosist
permlinkre-mining1-re-liberosist-building-and-running-steemd-v0-19-0-natively-in-windows-10-20170602t044521875z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2017-06-02 04:45:27
last_update2017-06-02 04:45:27
depth2
children0
last_payout2017-06-09 04:45:27
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_length155
author_reputation177,167,275,265,899
root_title"Building and running Steemd v0.19.0 natively in Windows 10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id4,056,724
net_rshares0
@mining1 ·
How did you install boost1.58 ? Default commands install boost1.54 for me.
properties (22)
authormining1
permlinkre-liberosist-building-and-running-steemd-v0-19-0-natively-in-windows-10-20170624t213434843z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2017-06-24 21:34:36
last_update2017-06-24 21:34:36
depth1
children0
last_payout2017-07-01 21:34:36
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_length74
author_reputation645,428,314
root_title"Building and running Steemd v0.19.0 natively in Windows 10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id5,962,695
net_rshares0
@moisesmcardona ·
How much RAM is it using? I also have an AMD Ryzen 7 machine but only 16GB of RAM. I plan on upgrading it to 32GB soon.
properties (22)
authormoisesmcardona
permlinkre-liberosist-building-and-running-steemd-v0-19-0-natively-in-windows-10-20170629t022927569z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2017-06-29 02:29:21
last_update2017-06-29 02:29:21
depth1
children4
last_payout2017-07-06 02:29:21
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_length119
author_reputation30,544,308,668,193
root_title"Building and running Steemd v0.19.0 natively in Windows 10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id6,563,580
net_rshares0
@liberosist ·
I was using 32 GB RAM. 16 should be fine if you have a fast SSD.
properties (22)
authorliberosist
permlinkre-moisesmcardona-re-liberosist-building-and-running-steemd-v0-19-0-natively-in-windows-10-20170629t033203537z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2017-06-29 03:32:06
last_update2017-06-29 03:32:06
depth2
children3
last_payout2017-07-06 03:32:06
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_length64
author_reputation177,167,275,265,899
root_title"Building and running Steemd v0.19.0 natively in Windows 10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id6,569,159
net_rshares0
@moisesmcardona · (edited)
Thanks. I'm using 32GB as well. I did all of the steps but I'm stuck at "Started witness node on a chain with 13xxxx blocks"

Is this normal or am I doing something wrong? I can see steemd is trying to open connections to other nodes when I take a look in the Resources Monitor, and it strangely seems to download a few blocks only altough it doesn't tell when it downloads them. I have opened the port in the router as well.

Thanks for your help.
properties (22)
authormoisesmcardona
permlinkre-liberosist-re-moisesmcardona-re-liberosist-building-and-running-steemd-v0-19-0-natively-in-windows-10-20170709t202058823z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2017-07-09 20:20:42
last_update2017-07-09 20:20:51
depth3
children2
last_payout2017-07-16 20:20: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_length448
author_reputation30,544,308,668,193
root_title"Building and running Steemd v0.19.0 natively in Windows 10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id7,908,315
net_rshares0
@newschannel428 ·
cool and thank you for the info
👍  
properties (23)
authornewschannel428
permlinkre-liberosist-building-and-running-steemd-v0-19-0-natively-in-windows-10-20170523t043859117z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2017-05-23 04:38:57
last_update2017-05-23 04:38:57
depth1
children0
last_payout2017-05-30 04:38:57
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_length31
author_reputation2,174,828,363,373
root_title"Building and running Steemd v0.19.0 natively in Windows 10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,687,893
net_rshares911,585,557
author_curate_reward""
vote details (1)
@sassal ·
Saving for when I get home - thanks for this :)
properties (22)
authorsassal
permlinkre-liberosist-building-and-running-steemd-v0-19-0-natively-in-windows-10-20170522t035258254z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2017-05-22 03:53:00
last_update2017-05-22 03:53:00
depth1
children0
last_payout2017-05-29 03:53:00
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_length47
author_reputation1,883,257,757,548
root_title"Building and running Steemd v0.19.0 natively in Windows 10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,651,136
net_rshares0
@wnh518518 ·
Did you send a STEEMIT wallet?
👍  
properties (23)
authorwnh518518
permlinkre-liberosist-building-and-running-steemd-v0-19-0-natively-in-windows-10-20170522t071240990z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2017-05-22 07:12:39
last_update2017-05-22 07:12:39
depth1
children1
last_payout2017-05-29 07:12:39
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_length30
author_reputation8,313,238,323,856
root_title"Building and running Steemd v0.19.0 natively in Windows 10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,654,625
net_rshares1,394,137,547
author_curate_reward""
vote details (1)
@liberosist ·
Not sure what you mean?
properties (22)
authorliberosist
permlinkre-wnh518518-re-liberosist-building-and-running-steemd-v0-19-0-natively-in-windows-10-20170522t074227150z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2017-05-22 07:42:30
last_update2017-05-22 07:42:30
depth2
children0
last_payout2017-05-29 07:42:30
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_length23
author_reputation177,167,275,265,899
root_title"Building and running Steemd v0.19.0 natively in Windows 10"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,655,188
net_rshares0