Skip to content

Instantly share code, notes, and snippets.

@adi-g15
Last active August 3, 2021 10:13
Show Gist options
  • Save adi-g15/f57039b0608920f6fd304e7e95753020 to your computer and use it in GitHub Desktop.
Save adi-g15/f57039b0608920f6fd304e7e95753020 to your computer and use it in GitHub Desktop.
Sawtooth application, simulating steps

Steps to reproduce problem

  1. wget https://github.com/adi-g15/zeeve-learnings/raw/dev/the-os-cashier/sawtooth-os-cashier-default.yaml
  2. docker-compose -f sawtooth-os-cashier-default.yaml up

Then in another terminal after docker compose completes,

  1. docker exec -it sawtooth-shell-default bash
  2. os-cashier-cli --url http://rest-api:8008 reg username
  3. curl --request POST --header "Content-Type: application/octet-stream" --data-binary @os-cashier.tmp.batches "http://rest-api:8008/batches"

Then, checking the batch status with given link, we see it is "Pending"... 😢

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