Skip to content

Commit

Permalink
Merge "a dev chaincode must provide chaincode id"
Browse files Browse the repository at this point in the history
  • Loading branch information
christo4ferris authored and Gerrit Code Review committed Sep 2, 2016
2 parents 2552dd0 + 25f6eaf commit 84e7cc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/chaincode/shim/chaincode.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ func Start(cc Chaincode) error {
}

chaincodename := viper.GetString("chaincode.id.name")
if chaincodename == "" {
return fmt.Errorf("Error chaincode id not provided")
}
err = chatWithPeer(chaincodename, stream, cc)

return err
Expand Down

0 comments on commit 84e7cc1

Please sign in to comment.