我是超级账本结构的新手,安装了所有前提条件,超级账本结构fabcar链代码可以正确运行,但是当我在hyperledger fabic链代码中更改fabcar.go并运行它时,将显示旧车并且不接受任何更改。
我读过类似的问题,但答案尚不清楚,请详细告诉我如何删除先前的链代码并安装我在sample-fabric / chaincode / fabcar / go / fabric.go中编写的新链代码
请帮助我,我将非常感激自3天以来一直陷入这个问题。
以下是startFabric.sh文件中的代码
#!/bin/bash
#
# Copyright IBM Corp All Rights Reserved
#
# SPDX-License-Identifier: Apache-2.0
#
# Exit on first error
set -e
# don't rewrite paths for Windows Git Bash users
export MSYS_NO_PATHCONV=1
starttime=$(date +%s)
LANGUAGE=${1:-"golang"}
CC_SRC_PATH=github.com/mychain/go
if [ "$LANGUAGE" = "node" -o "$LANGUAGE" = "NODE" ]; then
CC_SRC_PATH=/opt/gopath/src/github.com/fabcar/node
fi
# clean the keystore
rm -rf ./hfc-key-store
# launch network; create channel and join peer to channel
cd …
Run Code Online (Sandbox Code Playgroud)