为什么我可以在Hyperledger Composer REST中提交带有事务的transactionID? [英] Why can I submit a transactionID with a transaction in hyperledger composer REST?

查看:109
本文介绍了为什么我可以在Hyperledger Composer REST中提交带有事务的transactionID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Composer REST服务器允许我使用事务输入提交一个transactionID.如果我提供了transactionID,则该交易将被拒绝.有没有一种方法可以从输入中删除该字段,以便服务器忽略客户端提交的事务ID?

Composer REST server allows me to submit a transactionID with my transaction input. The transaction is rejected if I supply a transactionID. Is there a way to remove the field from the input so that the server ignores client submitted transaction id?

推荐答案

在开始从头开始安装Hyperledger作曲家和结构之前,我面临着类似的问题.从那时起,我意识到我已经使用了不赞成使用的链接来安装npm.我遇到了一堆我忽略的错误.

I was facing a similar issue till I started installing my hyperledger composer and fabric from scratch. That's when I realised that I had used a deprecated link for installing npm. I had encountered a bunch of errors that I had ignored.

按照此处给出的步骤进行操作对于我来说是正确安装npm的. https://www.sitepoint.com/beginners-guide-node-package -经理/ 我还提到了 https://hyperledger.github.io/composer/最新/安装/installing-prereqs.html ,以防任何命令无效.

following the steps given here worked for me, for installing npm correctly. https://www.sitepoint.com/beginners-guide-node-package-manager/ I also referred to https://hyperledger.github.io/composer/latest/installing/installing-prereqs.html in case any command did not work.

正确安装后,您将能够删除transactionIdtimestamp而不会遇到任何错误.

after correct installation, you will be able to remove transactionId and timestamp without encountering any error.

这篇关于为什么我可以在Hyperledger Composer REST中提交带有事务的transactionID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆