如何在Ubuntu 16.04上为Hyperledger Sawtooth添加事务处理器?

问题描述 投票:0回答:1

问题:我想使用锯齿供应链中的rest-api和事务处理器开发自定义应用程序,如下所述:https://sawtooth.hyperledger.org/docs/core/nightly/0-8/examples/supplychain/overview.html

但是我不知道如何将此事务处理器添加到我的Ubuntu虚拟机中并使用它。锯齿供应链示例仅在docker中提供。但是我不想使用docker并直接在ubuntu上运行它。

有人知道如何添加事务处理器并在Ubunutu 16.04上运行它们吗?

我到目前为止所做的:我按照这些教程创建了两个Ubuntu 16.04 VM,并在两个VM上都安装了hyperledger锯齿:

https://sawtooth.hyperledger.org/docs/core/releases/1.0/app_developers_guide/ubuntu.html

https://sawtooth.hyperledger.org/docs/core/nightly/1-1/app_developers_guide/creating_sawtooth_network.html#ubuntu-add-a-node-to-the-single-node-environment

我成功地在验证者之间建立了联系。我能够使用IntKey事务处理器。

ubuntu-16.04 hyperledger hyperledger-sawtooth
1个回答
0
投票

要添加事务处理程序,请启动TP程序。 Docker文件显示了启动TP的命令行。 TP启动时,它将向验证器注册。例如,查看锯齿供应链应用程序的https://github.com/hyperledger/sawtooth-supply-chain/blob/master/docker-compose.yaml,我看到:

cargo build
supply-chain-tp -v -C tcp://validator:4004

cargo build仅需要在第一次构建TP时完成。

© www.soinside.com 2019 - 2024. All rights reserved.