Files
zeekay 5e84987985 chore: complete corona rename — strip residual corona refs
thresholdvm: bump luxfi core to corona-based pins (drops corona):
- module path: luxfi/chains/thresholdvm -> zooai/chains/thresholdvm
  (resolves import cycle once upstream luxfi/node/vms/thresholdvm became
  an alias of luxfi/chains/thresholdvm)
- node v1.24.27 -> v1.29.3 (transitive via luxfi/chains v1.3.7)
- vm v1.0.39 -> v1.2.0, chains -> v1.3.7
- 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:47:22 -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)
}
}