chore(chains): remove dexvm/plugin — gRPC transport, ZAP-native only

//go:build grpc importing node/vms/rpcchainvm. Unbuildable (Makefile takes the
cmd/plugin branch), unreferenced, and a second transport where ZAP is the one.
All 11 sibling VMs have cmd/plugin and only cmd/plugin.
This commit is contained in:
zeekay
2026-07-25 12:26:39 -07:00
parent b463e0f236
commit 097cac64e3
2 changed files with 0 additions and 76 deletions
-37
View File
@@ -1,37 +0,0 @@
//go:build grpc
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package main
import (
"context"
"fmt"
"os"
"github.com/luxfi/log"
"github.com/luxfi/node/version"
"github.com/luxfi/chains/dexvm"
"github.com/luxfi/node/vms/rpcchainvm"
"github.com/luxfi/sys/ulimit"
)
func main() {
versionStr := fmt.Sprintf("DEX-VM/1.0.0 [node=%s, rpcchainvm=%d]", version.Current, version.RPCChainVMProtocol)
// Set file descriptor limit
if err := ulimit.Set(ulimit.DefaultFDLimit, log.Root()); err != nil {
fmt.Printf("failed to set fd limit: %s\n", err)
os.Exit(1)
}
// Create the DEX ChainVM (wrapper around functional VM)
vm := dexvm.NewChainVM(log.Root())
fmt.Printf("Starting %s\n", versionStr)
if err := rpcchainvm.Serve(context.Background(), log.Root(), vm); err != nil {
fmt.Printf("rpcchainvm.Serve error: %s\n", err)
os.Exit(1)
}
}
-39
View File
@@ -1,39 +0,0 @@
//go:build !grpc
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package main
import (
"context"
"fmt"
"os"
"github.com/luxfi/log"
"github.com/luxfi/node/version"
"github.com/luxfi/chains/dexvm"
"github.com/luxfi/sys/ulimit"
"github.com/luxfi/vm/rpc"
)
func main() {
versionStr := fmt.Sprintf("DEX-VM/1.0.0 [node=%s, rpcchainvm=%d]", version.Current, version.RPCChainVMProtocol)
// Set file descriptor limit
if err := ulimit.Set(ulimit.DefaultFDLimit, log.Root()); err != nil {
fmt.Printf("failed to set fd limit: %s\n", err)
os.Exit(1)
}
// Create the DEX ChainVM (wrapper around functional VM)
vm := dexvm.NewChainVM(log.Root())
fmt.Printf("Starting %s\n", versionStr)
// Use vm/rpc.Serve which handles both ZAP and gRPC transports
if err := rpc.Serve(context.Background(), log.Root(), vm); err != nil {
fmt.Printf("rpc.Serve error: %s\n", err)
os.Exit(1)
}
}