我目前正在为某些Hyperledger Fabric链码函数编写一些单元测试,用Go编写。
有些函数需要具有某些属性的用户,或者只需要知道用户的ID。
例如,一些函数使用来自github.com/hyperledger/fabric-chaincode-go/pkg/cid包的下列方法:
cid.GetID()cid.AssertAttributeValue()
我不知道如何创建和/或传递身份/证书时,使用模拟shim包,github.com/hyperledger/fabric-chaincode-go/shimtest和调用失败:failed to get transaction invo
当单元测试或构建我的代码时,我必须使用以下命令:
go test --tags nopkcs11
我正在使用在windows上做衬布。
金门机工作得很好,但每当我跑起来时,我就能看到这样的大量(数百条)信息:
c:\Users\xxxxxxxxx\workspace\go\src\github.com\hyperledger\fabric\bccsp\pkcs11\impl.go:70:24:warning: SessionHandle not declared by package pkcs11 (staticcheck) c:\Users\xxxxxxxxx\workspace\go\sr
我有一个与问题中所指出的完全相同的问题:
如果您选择回答这个问题,请查看链接中的问题,因为我的问题完全相同,但我的环境如下:
OS: RHEL 7.7
Go version: 1.13.7
Node version: 12.13.0
Docker version: 18.09.7 (Client and Engine)
NO INTERNET ACCESS
我使用以下命令执行脚本:
./byfn.sh up -a -s couchdb -l javascript -v
我可以添加到另一个(未回答的)问题的另一件事是peer0.org1.example.c
我正尝试在linux虚拟机中使用以下命令下载fabric-sdk-go库及其所有依赖项。 go get -u github.com/hyperledger/fabric-sdk-go/... 它给出了下面的错误。 # github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/core/operations
../github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/core/operations/sy
我正在尝试从java fabric SDK进行事务处理。我可以从节点正确地查询数据,但在进行事务时,我得到了以下错误:
org.hyperledger.fabric.sdk.exception.ServiceDiscoveryException: The channel is not configured with any peers with the 'discover' role
at org.hyperledger.fabric.sdk.Channel.sendTransactionProposalToEndorsers(Channel.java:3955) ~[
我使用预生成的命令器和的通道工件来运行“dev模式”。
在这里,cli需要图像:超级分类账/fabric-默认情况下,它试图提取最新的标记图像并显示错误。以及抛出错误Error response from daemon: manifest for hyperledger/fabric-tools:latest not found
因此,我拉出图像hyperledger/fabric-tools:x86_64-1.0.0,并用超级分类账/fabric-tools重命名它:最新的(不确定它是否正确的方式)通过:
docker pull hyperledger/fabric-tools:x86_64
我已经将我的core.yaml设置为使用与对等节点相同节点上的CouchDB实例,我没有使用docker,而是直接在节点上使用对等命令。 在第一次运行对等节点start时,我得到以下错误: [36m2020-09-03 17:35:35.619 UTC [kvledger] recoverUnderConstructionLedger -> DEBU 083[0m Recovering under construction ledger
[36m2020-09-03 17:35:35.619 UTC [kvledger] recoverUnderConstructionLedger -
超级分类账-Fabric V2.3.x
同伴V2.3.3
Go V1.16
完全错误:
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not parse as a chaincode install package: error reading as gzip stream: gzip: invalid header
我的设置:
CORE_PEER_TLS_ROOTCERT_FILE=