Hyperledger Fabric Chaincode的存储位置在哪里? [英] Where is Hyperledger fabric chaincode store location?
问题描述
我在chancode安装时在cli容器中使用了common对等体.
在对等容器上创建了链码名称+ varsion文件.
(位置为/var/hyperledger/production/chaincodes)
这是什么?链码?
安装后我正在寻找链码.
I used peer commond in cli container on chancode install.
chaincode name + varsion file was made on peer containers.
(location is /var/hyperledger/production/chaincodes)
What is this? chaincode?
I am looking for chaincode after install.
推荐答案
从技术上讲,安装在对等方上的chaincode程序包是protobuf消息的序列化字节. ChainDeploymentSpec消息中的protobuf,该消息在"github.com/hyperledger/fabric/protos/peer"包中定义:
The chaincode package which is installed on the peer is technically the serialized bytes of a protobuf message. The protobuf in a ChainDeploymentSpec message, which is defined in the "github.com/hyperledger/fabric/protos/peer" package:
message ChaincodeDeploymentSpec {
enum ExecutionEnvironment {
DOCKER = 0;
SYSTEM = 1;
}
ChaincodeSpec chaincode_spec = 1;
// Controls when the chaincode becomes executable.
google.protobuf.Timestamp effective_date = 2;
bytes code_package = 3;
ExecutionEnvironment exec_env= 4;
}
实际的链码源文件存储在存储在ChainDeploymentSpec的code_package字段中的序列化存档文件中.
The actual chaincode source files are stored in a serialized archive file stored in the code_package field of the ChainDeploymentSpec.
这篇关于Hyperledger Fabric Chaincode的存储位置在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!