【发布时间】:2020-03-29 19:14:22
【问题描述】:
我正在尝试在 Sawtooth 上使用 dazl 客户端部署此 https://github.com/digital-asset/dazl-client/tree/master/samples/ping-pong DAML 智能合约。基于 daml-on 锯齿示例https://github.com/blockchaintp/daml-on-sawtooth。我使用了这个命令:
- cd /home/.../daml-on-sawtooth-master
导出 ISOLATION_ID=my-local-build
bin/build.sh
- cd /home/.../daml-on-sawtooth-master
daml 账本分配方 Alice Bob --host localhost --port 9000
daml ledger upload-dar --host localhost --port 9000 /home/.../.daml/dist/pingpong-1.0.0.dar
daml ledger navigator --host localhost --port 9000
到目前为止一切正常。我可以访问 navigator 和 daml-on-sawtooth-tracer
但是,当我尝试从 dazl 发送交易时
- /home/.../samples/ping-pong/pingpong pipenv 运行 python3 main.py --url http://localhost:9000
我收到此错误: [错误] 2020-03-29 20:13:13,409 |晕 |尝试发送命令失败! 回溯(最近一次通话最后): 文件“/home/usr/.local/share/virtualenvs/bot-m0tvQ3xh/lib/python3.7/site-packages/dazl/client/_party_client_impl.py”,第 415 行,在 main_writer 等待 submit_command_async(客户端,p,命令) 运行中的文件“/home/usr anaconda3/lib/python3.7/concurrent/futures/thread.py”,第 57 行 结果 = self.fn(*self.args, **self.kwargs) 文件“/home/usr/.local/share/virtualenvs/bot-m0tvQ3xh/lib/python3.7/site-packages/dazl/protocols/v1/grpc.py”,第 42 行,在 lambda:self.connection.command_service.SubmitAndWait(request)) 调用中的文件“/home/usr/.local/share/virtualenvs/bot-m0tvQ3xh/lib/python3.7/site-packages/grpc/_channel.py”,第 826 行 返回_end_unary_response_blocking(状态,调用,假,无) _end_unary_response_blocking 中的文件“/home/usr/.local/share/virtualenvs/bot-m0tvQ3xh/lib/python3.7/site-packages/grpc/_channel.py”,第 729 行 提高_InactiveRpcError(状态) grpc._channel._InactiveRpcError: <_inactiverpcerror of rpc status="StatusCode.INVALID_ARGUMENT" details="“无效参数:命令" ttl debug_error_string="{" created ipv6>
【问题讨论】:
标签: python hyperledger hyperledger-sawtooth daml