Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build-linux-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- run: go version

- name: Build the luxd binaries
run: CGO_ENABLED=0 ./scripts/run_task.sh build -- -tags pebbledb
run: CGO_ENABLED=0 ./scripts/run_task.sh build

- name: Try to get tag from git
if: "${{ github.event.inputs.tag == '' }}"
Expand All @@ -57,7 +57,7 @@ jobs:
RELEASE: "jammy"

- name: Save as Github artifact
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v7
with:
name: amd64
path: ${{ github.workspace }}/luxd-pkg/node-linux-amd64-${{ env.TAG }}.tar.gz
Expand All @@ -81,7 +81,7 @@ jobs:
- run: go version

- name: Build the luxd binaries (native arm64)
run: CGO_ENABLED=0 ./scripts/build.sh -- -tags pebbledb
run: CGO_ENABLED=0 ./scripts/build.sh

- name: Try to get tag from git
if: "${{ github.event.inputs.tag == '' }}"
Expand All @@ -107,7 +107,7 @@ jobs:
RELEASE: "jammy"

- name: Save as Github artifact
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v7
with:
name: arm64
path: ${{ github.workspace }}/luxd-pkg/node-linux-arm64-${{ env.TAG }}.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-macos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
TAG: ${{ env.TAG }}

- name: Save as Github artifact
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v7
with:
name: build
path: node-macos-${{ env.TAG }}.zip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-ubuntu-amd64-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
RELEASE: "jammy"

- name: Save as Github artifact
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v7
with:
name: jammy-amd64
path: /tmp/luxd/luxd-${{ env.TAG }}-amd64.deb
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
RELEASE: "focal"

- name: Save as Github artifact
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v7
with:
name: focal-amd64
path: /tmp/luxd/luxd-${{ env.TAG }}-amd64.deb
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-ubuntu-arm64-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
RELEASE: "jammy"

- name: Save as Github artifact
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v7
with:
name: jammy-arm64
path: /tmp/luxd/luxd-${{ env.TAG }}-arm64.deb
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
RELEASE: "focal"

- name: Save as Github artifact
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v7
with:
name: focal-arm64
path: /tmp/luxd/luxd-${{ env.TAG }}-arm64.deb
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-win-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
Compress-Archive -Path .\build\luxd.exe -DestinationPath .\build\node-win-${{ env.TAG }}-experimental.zip

- name: Save as Github artifact
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v7
with:
name: windows
path: .\build\node-win-${{ env.TAG }}-experimental.zip
111 changes: 65 additions & 46 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,41 +104,56 @@ jobs:
- name: Lint protobuf
shell: bash
run: buf lint proto
# NOTE: Protobuf check disabled - generated files need regeneration
# check_generated_protobuf:
# name: Up-to-date protobuf
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: ./.github/actions/setup-go-for-project
# - uses: bufbuild/buf-setup-action@v1.47.2
# with:
# github_token: ${{ github.token }}
# - name: Install protoc-gen-go tools
# shell: bash
# run: |
# go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.35.1
# go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0
# go install connectrpc.com/connect/cmd/protoc-gen-connect-go@latest
# - shell: bash
# run: scripts/protobuf_codegen.sh
# env:
# CGO_ENABLED: '0'
# - shell: bash
# run: .github/workflows/check-clean-branch.sh
# NOTE: Mock generation check disabled - needs mock file cleanup
# check_mockgen:
# name: Up-to-date mocks
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: ./.github/actions/setup-go-for-project
# - shell: bash
# run: scripts/mock.gen.sh
# env:
# CGO_ENABLED: '0'
# - shell: bash
# run: .github/workflows/check-clean-branch.sh
check_generated_protobuf:
name: Up-to-date protobuf
runs-on: ubuntu-latest
env:
GOPRIVATE: github.com/luxfi/*
GONOSUMDB: github.com/luxfi/*
GOWORK: off
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go-for-project
- name: Configure Git for private modules
shell: bash
run: git config --global url."https://${{ github.token }}@github.com/".insteadOf "https://github.com/"
- name: Install buf
shell: bash
run: |
BUF_VERSION="1.47.2"
curl -sSL "https://github.com/bufbuild/buf/releases/download/v${BUF_VERSION}/buf-Linux-x86_64" -o /usr/local/bin/buf
chmod +x /usr/local/bin/buf
- name: Install protoc-gen-go tools
shell: bash
run: |
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.35.1
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0
go install connectrpc.com/connect/cmd/protoc-gen-connect-go@latest
- shell: bash
run: scripts/protobuf_codegen.sh
env:
CGO_ENABLED: '0'
- shell: bash
run: .github/workflows/check-clean-branch.sh
check_mockgen:
name: Up-to-date mocks
runs-on: ubuntu-latest
env:
GOPRIVATE: github.com/luxfi/*
GONOSUMDB: github.com/luxfi/*
GOWORK: off
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go-for-project
- name: Configure Git for private modules
shell: bash
run: git config --global url."https://${{ github.token }}@github.com/".insteadOf "https://github.com/"
- shell: bash
run: scripts/mock.gen.sh
env:
CGO_ENABLED: '0'
- shell: bash
run: .github/workflows/check-clean-branch.sh
go_mod_tidy:
name: Up-to-date go.mod and go.sum
runs-on: ubuntu-latest
Expand All @@ -156,14 +171,18 @@ jobs:
run: go mod tidy
- shell: bash
run: .github/workflows/check-clean-branch.sh
# NOTE: Image build test disabled - needs docker multi-arch setup
# test_build_image:
# name: Image build
# ...
# NOTE: Antithesis tests disabled - require tests/antithesis/ infrastructure
# test_build_antithesis_luxd_images:
# name: Build Antithesis luxd images
# ...
# test_build_antithesis_xsvm_images:
# name: Build Antithesis xsvm images
# ...
test_build_image:
name: Image build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image (test only)
uses: docker/build-push-action@v5
with:
context: .
push: false
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
output-file: sbom.spdx.json

- name: Upload SBOM
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v7
with:
name: sbom
path: sbom.spdx.json
9 changes: 9 additions & 0 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,20 @@ permissions:
jobs:
fuzz:
runs-on: ubuntu-latest
env:
GOPRIVATE: github.com/luxfi/*
GONOSUMDB: github.com/luxfi/*
GOWORK: off
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Set up Go
uses: ./.github/actions/setup-go-for-project
- name: Configure Git for private modules
shell: bash
run: git config --global url."https://${{ github.token }}@github.com/".insteadOf "https://github.com/"
- name: Run fuzz tests
shell: bash
run: ./scripts/build_fuzz.sh 180 # Run each fuzz test 180 seconds
env:
CGO_ENABLED: '0'
9 changes: 9 additions & 0 deletions .github/workflows/fuzz_merkledb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,20 @@ permissions:
jobs:
MerkleDB:
runs-on: ubuntu-latest
env:
GOPRIVATE: github.com/luxfi/*
GONOSUMDB: github.com/luxfi/*
GOWORK: off
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Set up Go
uses: ./.github/actions/setup-go-for-project
- name: Configure Git for private modules
shell: bash
run: git config --global url."https://${{ github.token }}@github.com/".insteadOf "https://github.com/"
- name: Run merkledb fuzz tests
shell: bash
run: ./scripts/build_fuzz.sh 900 ./x/merkledb # Run each merkledb fuzz tests 15 minutes
env:
CGO_ENABLED: '0'
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The version is supplied as a build argument rather than hard-coded
# to minimize the cost of version changes.
ARG GO_VERSION=1.26.0
ARG GO_VERSION=1.26.1

# ============= Go Installation Stage ================
FROM --platform=$BUILDPLATFORM debian:bookworm-slim AS go-installer
Expand Down
4 changes: 2 additions & 2 deletions LLM.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Lux blockchain node implementation - a high-performance, multi-chain blockchain
**Key Context:**
- Fork of Avalanche with Lux-specific enhancements
- Network ID: 96369 (Lux Mainnet), 96368 (Testnet), 96370 (Devnet)
- Go Version: 1.23.9+
- Database: BadgerDB (primary), PebbleDB support
- Go Version: 1.26.1+
- Database: ZapDB (primary, default)

## Essential Commands

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module github.com/luxfi/node
//
// - If updating between minor versions (e.g. 1.23.x -> 1.24.x):
// - Consider updating the version of golangci-lint (in scripts/lint.sh).
go 1.26
go 1.26.1

exclude github.com/luxfi/geth v1.16.1

Expand Down
Loading