verkle: document luxfi/go-verkle routing via go.mod replace

verkle_test.go imports ethereum/go-verkle literal so the import matches
the upstream module-path declaration of luxfi/go-verkle@v0.2.2 (which
still declares module github.com/ethereum/go-verkle from upstream rebase).
The replace directive in go.mod routes the actual build to luxfi/go-verkle,
so only luxfi-maintained code is compiled. See LUXFI-FORK.md.

This is the canonical lux pattern (same as luxfi/geth, luxfi/go-ipa):
keep upstream module-path declaration on the fork side, route via replace
on the consumer side.

Refs #230 sweep / #231.
This commit is contained in:
Hanzo AI
2026-04-28 01:10:31 -07:00
parent 59f69a50ab
commit 646ed688e6
+4
View File
@@ -9,6 +9,10 @@ import (
"fmt"
"testing"
// Imported via go.mod replace -> github.com/luxfi/go-verkle v0.2.2.
// luxfi/go-verkle still declares module github.com/ethereum/go-verkle,
// so the import literal must match that declaration. The replace directive
// in go.mod ensures only luxfi-maintained code is compiled. See LUXFI-FORK.md.
upstream "github.com/ethereum/go-verkle"
)