Skip to content

avalanchego coreth communcation #1057

@huahuayu

Description

@huahuayu

Hi, I can see that coreth is avalanchego's plugin, and is implemented by go-plugin, also in the doc there is a sinppets shows how to make a plugin to communicate with avalanchgo by grpc.

But in discord developer-chat, @jpop32 said coreth is in-process to avalanchego so it probably doesn't use grpc. Subnet VMs do which makes me very confused.

coreth do started a grpc server(link) , it's useless?

    plugin.Serve(&plugin.ServeConfig{
        HandshakeConfig: rpcchainvm.Handshake,
        Plugins: map[string]plugin.Plugin{
            "vm": rpcchainvm.New(&evm.VM{}),
        },

        // A non-nil value here enables gRPC serving for this plugin...
        GRPCServer: plugin.DefaultGRPCServer,
    })

Could someone clarify this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions