如何部署具有多个验证程序的Hyperledger-Sawtooth网络? [英] How to deploy a hyperledger-sawtooth network with multiple validators?

查看:103
本文介绍了如何部署具有多个验证程序的Hyperledger-Sawtooth网络?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用至少 2个验证器和一些事务处理器来配置锯齿状网络.我正在使用Ubuntu 18.04,因此唯一可行的解​​决方案是使用docker.

I'm trying to configure a sawtooth network with at least 2 Validators and some Transaction Processors. I'm using Ubuntu 18.04 so only possible solution is using docker.

我整天都在寻找一个可行的例子,但仍然没有运气.官方网站上有一个示例此处,但不起作用. Docker映像版本是1.1,这很奇怪,因为Docker Hub上没有这样的版本.此外,它需要一个在任何地方都不存在的图像(hyperledger/sawtooth-poet-engine).

I searched entire day for a working example and still no luck. There is an example on the official website here but not working. The docker images versions is 1.1 which is weird, because there is no such version on docker hub. Furthermore it requires an image (hyperledger/sawtooth-poet-engine) which does not exist anywhere.

我知道主验证器应生成密钥和创世块,而其他验证器应使用该工件.但是第二个验证器的正确配置是什么?它如何从第一个验证器读取生成的工件?

I know that the main validator should generate the keys and genesis block and the other validator[s] should use that artifacts. But what is the right configuration for second validator? How it can read the generated artifacts from first validator?

谢谢!

这是第一个验证程序的配置:

This is the config of first validator:

validator-0:
  image: hyperledger/sawtooth-validator:1.0
  container_name: sawtooth-validator-default-0
  expose:
    - 4004
  ports:
    - "4004:4004"
  entrypoint: "bash -c \"\
      sawadm keygen && \
      sawtooth keygen my_key && \
      sawset genesis -k /root/.sawtooth/keys/my_key.priv && \
      sawadm genesis config-genesis.batch && \
      sawtooth-validator -vv \
        --endpoint tcp://validator:8800 \
        --bind component:tcp://eth0:4004 \
        --bind network:tcp://eth0:8800 \
      \""

推荐答案

您正在将Sawtooth 1.1(未发布的每晚"版本)与已发布的Sawtooth 1.0软件(已发布的最新"版本)一起使用.您有2个选择:

You are using the Sawtooth 1.1 (the unreleased "nightly" build) with the released Sawtooth 1.0 software (the released "latest" build). You have 2 choices:

  1. 遵循Sawooth 1.0文档并使用1.0 .yaml文件,例如 https://sawtooth.hyperledger.org/docs/core/releases/latest/app_developers_guide/docker.html# 通过 https://sawtooth.hyperledger.org/docs/core/releases/latest/sysadmin_guide/installation.html 也就是说,您使用以下密钥和存储库: $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 44FC67F19B2466EA $ sudo apt-add-repository "deb http://repo.sawtooth.me/ubuntu/nightly xenial universe" (注意:选项2尚不可用,因为尚未发布的Sawtooth 1.1映像尚未上载到Docker,并且不可用.)

    Upgrade to the "bleeding edge" unreleased Sawtooth 1.1 software at https://sawtooth.hyperledger.org/docs/core/releases/latest/sysadmin_guide/installation.html That is, you use this key and repository: $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 44FC67F19B2466EA $ sudo apt-add-repository "deb http://repo.sawtooth.me/ubuntu/nightly xenial universe" (Note: option 2 does not work yet because the unreleased Sawtooth 1.1 images have not been uploaded to Docker yet and are not available.)

    重点是使用与您已安装的发行版匹配的文档.抱歉造成混乱.

    The important point is to use the documentation that matches the release you have installed. Sorry for the confusion.

    这篇关于如何部署具有多个验证程序的Hyperledger-Sawtooth网络?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆