Skip to content

chore: bump celestia-app to v9#4963

Merged
walldiss merged 1 commit into
celestiaorg:feature/fibrefrom
walldiss:feat/bump-celestia-app-v9
Apr 23, 2026
Merged

chore: bump celestia-app to v9#4963
walldiss merged 1 commit into
celestiaorg:feature/fibrefrom
walldiss:feat/bump-celestia-app-v9

Conversation

@walldiss
Copy link
Copy Markdown
Member

@walldiss walldiss commented Apr 23, 2026

Summary

`feature/fibre` was still importing `github.com/celestiaorg/celestia-app/v8`, which made the node unable to run against a v9-built consensus binary. This PR bumps every v8 reference across 40 .go files to v9 and updates `go.mod` to pin celestia-app at `v9.0.0-20260422212825-66060fbde7a3` (current tip of `celestia-app/main`).

Scope

  • Pure rename. The v8 → v9 API surface used by celestia-node (`pkg/user`, `x/fibre`, `x/valaddr`, `pkg/appconsts`, `fibre/`, etc.) is source-compatible. No logic changes, no new behavior, no test additions.
  • 103 import statements updated via `perl -pe` across 40 files, then `go mod tidy`.

Verified

Existing bridge-over-consensus coverage passes with `-tags fibre`:

  • `go build -tags fibre ./...` — clean
  • `go build ./...` (no tag) — clean
  • `go vet -tags fibre ./...` — clean (pre-existing `cmd/rpc.go:88` warning unrelated)
  • `go test -tags fibre -count=1 -run TestService_Subscribe ./blob/...` — pass
  • `go test -tags fibre -count=1 -run 'TestSubmission$|TestFibreEscrow' ./api/client/...` — pass:
    • `TestSubmission` drives the bridge + consensus handshake via core gRPC.
    • `TestFibreEscrow` drives the bridge + consensus + fibre module end-to-end (Deposit, QueryEscrowAccount, Withdraw, PendingWithdrawals) — same flow the ev-node adapter goes through.

Per the request in this change: no new tests added; the existing suite is sufficient to confirm the bridge can talk to a v9 consensus endpoint.

🤖 Generated with Claude Code


Open in Devin Review

feature/fibre was still importing github.com/celestiaorg/celestia-app/v8,
so the node could not be built against a v9 consensus binary. Bumps
every v8 reference across 40 .go files to v9 and updates go.mod to
pin celestia-app at v9.0.0-20260422212825-66060fbde7a3 (current tip
of celestia-app/main).

The v8 → v9 API surface used by celestia-node (pkg/user, x/fibre,
x/valaddr, pkg/appconsts, fibre/, etc.) is source-compatible: the
rename was mechanical, and all tagged/untagged packages build
without further code changes.

Verified against the existing bridge-over-consensus test suite with
-tags fibre:

- blob tests pass (Subscribe + GetByHeight paths)
- api/client tests pass:
  - TestSubmission drives bridge + consensus via core gRPC
  - TestFibreEscrow drives bridge + consensus + fibre module (deposit,
    query, withdraw, pending withdrawals) end-to-end

No new tests are added; existing coverage is enough to confirm that
the bridge node can talk to a v9 consensus endpoint.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@walldiss walldiss requested a review from a team as a code owner April 23, 2026 15:17
@walldiss walldiss requested review from vgonkivs and removed request for a team April 23, 2026 15:17
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 5 additional findings in Devin Review.

Open in Devin Review

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Hardcoded "version 8" in validate test not updated after celestia-app v9 bump

The test at header/headertest/validate_test.go:56-58 hardcodes that app version 9 should be rejected with error string "supports up to version 8". In the previous celestia-app bump (v7→v8, commit b74f135a), this test was updated to match the new appconsts.Version. This PR bumps to celestia-app/v9 but does not update the test expectations. If appconsts.Version was incremented to 9 (following the established pattern), version 9 would now be valid and header.Validate() would return nil instead of an error, causing this test case to fail. The production code at header/header.go:116 uses the constant dynamically and is correct regardless — this is an incomplete test migration.

(Refers to lines 56-58)

Prompt for agents
The test in header/headertest/validate_test.go hardcodes that app version 9 should fail validation with error 'supports up to version 8'. If appconsts.Version in celestia-app/v9 has been bumped to 9, this test is now wrong: version 9 would be valid and the test expects an error that won't come. The fix would be to: (1) add version 9 as a valid test case (wantErr: ''), (2) change the invalid test case to version 10 with error string 'supports up to version 9', or better yet, use appconsts.Version dynamically as core/header_test.go:TestBadAppVersion already does. Check the actual value of appconsts.Version in the v9 dependency to confirm.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@walldiss walldiss merged commit 8375e56 into celestiaorg:feature/fibre Apr 23, 2026
17 of 22 checks passed
@walldiss walldiss mentioned this pull request Apr 23, 2026
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants