hyperledger-archives / education-sawtooth-simple-supply

https://wiki.hyperledger.org/display/LMDWG
Apache License 2.0
51 stars 61 forks source link

Fix Genesis Block Creation #37

Closed danintel closed 5 years ago

danintel commented 5 years ago

Sawtooth 1.2.3 apparently now requires the consensus algorithm and mode to be specified. The message showing the regression is:

Error: The following setting(s) are required at genesis,
but were not included in the genesis batches:
['sawtooth.consensus.algorithm.name', 'sawtooth.consensus.algorithm.version']

Signed-off-by: danintel daniel.anderson@intel.com

danintel commented 5 years ago

I tested the change and verified the above error message no longer appears and that genesis block is now created with Sawtooth 1.2.3:

$ sudo docker exec -it simple-supply-shell bash
root@b0cde6fa48ae:/project/sawtooth-simple-supply# sawtooth block list --url http://sawtooth-rest-api:8008
NUM  BLOCK_ID                                                                                                                          BATS  TXNS  SIGNER
0    69e0907cf22a0aef1de60485082542693f9ad60652a8d9e570c96e5655e3ea8634aa28e504f9814237c6d2e793ba4cbe0e9b798d10a4ab0ac128a28f90b98f30  2     3     03d620...
danintel commented 5 years ago

Fixes https://github.com/hyperledger/education-sawtooth-simple-supply/issues/36