Files
zeekay 61ef7d6ca8 chore: complete corona rename — strip residual corona refs
thresholdvm: bump luxfi core to corona-based pins (drops corona):
- module path: luxfi/chains/thresholdvm -> hanzoai/chains/thresholdvm
  (matches quantumvm/hanzo-evm convention; resolves import cycle once
  upstream luxfi/node/vms/thresholdvm became an alias of luxfi/chains/thresholdvm)
- node v1.24.27 -> v1.28.0 (vm/thresholdvm still concrete; v1.29.x+ ships GPU
  symbols that need luxfi/chains/thresholdvm tracking)
- vm v1.0.39 -> v1.2.3, chains (indirect): pulled to v1.3.6
- main.go: import factory from canonical luxfi/chains/thresholdvm instead of
  the moved-away luxfi/node/vms/thresholdvm

Result: github.com/luxfi/corona fully gone from thresholdvm go.mod/go.sum;
go build ./... green.
2026-06-15 00:45:52 -07:00

42 lines
900 B
Go

// 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"
tvm "github.com/luxfi/chains/thresholdvm"
"github.com/luxfi/sys/ulimit"
"github.com/luxfi/vm/chain"
"github.com/luxfi/vm/rpc"
)
func main() {
if len(os.Args) > 1 && os.Args[1] == "version" {
fmt.Println("Threshold-VM/1.0.0")
os.Exit(0)
}
if err := ulimit.Set(ulimit.DefaultFDLimit, log.Root()); err != nil {
fmt.Fprintf(os.Stderr, "failed to set fd limit: %s\n", err)
os.Exit(1)
}
f := &tvm.Factory{}
raw, err := f.New(log.Root())
if err != nil {
fmt.Fprintf(os.Stderr, "factory error: %s\n", err)
os.Exit(1)
}
vm := raw.(chain.ChainVM)
if err := rpc.Serve(context.Background(), log.Root(), vm); err != nil {
fmt.Fprintf(os.Stderr, "rpc.Serve error: %s\n", err)
os.Exit(1)
}
}