feat: add database package and update node to v1.18.18

- Add luxfi/database v1.2.1 dependency
- Update luxfi/node from v1.18.11 to v1.18.18
- Remove deprecated canoto dependency
- Update engine and orchestrator for compatibility
This commit is contained in:
Zach Kelling
2025-09-30 00:04:32 +00:00
parent c98952ac0c
commit 99526deb58
6 changed files with 6 additions and 19 deletions
+1 -3
View File
@@ -290,7 +290,7 @@ func newEngineTestCmd(logger *zap.Logger) *cobra.Command {
// Type-specific tests
switch engineType {
case "lux", "lux":
case "lux":
fmt.Printf(" 🆔 Network ID: %d\n", engine.NetworkID())
fmt.Printf(" ⛓️ Chain ID: %s\n", engine.ChainID())
case "op":
@@ -324,8 +324,6 @@ func createEngine(engineType, name, binary string) (engines.Engine, error) {
// Set default binaries if not specified
if binary == "" {
switch engineType {
case "lux":
binary = "luxd"
case "lux":
binary = "luxd"
case "geth":
-2
View File
@@ -157,8 +157,6 @@ func testEngine(ctx context.Context, logger *zap.Logger, engineType string) erro
// Type-specific config
var binary string
switch engineType {
case "lux":
binary = "luxd"
case "lux":
binary = "luxd"
case "geth":
-1
View File
@@ -16,7 +16,6 @@ type EngineType string
const (
EngineLux EngineType = "lux"
EngineLux EngineType = "lux"
EngineGeth EngineType = "geth"
EngineOP EngineType = "op"
EngineEth2 EngineType = "eth2"
+2 -4
View File
@@ -9,13 +9,14 @@ require (
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.1
github.com/luxfi/consensus v1.19.7
github.com/luxfi/crypto v1.17.4
github.com/luxfi/database v1.2.1
github.com/luxfi/evm v1.16.18
github.com/luxfi/geth v1.16.35
github.com/luxfi/ids v1.1.1
github.com/luxfi/log v1.1.22
github.com/luxfi/math v0.1.1
github.com/luxfi/metric v1.4.0
github.com/luxfi/node v1.18.11
github.com/luxfi/node v1.18.18
github.com/onsi/ginkgo/v2 v2.25.1
github.com/onsi/gomega v1.37.0
github.com/otiai10/copy v1.14.1
@@ -39,7 +40,6 @@ require (
github.com/Masterminds/semver/v3 v3.4.0 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/NYTimes/gziphandler v1.1.1 // indirect
github.com/StephenButtolph/canoto v0.17.2 // indirect
github.com/VictoriaMetrics/fastcache v1.13.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bits-and-blooms/bitset v1.24.0 // indirect
@@ -68,7 +68,6 @@ require (
github.com/ethereum/c-kzg-4844/v2 v2.1.1 // indirect
github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab // indirect
github.com/ethereum/go-verkle v0.2.2 // indirect
github.com/fatih/structtag v1.2.0 // indirect
github.com/ferranbt/fastssz v1.0.0 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/getsentry/sentry-go v0.35.1 // indirect
@@ -106,7 +105,6 @@ require (
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/luxfi/database v1.2.1 // indirect
github.com/luxfi/ledger-lux-go v1.0.0 // indirect
github.com/luxfi/mock v0.1.0 // indirect
github.com/luxfi/trace v0.1.2 // indirect
+2 -8
View File
@@ -10,8 +10,6 @@ github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cq
github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c=
github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE=
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
github.com/StephenButtolph/canoto v0.17.2 h1:kRLJwtYk0bzdGEeEvwHaVmmDm0HFHxrS0VlVN5Hyo7U=
github.com/StephenButtolph/canoto v0.17.2/go.mod h1:IcnAHC6nJUfQFVR9y60ko2ecUqqHHSB6UwI9NnBFZnE=
github.com/VictoriaMetrics/fastcache v1.13.0 h1:AW4mheMR5Vd9FkAPUv+NH6Nhw+fmbTMGMsNAoA/+4G0=
github.com/VictoriaMetrics/fastcache v1.13.0/go.mod h1:hHXhl4DA2fTL2HTZDJFXWgW0LNjo6B+4aj2Wmng3TjU=
github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII=
@@ -131,8 +129,6 @@ github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab h1:rvv6MJ
github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab/go.mod h1:IuLm4IsPipXKF7CW5Lzf68PIbZ5yl7FFd74l/E0o9A8=
github.com/ethereum/go-verkle v0.2.2 h1:I2W0WjnrFUIzzVPwm8ykY+7pL2d4VhlsePn4j7cnFk8=
github.com/ethereum/go-verkle v0.2.2/go.mod h1:M3b90YRnzqKyyzBEWJGqj8Qff4IDeXnzFw0P9bFw3uk=
github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4=
github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94=
github.com/ferranbt/fastssz v1.0.0 h1:9EXXYsracSqQRBQiHeaVsG/KQeYblPf40hsQPb9Dzk8=
github.com/ferranbt/fastssz v1.0.0/go.mod h1:Ea3+oeoRGGLGm5shYAeDgu6PGUlcvQhE2fILyD9+tGg=
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
@@ -294,10 +290,8 @@ github.com/luxfi/metric v1.4.0 h1:FrKHyH7wY4QWeA4Pd8zcxAENS8jbB2WzkPIgHnOkzdA=
github.com/luxfi/metric v1.4.0/go.mod h1:/D/fPALHYbS1JuEyeK0uiAKRX6l4ryExj445KwvMwgI=
github.com/luxfi/mock v0.1.0 h1:IwElfNu+T9sXvzFX6tudPDx1vqPuACRSRdxpD5lxW+o=
github.com/luxfi/mock v0.1.0/go.mod h1:izF+9K0gGzFC9zERn6Po37v46eLdPB+EIsDjL3GLk+U=
github.com/luxfi/node v1.18.10 h1:6hrQHbwaHbyqQeUh5HMplg7IAHFOm88Cq/IBrod0UY4=
github.com/luxfi/node v1.18.10/go.mod h1:fTB6iMiXTBR7W7xrcXKkHYwVG3ula62CEihEPXr51Bg=
github.com/luxfi/node v1.18.11 h1:387m+Rd0AMBgYoBWE3Aai/CpnxfCpjNRt3i11SBJK4k=
github.com/luxfi/node v1.18.11/go.mod h1:fTB6iMiXTBR7W7xrcXKkHYwVG3ula62CEihEPXr51Bg=
github.com/luxfi/node v1.18.18 h1:mq8SWAViXu0zW1eAj6TIs/au58uKqetNg+aMts7zOQI=
github.com/luxfi/node v1.18.18/go.mod h1:fTB6iMiXTBR7W7xrcXKkHYwVG3ula62CEihEPXr51Bg=
github.com/luxfi/trace v0.1.2 h1:KhRZbk2lQQmmYZjdTWcZKCYkLfu7/VUiLFIsWFKhkwg=
github.com/luxfi/trace v0.1.2/go.mod h1:4SleFc5NVbQYEfn6rYafdfxvHJ+QSdkGAIfKiICYvQE=
github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
+1 -1
View File
@@ -91,7 +91,7 @@ func (m *StackManifest) Validate() error {
// Validate engine type
switch e.Type {
case "lux", "lux", "geth", "op", "eth2":
case "lux", "geth", "op", "eth2":
// Valid
default:
return fmt.Errorf("invalid engine type: %s", e.Type)