Add flated structure of all block json files

pull/135/head
Baohua Yang 2019-05-28 10:39:20 +08:00
parent 47921daafc
commit 7a052f8eb2
1 changed files with 3 additions and 3 deletions

View File

@ -49,13 +49,13 @@ done
echo_b "Update the content of orderer genesis file" echo_b "Update the content of orderer genesis file"
if [ -f ${ORDERER0_GENESIS_BLOCK} ]; then if [ -f ${ORDERER0_GENESIS_BLOCK} ]; then
echo_b "Checking existing Orderer.BatchSize.max_message_count in the genesis json" echo_b "Checking existing Orderer.BatchSize.max_message_count in the genesis json"
jq "$MAX_BATCH_SIZE_PATH" ${ORDERER0_GENESIS}.json jq "$MAX_BATCH_SIZE_PATH" ${ORDERER0_GENESIS_BLOCK}.json
echo_b "Creating new genesis json with updated Orderer.BatchSize.max_message_count" echo_b "Creating new genesis json with updated Orderer.BatchSize.max_message_count"
jq "$MAX_BATCH_SIZE_PATH=20" ${ORDERER0_GENESIS}.json > ${ORDERER0_GENESIS}_update.json jq "$MAX_BATCH_SIZE_PATH=20" ${ORDERER0_GENESIS_BLOCK}.json > ${ORDERER0_GENESIS_BLOCK}_update.json
echo_b "Re-Encoding the orderer genesis json to block" echo_b "Re-Encoding the orderer genesis json to block"
configtxlatorEncode "common.Block" ${ORDERER0_GENESIS}_updated.json ${ORDERER0_GENESIS}_update.block configtxlatorEncode "common.Block" ${ORDERER0_GENESIS_BLOCK}_updated.json ${ORDERER0_GENESIS_BLOCK}_update.block
fi fi
echo_b "Stop configtxlator service" echo_b "Stop configtxlator service"