aboutsummaryrefslogblamecommitdiff
path: root/plugin/main.go
blob: 1f2f10717074044b9716ffea9b93f3c1e099b282 (plain) (tree)
1
2
3
4
5
6




                                        
                                                         














                                                                               
package main

import (
	"github.com/hashicorp/go-plugin"

	"github.com/ava-labs/avalanche-go/vms/rpcchainvm"

	"github.com/ava-labs/coreth/plugin/evm"
)

func main() {
	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,
	})
}