Skip to content

Instantly share code, notes, and snippets.

@askmish
askmish / gist:76e348e34d93fc22926d7d9379a0fd08
Last active January 19, 2022 14:04
How to setup docker and docker-compose for sawtooth
#update apt
sudo apt-get update
#install dependencies of docker
sudo apt-get install apt-transport-https
sudo apt-get install ca-certificates
sudo apt-get install curl
sudo apt-get install software-properties-common
#add docker gpg key to system
@askmish
askmish / gist:a23bde6f2e59e4256be8afe965a9166b
Created March 27, 2018 13:24
How to setup two validators in a network - dev_mode - sawtooth components running as a service
In a multi validator setup, one node should be genesis and the rest of the nodes would be peering from genesis node or each other.
Here, we'll setup a two validator network, i.e. two nodes - one a genesis validator and the other a peer validator
We'll use the default dev_mode consensus and the sawtooth components will run as a service.
Step-by-step setting up the genesis validator:(A fresh ubuntu 16.04 LTS x64 machine)
====================================================================================
# add the sawtooth repo in apt
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8AA7AF1F1091A5FD