Добавить Hyperledger Orderer в существующий канал во время выполнения - PullRequest
0 голосов
/ 13 марта 2020

Я выполняю все шаги, необходимые для добавления второго заказчика. Любая идея, что мне не хватает?

  1. извлечение канала одноранговой конфигурации config_block.pb -o orderer1-testorg: 7050 - c mychannel12 --tls --cafile / data / testorg-ica-chain. pem
  2. configtxlator proto_decode --input config_block.pb --type common.Block --output config_block. json
  3. jq .data.data [0] .payload.data.config config_block . json> config. json
  4. configtxlator proto_encode --input config. json --type common.Config --output config.pb файл_определенного_конфигурации Содержит сведения о втором заказе в разделе consenters 5.configtxlator proto_encode --input updated_config. json --type common.Config --outputified_config.pb 6.configtxlator compute_update --channel_id mychannel12 --original config.pb --updatedified_config.pb --upput config_update.pb
  5. configtxlator proto_decode --input config_update.pb --type common.ConfigUpdate --output config_update. json
  6. echo '{"payload": {"header": {"channel_header": {" CHANNEL_ID ":" 'mychannel12'», "type": 2}}, "data": {"config_update": '$ (cat config_update. json)'}}} '| JQ. > config_update_in_envelope. json
  7. configtxlator proto_encode --input config_update_in_envelope. json --type common.Envelope --output config_update_in_envelope.pb
  8. обновление однорангового канала -f config_update_b_en 1040 * mychannel12 -o orderer1-testorg: 7050 --tls true --cafile /data/testorg-ica-chain.pem
  9. равноправный канал signconfigtx -f config_update_in_envelope.pb 12.peer выборка канала config config_genesis_block.pb -o orderer1-testorg: 7050 - c mychannel12 --tls --cafile /data/testorg-ica-chain.pem

Я использую следующую строку в orderer.yaml для значения блока генезиса : /data/mychannel12/config_genesis_block.pb

Metrics.Statsd.WriteInterval = 30s Metrics.Statsd.Prefix = "" 2020-03-13 04: 03: 56.384 UT C [заказчик. common.server] Start -> PANI 003 Не удалось проверить блок bootstrap: блок не является блоком системного канала, поскольку в нем отсутствует ConsortiumsConfig pani c: Не удалось проверить блок bootstrap: блок не является системным m блок канала, потому что ему не хватает ConsortiumsConfig

маршрут 1 [выполняется]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore. (* CheckedEntry.Write ( 0xc000263ad0, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 + 0x546 github.com/ hyperledger / fabric / vendor / go .uber.org / zap. (* SugaredLogger.log (0xc00010e1e0, 0x16ad804, 0x1554b7f, 0x25, 0xc0002e1d10, 0x1, 0x1, 0x0, 0x0, 0x0 / g / g), .com / hyperledger / fabric / vendor / go .uber.org / zap / sugar. go: 234 + 0x101 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(* SugaredLogger.Panicf (...) /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 github.com/hyperledger/fabric/ общие / порка. (* FabricLogger.Panicf (...) /opt/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 g

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...