Skip to content

undefined: libp2p.NoEncryption error prevents application to compile and run #14

@grempe

Description

@grempe

From blog post:

https://medium.com/coinmonks/code-a-simple-p2p-blockchain-in-go-46662601f417

If not commented out, this line breaks compilation of the sample program:

https://github.com/mycoralhealth/blockchain-tutorial/blob/master/p2p/main.go#L74

linter declares undefined libp2p.NoEncryption

Trying to run it results in:

$ go run main.go -l 10000 -secio
# command-line-arguments
./main.go:75:23: undefined: libp2p.NoEncryption

Commenting it out allows the program to run as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions