Skip to content

Instantly share code, notes, and snippets.

@meyer9
Created May 13, 2019 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meyer9/0e298beec265bb7456d703d57a4a148c to your computer and use it in GitHub Desktop.
Save meyer9/0e298beec265bb7456d703d57a4a148c to your computer and use it in GitHub Desktop.
How to start the Phore Synapse blockchain

How to start the Phore Synapse blockchain

This guide details how to start the Phore Synapse blockchain and, for participants registered for the beta test, how to start up a validator to proposer/attest/validate blocks.

Step 1: Get an Ubuntu VPS and log in

Follow this guide if you don't know how: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04

You need to get to this stage:

server setup

Step 2: Download Synapse

Run:

curl -o testnet.pubs https://raw.githubusercontent.com/phoreproject/synapse/master/testnet-v1.pubs
wget https://github.com/phoreproject/synapse/releases/download/v0.1.1/{beacon,validator}-linux-amd64
chmod +x {beacon,validator}-linux-amd64

Step 3: Start the beacon chain

Run:

screen -S beacon-chain ./beacon-linux-amd64 -genesistime 15579000 -connect "/ip4/134.209.58.178/tcp/11781/ipfs/12D3KooWEFr3b5CxczXUrs2M2rY8zy1A87H54iWGBdma1BqpAD14"

Press CTRL-A and then press d to disconnect from screen. You can reconnect with screen -r beacon-chain

Step 4: Start the validator

Only run this step if you were assigned a testnet validator range.

screen -S validators ./validator-linux-amd64 -rootkey YOURROOTKEY -validators YOURVALIDATORRANGE

YOURVALIDATORRANGE should be in the format: start-end (e.x. 100-200) YOURROOTKEY should be the key you inputted to the keygen program earlier

Press CTRL-A and then press d to disconnect from screen. You can reconnect with screen -r beacon-chain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment