fix: dexvm VMID type + quantumvm RPC name

- dexvm.VMID: [32]byte → ids.ID (consistent with other 10 VMs)
- quantumvm RPC service: "qvm" → "quantumvm" (matches package + dir)

Removes last vestiges of the old short-name convention.
This commit is contained in:
Hanzo AI
2026-04-13 05:49:35 -07:00
parent c896b30583
commit 7bc8b5ca65
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -19,14 +19,15 @@
package dexvm
import (
"github.com/luxfi/chains/dexvm/config"
"github.com/luxfi/ids"
"github.com/luxfi/log"
"github.com/luxfi/node/vms"
"github.com/luxfi/chains/dexvm/config"
)
var (
// VMID is the unique identifier for the DEX VM
VMID = [32]byte{'d', 'e', 'x', 'v', 'm'}
VMID = ids.ID{'d', 'e', 'x', 'v', 'm'}
_ vms.Factory = (*Factory)(nil)
)
+1 -1
View File
@@ -505,7 +505,7 @@ func (vm *VM) initializeHTTPHandlers() error {
service := &Service{vm: vm}
vm.rpcServer.RegisterCodec(json.NewCodec(), "application/json")
vm.rpcServer.RegisterCodec(json.NewCodec(), "application/json;charset=UTF-8")
return vm.rpcServer.RegisterService(service, "qvm")
return vm.rpcServer.RegisterService(service, "quantumvm")
}
// isShuttingDown returns true if VM is shutting down