Fix the genesis startup script and add poet-validator-registry TP.
@@ -19,6 +19,7 @@ services:
validator:
depends_on:
- remme-genesis
+ - poet-validator-registry
volumes:
- genesis_data:/genesis/batch
- user_keys:/root/.sawtooth/keys
@@ -31,20 +32,20 @@ services:
sawadm keygen
fi
- sawset genesis -k /root/.sawtooth/keys/key.priv && \
+ sawset genesis -k /etc/sawtooth/keys/validator.priv && \
sawset proposal create -k /etc/sawtooth/keys/validator.priv \
sawtooth.consensus.algorithm=poet \
- sawtooth.poet.report_public_key_pem=\"$$(cat /etc/sawtooth/ias_rk_pub.pem)\" \
- sawtooth.poet.valid_enclave_measurements=\"$$(poet enclave --enclave-module simulator measurement)\" \
- sawtooth.poet.valid_enclave_basenames=\"$$(poet enclave --enclave-module simulator basename)\" \
+ \"sawtooth.poet.report_public_key_pem=$$(cat /etc/sawtooth/simulator_rk_pub.pem)\" \
+ \"sawtooth.poet.valid_enclave_measurements=$$(poet enclave --enclave-module simulator measurement)\" \
+ \"sawtooth.poet.valid_enclave_basenames=$$(poet enclave --enclave-module simulator basename)\" \
sawtooth.poet.enclave_module_name=sawtooth_poet_simulator.poet_enclave_simulator.poet_enclave_simulator \
-o poet_config.batch && \
poet registration create -k /etc/sawtooth/keys/validator.priv \
--enclave-module simulator -o poet_genesis.batch && \
- sawadm genesis config-genesis.batch /genesis/batch/token-proposal.batch poet_config.batch poet_genesis.batch && \
+ sawadm genesis config-genesis.batch poet_config.batch poet_genesis.batch /genesis/batch/token-proposal.batch && \
sawtooth-validator -vv \
--endpoint tcp://$$REMME_VALIDATOR_IP:$$REMME_VALIDATOR_PORT \
@@ -53,6 +54,10 @@ services:
--scheduler parallel
"
+ poet-validator-registry:
+ image: hyperledger/sawtooth-poet-validator-registry-tp:1.0.1
+ entrypoint: poet-validator-registry-tp -vv -C tcp://validator:4004
+
remme-genesis:
build: .
image: remme/remme-core:latest
