1 Star 0 Fork 0

peter / fabric

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
common.go 611 Bytes
Copy Edit Raw Blame History
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package ccprovider
import (
"path/filepath"
"github.com/hyperledger/fabric/core/config"
)
// GetChaincodeInstallPathFromViper returns the path where chaincodes are installed
func GetChaincodeInstallPathFromViper() string {
return filepath.Join(config.GetPath("peer.fileSystemPath"), "chaincodes")
}
// LoadPackage loads a chaincode package from the file system
func LoadPackage(ccname string, ccversion string, path string) (CCPackage, error) {
return (&CCInfoFSImpl{}).GetChaincodeFromPath(ccname, ccversion, path)
}
1
https://gitee.com/peter_code_git/fabric.git
git@gitee.com:peter_code_git/fabric.git
peter_code_git
fabric
fabric
v1.4.7

Search