mirror of
https://github.com/luxfi/chains.git
synced 2026-07-27 03:39:41 +00:00
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:
+3
-2
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user