Hyperledger Iroha:无法生成创世纪

时间:2018-06-04 09:52:31

标签: hyperledger hyperledger-iroha

我正试图在 Hyperledger Iroha 中生成一个新的genesis-block,如

中所述

https://iroha.readthedocs.io/en/latest/getting_started/index.html#starting-iroha-node

https://hyperledger.github.io/iroha-api/#create-genesis-block

但遗憾的是我不能这样做因为我总是得到相同的错误信息。

$ cat peer.list 
localhost:10001
$ ./iroha-cli --genesis_block --peers_address peer.list
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::out_of_range> >'
what():  bimap<>: invalid key
Aborted (core dumped)

我在我的本地机器上收到此错误,我从头开始使用源代码编译Iroha,以及在Iroha容器中编译。 我认为我有正确的依赖关系,否则我将无法从头开始构建Iroha。另请注意,我可以使用https://iroha.readthedocs.io/en/latest/getting_started/index.html#launching-iroha-daemon中的配置示例正确启动 irohad

非常感谢任何帮助或建议。

2 个答案:

答案 0 :(得分:2)

确实存在一个错误,影响了生成块所需的权限。它现已修复,不应该出现:https://github.com/hyperledger/iroha/pull/1351

答案 1 :(得分:0)

这是hyperledger iroha开发中的一个已知问题,请参见此处:https://github.com/hyperledger/iroha/issues/1362。 当使用Ansible Playbook编译iroha时会出现这种情况。 尝试从系统中卸载Ansible并重新编译iroha,您不应该遇到相同的错误。 显然这只是一种解决方法,你将无法利用安全功能。

相关问题