We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I am getting below error while enrolling client. Below is code in main. go I checked config/port/container being up. All looks ok. Any pointers?
package main
import ( "github.com/CognitionFoundry/gohfc" "fmt" "os" )
func main() { kvsore, err := gohfc.NewFileKeyValue("./kvstore") if err != nil { fmt.Printf("Error creating kvstore %s\n", err) os.Exit(1) } client, err := gohfc.NewClientFromJSONConfig("./config.json", kvsore) fmt.Printf("Check1") if err != nil { fmt.Printf("Error creating client %s\n", err) os.Exit(1) }
identity, err := client.Enroll("admin", "adminpw") if err != nil { fmt.Printf("Error enrolling client %s\n", err) os.Exit(1) }
fmt.Printf("Check2")
client.JoinChannel(identity.Certificate,"payments", "DEFAULT",client.Peers, client.Orderers[0])
if err != nil { gohfc.Logger.Debugf("Erro creating chain %s", err) return }
}
The text was updated successfully, but these errors were encountered:
This is for old version.
Sorry, something went wrong.
No branches or pull requests
Hi,
I am getting below error while enrolling client. Below is code in main. go
I checked config/port/container being up. All looks ok. Any pointers?
package main
import (
"github.com/CognitionFoundry/gohfc"
"fmt"
"os"
)
func main() {
kvsore, err := gohfc.NewFileKeyValue("./kvstore")
if err != nil {
fmt.Printf("Error creating kvstore %s\n", err)
os.Exit(1)
}
client, err := gohfc.NewClientFromJSONConfig("./config.json", kvsore)
fmt.Printf("Check1")
if err != nil {
fmt.Printf("Error creating client %s\n", err)
os.Exit(1)
}
fmt.Printf("Check2")
client.JoinChannel(identity.Certificate,"payments", "DEFAULT",client.Peers, client.Orderers[0])
}
The text was updated successfully, but these errors were encountered: