mirror of
https://github.com/luxfi/node.git
synced 2026-07-27 03:39:39 +00:00
Two compatibility seams that downstream consumers need post-Z-Wing restructure: 1. proto/pb/* stubs (build tag grpc) — every grpc-tagged file under proto/<name>/<name>_grpc.go (and the legacy proto/rpcdb/rpcdb_grpc.go) imports proto/pb/<name>. Those dirs were empty (git ignores empty dirs), so consumers' `go mod tidy` walked the imports under the grpc tag and failed to resolve the package. Default builds use ZAP and never enter these stubs; the grpc-tag path now compiles cleanly even though the protobuf types themselves still need regeneration when someone actually wants the gRPC transport. 2. vms/dexvm/dexvm.go — re-export shim for the canonical chains/dexvm package. The DEX VM moved out of node/vms/dexvm into github.com/luxfi/chains/dexvm; existing callers (the tenant repo/ node, etc.) keep building unchanged. Default build clean; grpc-tagged build also resolves. No on-the-wire behaviour change in the ZAP default path.
20 lines
749 B
Go
20 lines
749 B
Go
//go:build grpc
|
|
|
|
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
// Package rpcdb is the protobuf-generated wire-types package referenced
|
|
// by the grpc-tagged transport in proto/rpcdb/rpcdb_grpc.go (or its
|
|
// legacy single-file form). Default builds use ZAP and never reach
|
|
// this package; the build tag here matches the grpc-tagged consumers
|
|
// so default builds skip it cleanly.
|
|
//
|
|
// To re-generate the actual protobuf types (when the grpc transport
|
|
// is needed), run:
|
|
//
|
|
// protoc -I=proto/ --go_out=proto/pb/ proto/rpcdb/rpcdb.proto
|
|
//
|
|
// in the node root. Until that's done, this stub keeps "go mod tidy"
|
|
// happy while the canonical wire format stays ZAP.
|
|
package rpcdb
|