Hyperledger Iroha-运行示例代码时出现MST_EXPIRED错误

时间:2018-11-16 22:30:26

标签: hyperledger hyperledger-iroha

启动了一个Iroha节点docker容器,当我通过命令行工具提交事务时,一切正常。但是,当我尝试运行示例代码(java版本和节点版本)时,遇到状态为MST_EXPIRED的错误。 mst_enabled配置为false,默认示例代码中未进行任何更改。

示例的输出日志(java版本,节点相同):

Hash of the transaction: 
a7ea8d22ed0ec3b0426e58503d260cc98c186dc7d81cdb8c6c02c3ad5c709b27
Status of the transaction is: MST_EXPIRED
Your transaction wasn't committed

Iroha容器的输出日志:

[2018-11-14 13:13:43.918089622][th:40][info] TxProcessor handle batch
[2018-11-14 13:13:43.918116295][th:40][info] TxProcessor propagating batch to PCS
[2018-11-14 13:13:43.918169891][th:40][info] PCS propagate batch
[2018-11-14 13:13:43.918177499][th:40][info] OrderingGate propagate batch, account_id: admin@test
[2018-11-14 13:13:43.918186593][th:40][info] AsyncGrpcClient Propagate transaction batch (on transport)
[2018-11-14 13:13:43.918550129][th:38][info] AsyncGrpcClient OrderingServiceTransportGrpc::onBatch
[2018-11-14 13:13:43.918591326][th:38][info] OrderingServiceImpl Queue size is 1
[2018-11-14 13:13:43.941924884][th:32][info] OrderingServiceImpl Start proposal generation
[2018-11-14 13:13:43.942369144][th:32][info] StorageImpl create ordering service persistent state
[2018-11-14 13:13:43.942390879][th:32][info] PostgresOrderingServicePersistentState Save proposal_height in ordering_service_state 4
[2018-11-14 13:13:43.969640150][th:32][info] AsyncGrpcClient OrderingServiceTransportGrpc::publishProposal
[2018-11-14 13:13:43.970038906][th:38][info] AsyncGrpcClient receive proposal
[2018-11-14 13:13:43.970410273][th:38][info] AsyncGrpcClient transactions in proposal: 1
[2018-11-14 13:13:43.970426458][th:38][info] OrderingGate Received new proposal, height: 3
[2018-11-14 13:13:43.970459548][th:34][info] OrderingGate Pass the proposal to pipeline height 3
[2018-11-14 13:13:43.970473925][th:34][info] Simulator process proposal
[2018-11-14 13:13:43.970904726][th:34][info] SFV transactions in proposal: 1
[2018-11-14 13:13:43.973084613][th:34][info] SFV transactions in verified proposal: 1
[2018-11-14 13:13:43.973217877][th:34][info] Simulator process verified proposal
[2018-11-14 13:13:43.973431873][th:34][info] YacGate vote for block (d152f85b155a8e9a87e4ab0ab0a8e3c3b54a731491e29d59e83b922ffae5532e, Hash: [d152f85b155a8e9a87e4ab0ab0a8e3c3b54a731491e29d59e83b922ffae5532e ])
[2018-11-14 13:13:43.973935258][th:34][info] YAC Order for voting: {0.0.0.0:10001}
[2018-11-14 13:13:43.974084224][th:34][info] YAC Vote for round (3, 1), hash (d152f85b155a8e9a87e4ab0ab0a8e3c3b54a731491e29d59e83b922ffae5532e, d152f85b155a8e9a87e4ab0ab0a8e3c3b54a731491e29d59e83b922ffae5532e)
[2018-11-14 13:13:43.974220122][th:34][info] AsyncGrpcClient Send votes bundle[size=1] to 0.0.0.0:10001
[2018-11-14 13:13:43.974269361][th:34][info] TxProcessor on stateful validation success: a7ea8d22ed0ec3b0426e58503d260cc98c186dc7d81cdb8c6c02c3ad5c709b27
[2018-11-14 13:13:43.974313290][th:34][info] IROHAD ~~~~~~~~~| PROPOSAL ^_^ |~~~~~~~~~ 
[2018-11-14 13:13:43.974463906][th:42][info] AsyncGrpcClient Receive votes[size=1] from ipv4:127.0.0.1:39408
[2018-11-14 13:13:43.974669567][th:42][info] ProposalStorage Vote with round [3, 1] and hashes [d152f85b155a8e9a87e4ab0ab0a8e3c3b54a731491e29d59e83b922ffae5532e, d152f85b155a8e9a87e4ab0ab0a8e3c3b54a731491e29d59e83b922ffae5532e] looks valid
[2018-11-14 13:13:43.974679308][th:42][info] YacBlockStorage Vote with rounds (3, 1) and hashes (d152f85b155a8e9a87e4ab0ab0a8e3c3b54a731491e29d59e83b922ffae5532e, d152f85b155a8e9a87e4ab0ab0a8e3c3b54a731491e29d59e83b922ffae5532e) inserted
[2018-11-14 13:13:43.974684799][th:42][info] YacBlockStorage Votes in storage [1/1]
[2018-11-14 13:13:43.974691104][th:42][info] YAC Propagate state (3, 1) to whole network
[2018-11-14 13:13:43.974759898][th:42][info] AsyncGrpcClient Send votes bundle[size=1] to 0.0.0.0:10001
[2018-11-14 13:13:43.974932023][th:38][info] AsyncGrpcClient Receive votes[size=1] from ipv4:127.0.0.1:39408
[2018-11-14 13:13:43.975272280][th:38][info] YAC Pass outcome for (3, 1) to pipeline
[2018-11-14 13:13:43.975306433][th:38][info] YacGate consensus: commit top block: height 3, hash d152f85b155a8e9a87e4ab0ab0a8e3c3b54a731491e29d59e83b922ffae5532e
[2018-11-14 13:13:43.975316694][th:38][info] synchronizer processing commit
[2018-11-14 13:13:43.975782890][th:38][info] ChainValidator validate chain...
[2018-11-14 13:13:43.975896120][th:38][info] MutableStorage Applying block: height 3, hash d152f85b155a8e9a87e4ab0ab0a8e3c3b54a731491e29d59e83b922ffae5532e
[2018-11-14 13:13:43.975907314][th:38][info] ChainValidator validate block: height 3, hash d152f85b155a8e9a87e4ab0ab0a8e3c3b54a731491e29d59e83b922ffae5532e
[2018-11-14 13:13:43.985618510][th:38][info] IROHAD ~~~~~~~~~| COMMIT =^._.^= |~~~~~~~~~ 
[2018-11-14 13:13:43.985661598][th:38][info] TxProcessor on commit committed: a7ea8d22ed0ec3b0426e58503d260cc98c186dc7d81cdb8c6c02c3ad5c709b27

但是,似乎资产已创建,但是查询返回错误。 有人可以帮忙吗?看来我是唯一遇到此问题的人! 谢谢。

1 个答案:

答案 0 :(得分:1)

这可能是由于库版本过旧而发生的。请尝试以下一种更新的方法:https://artifact.soramitsu.co.jp/iroha/bindings/java/或使用贡献者提供的新Java库:https://github.com/Warchant/iroha-pure-java-它很好,已经在基于Iroha的某些项目中使用。

相关问题