Skip to content

Instantly share code, notes, and snippets.

@herpiko
Last active April 23, 2018 18:54
Show Gist options
  • Save herpiko/f6ec35c41420a1d23def2b3e7d276cf5 to your computer and use it in GitHub Desktop.
Save herpiko/f6ec35c41420a1d23def2b3e7d276cf5 to your computer and use it in GitHub Desktop.
Hyperledger Sawtooth

Genesis

$ sawtooth keygen
$ sawset genesis
$ sudo -u sawtooth sawadm genesis config-genesis.batch

Things that need to be run beside the validator

  • Transaction processor
    • Sawtooth settings, sudo -u sawtooth settings-tp -v
    • Custom TP that defines our app
  • Rest API, sudo -u sawtooth sawtooth-rest-api -v --connect 127.0.0.1:4004

Standalone validator

  • sudo -u sawtooth sawtooth-validator -vv

Node1

  • sudo -u sawtooth sawtooth-validator -vv --endpoint tcp://192.168.88.7:8800 --bind component:tcp://192.168.88.7:4004 --bind network:tcp://192.168.88.7:8800 --peers tcp://192.168.88.9:8800
  • TP, settings-tp -v --connect tcp://192.168.88.7:4004
  • Block list, sawtooth block list --url http://192.168.88.7:8008

Node2

  • sudo -u sawtooth sawtooth-validator -vv --endpoint tcp://192.168.88.9:8800 --bind component:tcp://192.168.88.9:4004 --bind network:tcp://192.168.88.9:8800 --peers tcp://192.168.88.7:8800

Misc

Building swatooth-intkey

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