sample_chain/peer/start.go

19 lines
256 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package peer
import (
"schain/config"
"schain/peer/shim"
log "github.com/corgi-kx/logcustom"
)
func Start() {
cs := shim.NewChaincodeServer(config.PeerAddress)
err := cs.Start()
if err != nil {
log.Debug("Peer节点开启失败", err)
}
}