BitShares Forum

Main => Technical Support => Topic started by: lightclient on January 17, 2016, 10:05:30 am

Title: How to set up a full node for Bitshares-2.0?
Post by: lightclient on January 17, 2016, 10:05:30 am
Is there any complete guide for setting up a full node for Bitshares-2.0 and use it as a normal wallet?
I'd like to import my 0.9.3c-exported file, too.
I am using Windows 7.

The light client (*1) don't work and the browser-based methods (*2) don't neither.
They are stuck if being requested some operations (viewing pages, doing "LOOKUP BALANCES").
The screen sometimes says "NO BLOCKCHAIN CONNECTION".
Are we under some DoS attack right now?
I'm confused because others are not complaining it, thanks.

*1:
BitShares-light_2.0.160106.exe

*2:
https://bitshares.openledger.info/
https://bitshares.org/wallet
Title: Re: How to set up a full node for Bitshares-2.0?
Post by: abit on January 17, 2016, 10:28:42 am
Download the cli-tools.exe here https://github.com/bitshares/bitshares-2/releases, install.

Run the witness_node.exe:
* Open a command line window,
Code: [Select]
cd "C:\Program Files\BitShares 2\bin"
witness_node.exe --rpc-endpoint 127.0.0.1:8090
Wait for sync.

Connect your light wallet to your witness_node by adding "ws://127.0.0.1:8090/ws" to Settings -> "API connection" and select it.
Title: Re: How to set up a full node for Bitshares-2.0?
Post by: lightclient on January 17, 2016, 10:34:18 am
Thanks for quick reply! I'll try it!
Title: Re: How to set up a full node for Bitshares-2.0?
Post by: lightclient on January 17, 2016, 11:39:51 am
For other users, I think the command was this:
witness_node.exe --rpc-endpoint 127.0.0.1:8090
Title: Re: How to set up a full node for Bitshares-2.0?
Post by: xeroc on January 17, 2016, 12:07:14 pm
http://docs.bitshares.eu/bitshares/tutorials/full-node-usage.html
Title: Re: How to set up a full node for Bitshares-2.0?
Post by: lightclient on January 17, 2016, 12:52:56 pm
ws://localhost:8090 and wss://localhost:8090, which is true? wss://, I suppose.
More important problem is, how to safely quit the full node (witness_node.exe) without corrupting the blockchain data?
Does Ctrl+C work? Is there any "suitable timing" for terminating the full node program?
Title: Re: How to set up a full node for Bitshares-2.0?
Post by: sittingduck on January 17, 2016, 02:09:39 pm
Ctrl-c works. 
Title: Re: How to set up a full node for Bitshares-2.0?
Post by: lightclient on January 17, 2016, 03:21:12 pm
Thanks!
Title: Re: How to set up a full node for Bitshares-2.0?
Post by: lightclient on January 17, 2016, 04:07:28 pm
Just to report my experience of the full node syncing process...
Tbh, I'm surprised. I was thinking the sync process will be an over-night job.
I didn't measure the time with a stopwatch, but it was less than 2 hours.
After the syncing, the load on the system is so much lighter than Bitshares-1.0 .
It was wonderful and clean, comfortable as a money platform! Thank you!
Title: Re: How to set up a full node for Bitshares-2.0?
Post by: xeroc on January 17, 2016, 04:51:37 pm
Welcome to the era of real-time blockchains. Do us a favor and do not tell anyone until we are ready to hit the masses big time and it is too late to get into it :)