Skip to content

e2e G-NODE-01: node onboarding full sequence (bare → accepting delivery) #1030

Closed

Description

@alpergundogdu

Depends on: e2e harness (chain + node + assertion fixtures).

  • Setup: anvil + deployed contracts; fresh node fixture, no prior state.
  • Steps: run decdn setup flow → assert TOKEN approved, bond() succeeded with bond ≥ bond_required, registerNode bound NodeId↔address; start daemon → assert it fetched rate bounds, synced blacklist, joined gossip; issue a client fetch → assert paid delivery succeeds.
  • Negative: under-bonded bond() reverts; daemon refuses paid delivery before registration is confirmed on-chain; NodeId re-register by a different address rejected.

Spec anchor: internal/Product/gaps-and-e2e-test-specs.md#g-node-01.

Activity

  1. added
    prio:high
    kind:test
    on Jun 30, 2026
  2. yigitdot commented on Jul 18, 2026

    @yigitdot
    Contributor

    Triage note for a later run: automated dispatch skipped this because the daemon never reads rate bounds from chain.

    grep -rn 'getRateBounds\|rateBounds' crates/ returns zero hits in Rust. crates/common/src/config/types.rs:725 documents rate_floor/rate_ceiling as a "locally enforced stand-in for the on-chain getRateBounds()" — nothing syncs ratified bounds into a running node.

    So the load-bearing assertion here (a ratified on-chain param changing live daemon behavior / the node having fetched its rate bounds) cannot be written yet. This is blocked on #1172, which is itself blocked on an open decision (chain-vs-local-config precedence — see the note there).

  3. thiras commented on Aug 1, 2026

    @thiras
    Contributor

    Audit note (2026-08-01, HEAD b2a9651): the triage blocker is lifted — on-chain rate bounds now sync into the daemon (#1357, closing #1172) and are e2e-tested in crates/e2e/tests/g_gov_02_rate_bounds.rs (asserts getRateBounds() flows into the live probe quote).

    Partial coverage of this journey already exists: smoke.rs (onboard on-chain → paid delivery), cli_setup_partial.rs (mid-sequence failure reporting), g_node_06_unbond.rs. The uncovered residue is the negatives as a single journey: under-bonded bond() revert, refusing paid delivery pre-registration, and NodeId re-register by a different address. Suggest scoping the issue down to those.

  4. moved this from Backlog to In progress in deCDNon Aug 20, 2026
  5. moved this from In progress to Done in deCDNon Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:testprio:high

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions