hyperledger iroha 设置配置文件和 Gas 费

发布于 2025-01-10 05:46:27 字数 991 浏览 2 评论 0原文

正在测试 iroha 使用 docker 映像让它发挥作用,我没有克隆示例存储库,因为那里有许多 *.config 文件和 *.sample 文件,我不明白哪个是做什么用的,所以我只创建了一个文件配置。 docker 并将其添加到其中。

{
  "block_store_path" : "/tmp/block_store/",
  "torii_port" : 50051,
  "internal_port" : 10001,
  "database": {
    "type": "postgres",
    "host": "some-postgres",
    "port": 5432,
    "user": "postgres",
    "password": "mysecretpassword",
    "working database": "iroha_default",
    "maintenance database": "postgres"
  },
  "max_proposal_size" : 10,
  "proposal_delay" : 5000,
  "vote_delay" : 5000,
  "mst_enable" : false,
  "mst_expiration_time" : 1440,
  "max_rounds_delay": 3000,
  "proposal_creation_timeout": 3000,
  "stale_stream_max_rounds": 2
}

我的问题是使用数据库时需要block_store_path,它将用于将数据库存储在docker卷中,还有entrypoint.sh它的用途是什么以及可以使用吗使用 docker 容器会导致如何传递 irohad 标志,例如 -drop_state-reuse_state

Iroha 开箱即用,不支持交易的 Gas 费,但是否可以使用 Hyperledger Burrow 或其他一些方法来实现这一点

Am testing out iroha got it to function using the docker image, I did not clone the example repository cause there where many *.config files and *.sample files I did not understand which is for what, so I just created one file config.docker and added this in it.

{
  "block_store_path" : "/tmp/block_store/",
  "torii_port" : 50051,
  "internal_port" : 10001,
  "database": {
    "type": "postgres",
    "host": "some-postgres",
    "port": 5432,
    "user": "postgres",
    "password": "mysecretpassword",
    "working database": "iroha_default",
    "maintenance database": "postgres"
  },
  "max_proposal_size" : 10,
  "proposal_delay" : 5000,
  "vote_delay" : 5000,
  "mst_enable" : false,
  "mst_expiration_time" : 1440,
  "max_rounds_delay": 3000,
  "proposal_creation_timeout": 3000,
  "stale_stream_max_rounds": 2
}

My question is block_store_path required when using a database will it be used to store the db in the docker volume, also the entrypoint.sh what is it for and can it be used with docker containers cause how can you pass irohad Flags like -drop_state or -reuse_state.

Iroha out the box does not support gas fees for transactions but is it possible using the Hyperledger Burrow or some other method to get to do so

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文