Skip to content

A solution for faulty Transaction Processors (TPs) for Docker PBFT network #9

@jallard302

Description

@jallard302

I have been using the Docker version of the Sawtooth test network for a few weeks now for uni and I ran into issues with the transaction processors (TPs). The intkey and xo TPs are missing dependencies and will not run properly using docker-compose.yaml files. To fix this issue, you need to build the transaction processor images yourself and ensure these images are referenced in whatever docker-compose.yaml file you use yourself.

I have modified the default "sawtooth-default-pbft.yaml" file from this repo and this will be provided here for any readers who are expereincing the same issues. I have also provided modified Dockerfiles and a .dockerignore file to build both transaction processors. In addition to these, you will need to clone the Python SDK for Sawtooth as the images are built using this repo. Link here:

https://github.com/splintercommunity/sawtooth-sdk-python.git

Following this you will need to copy the Dockerfiles and .dockerignore I have provided here into the root directory of the Python SDK repo. I have written instructions at the top of the docker-compose file "sawtooth-test-pbft_v2.yaml" if anyone gets stuck. Especially if you're new to this stuff, which I was when I started two weeks ago!!!!

If you have any issues, please drop me a reply here or email me at julianoallard03@gmail.com.

sawtooth-test-pbft_v2.yaml

Dockerfile-installed-bionic-xo.txt

Dockerfile-installed-bionic-intkey.txt

.dockerignore.txt

Note the Dockerfiles and .dockerignore files are .txt files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions