Author Topic: Run Your Own P2P Decentralised Exchange Node  (Read 4767 times)

0 Members and 1 Guest are viewing this topic.

Offline hcf27

  • Full Member
  • ***
  • Posts: 116
    • View Profile
  • BitShares: hcf27

iHashFury

  • Guest
Will this work on a Raspberry Pi 2?

Some of the build tools may be different but it should work.

Check here for more Pi info https://bitsharestalk.org/index.php/topic,17297.msg220235.html#msg220235

Offline hcf27

  • Full Member
  • ***
  • Posts: 116
    • View Profile
  • BitShares: hcf27
Will this work on a Raspberry Pi 2?

iHashFury

  • Guest
Is this the same with "installing a full node of BTS" ?

Yes it is.
Great for running on your own network (LAN) and connecting the light client (wallet) to trade.

Offline btswildpig

  • Hero Member
  • *****
  • Posts: 1424
    • View Profile
Is this the same with "installing a full node of BTS" ?
这个是私人账号,表达的一切言论均不代表任何团队和任何人。This is my personal account , anything I said with this account will be my opinion alone and has nothing to do with any group.

Offline bytemaster

For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

iHashFury

  • Guest
This type of error ( 'libraries/fc'):
Code: [Select]
git submodule update --init --recursive
fatal: reference is not a tree: 31adee49d91275cc63aa3a47b3a9e3c826baccca
Unable to checkout '31adee49d91275cc63aa3a47b3a9e3c826baccca' in submodule path 'libraries/fc'
can be bypassed by the following code:
Code: [Select]
cd libraries/fc
git checkout master
git pull
git submodule update --init --recursive
cd ../..
cmake -D CMAKE_BUILD_TYPE=Release .
make witness_node cli_wallet

iHashFury

  • Guest
I have forked docs.bitshares.eu and will have a go at creating a pull request

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
@iHashFury
nice tutorials ..

if you put it together in Markdown or ReStructureText, I could put it into the docs right away! Or even better you could create a pull request .. if you like!

iHashFury

  • Guest
To update the P2P Decentralised Exchange Node (hard fork)

Ctrl+d to close cli_wallet (if your running it)
Ctrl+c to close the witness_node

Then run the following code to update:
Code: [Select]
# update the P2P node software (fork update)
cd bitshares-2
git checkout bitshares
git describe --tags
git submodule update --init --recursive
make clean
cmake -D CMAKE_BUILD_TYPE=Release .
make witness_node cli_wallet

for easy blockchain startup:
Code: [Select]
#mkdir ~/bin
strip ./programs/witness_node/witness_node
strip ./programs/cli_wallet/cli_wallet
cp ./programs/witness_node/witness_node ~/bin
cp ./programs/cli_wallet/cli_wallet ~/bin

then restart  the P2P Decentralised Exchange Node:
Code: [Select]
#in git folder
~/bitshares-2/programs/witness_node/witness_node --rpc-endpoint "127.0.0.1:8090" # will allow only your computer's wallet to connect to the blockchain

# or if you copied witness_node to your bin folder for easy blockchain startup
# cd to your bts folder
cd ~/bts
witness_node --rpc-endpoint "127.0.0.1:8090"

Your witness_node should replay the blockchain for the hard fork

iHashFury

  • Guest
You can now run your own decentralised exchange node and trade: ( also posted on https://bitcointalk.org/index.php?topic=1366292.msg13901158#msg13901158 )

BTC LTC DOGE DASH PPC ETH NXT MUSE NSR NBT EMC EGH GOLD SILVER USD EUR
CNY GBP ...

all using a Light Wallet with built-in deposit/Withdraw and FIAT gateway.

A few steps will have you up and running. The system uses a Light
Wallet which can connect to trusted secure servers or your own local
blockchain (run from the command line).

P2P Decentralised Exchange Node setup for Ubuntu x64 15.10 - ( copy and paste to your terminal )
You can run on your own computer, a local server, VPS or VirtualBox.

Code: [Select]
###
### 1. Download the software to build for Ubuntu Linux x64 using git:
###

# update your system and install ntp
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install ntp
sudo dpkg-reconfigure tzdata # to set your time zone

# Install the build tools
sudo apt-get install gcc g++ cmake make libbz2-dev libdb++-dev libdb-dev
libssl-dev openssl libreadline-dev autoconf libtool git libncurses-dev
build-essential kernel-package libncurses-dev doxygen libboost-all-dev
autotools-dev automake

# you may have to run this on a fresh install and reboot
#sudo dpkg --configure -a
#sudo reboot

# download the P2P node software
git clone https://github.com/bitshares/bitshares-2.git

# build the P2P node software
cd bitshares-2
git checkout bitshares
git describe --tags
git submodule update --init --recursive
cmake -D CMAKE_BUILD_TYPE=Release .
make witness_node cli_wallet





Code: [Select]
###
### 2. Run your new P2P Decentralised Exchange Node
###

~/bitshares-2/programs/witness_node/witness_node --rpc-endpoint "127.0.0.1:8090" # will allow only your computer's wallet to connect to the blockchain
# ~/bitshares-2/programs/witness_node/witness_node --rpc-endpoint "0.0.0.0:8090" # will allow anyone to connect their wallet to your copy of the blockchain

# you can also strip and copy witness_node to your bin folder for easy blockchain startup

mkdir ~/bin
strip ./programs/witness_node/witness_node
strip ./programs/cli_wallet/cli_wallet
cp ./programs/witness_node/witness_node ~/bin
cp ./programs/cli_wallet/cli_wallet ~/bin



Check the block explorer for the latest block http://cryptofresh.com/

I have used VirtualBox to run the blockchain on Ubuntu
Remember to install openssh and forward ports in VirtualBox host
Network settings then ssh in
# ssh user@127.0.0.1 -p 3022 # you can use putty on windoze



###
### 3. The fun part - download the light wallet software for your OS
###

# Download the light wallet here
https://bitshares.org/download/?r=by24seven

# Tutorial
https://bitshares.org/register/

Set your user name and password (if you found the post useful, you could add by24seven as your Referrer and get a few Free PERKS too)

# Connect to your local chain after it has synced
In the light wallet under settings * API CONNECTION click on wss://bitshares.openledger.info/ws and change it to your own blockchain node from part 2

# linux
ws://127.0.0.1:8090
or
ws://localhost:8090

# VirtualBox linux
ws://localhost:3022

# or server ip
ws://localserverip:8090

Then click CONFIRM

* if you are using a VPS it is recommended you use ssh to connect to the API eg: ssh -L 6080:localhost:8090 user@vpsserverip
then connect to the API with ws://localhost:6080 in the light wallet



Welcome to your own Decentralised Exchange



More help can be found here:
http://docs.bitshares.eu/
https://bitsharestalk.org/index.php/board,45.0.html

Enjoy!

# if you are lazy you can use these Decentralised Exchanges in your chromium browser! (no need to install software and a few Free PERKS too)

https://bitshares.org/wallet/?r=by24seven
https://bitshares.openledger.info/?r=by24seven
https://bitshares.dacplay.org/?r=by24seven

Remember to back-up your wallet, as only you have the private keys to access your funds to trade on all these Decentralised Exchanges.

« Last Edit: February 16, 2016, 09:47:27 am by iHashFury »