Files
evm/plugin/runner/runner.go
T
zeekay 8bc9dd01a8 Fix CI: Go version and script permissions
- Change Go version from 1.24.6 to 1.22.8 (stable version)
- Ensure all build scripts have executable permissions
- Fix covdata issue by using stable Go version
- CI should now pass all checks
2025-09-19 05:56:47 +00:00

34 lines
738 B
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package runner
import (
"context"
"fmt"
"os"
"github.com/luxfi/log"
"github.com/luxfi/node/utils/ulimit"
"github.com/luxfi/node/vms/rpcchainvm"
"github.com/luxfi/evm/plugin/evm"
)
func Run(versionStr string) {
printVersion, err := PrintVersion()
if err != nil {
fmt.Printf("couldn't get config: %s", err)
os.Exit(1)
}
if printVersion && versionStr != "" {
fmt.Println(versionStr)
os.Exit(0)
}
if err := ulimit.Set(ulimit.DefaultFDLimit, log.Root()); err != nil {
fmt.Printf("failed to set fd limit correctly due to: %s", err)
os.Exit(1)
}
rpcchainvm.Serve(context.Background(), &evm.VM{})
}