超级账本结构-如何删除对等点上的链码? [英] hyperledger fabric - How to remove a chaincode on peer?

查看:506
本文介绍了超级账本结构-如何删除对等点上的链码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在同伴上安装了两个chaincode:

I installed two chaincode on a peer:

☁  basic-network [master] ⚡  ../../bin/peer chaincode list --installed
2018-06-25 10:37:44.825 CST [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-06-25 10:37:44.825 CST [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-06-25 10:37:44.825 CST [msp/identity] Sign -> DEBU 003 Sign: plaintext: 0A9C070A5C08031A0C08F8AAC1D90510...74616C6C6564636861696E636F646573
2018-06-25 10:37:44.825 CST [msp/identity] Sign -> DEBU 004 Sign: digest: 3F5F76846525A16930FC348CB24BC6D7C989EAF9D23E090D339C5D0B65E09D0E
Get installed chaincodes on peer:
Name: r_test_cc6, Version: 1.0, Path: chaincode_example02/go, Id: c7d2878644787e34a25b1e4e46703c7da301a830b68eba8e71ba7cadd2fbd480
Name: r_test_cc6, Version: 1.1, Path: github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02/go, Id: 42583a192be4d33bc2ddc85b3e061971667533019d431729bbac80f8844a00fe
2018-06-25 10:37:44.828 CST [main] main -> INFO 005 Exiting.....

我想在同级上removedelete chaincode.我该怎么办?

I want to remove or delete the chaincode on a peer. How can I do this?

推荐答案

要删除对等方上的链码,您需要:

To remove a chaincode on a peer you need to:

从/var/hyperledger/production/chaincodes下的对等方文件系统中删除链码

Delete the chaincode from the file system of the peer under /var/hyperledger/production/chaincodes

这篇关于超级账本结构-如何删除对等点上的链码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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