Skip to content

node: deployment preflight accepts FeeRouter/BuybackBurner as a PaymentPool and drops the lane store #2279

Closed

Description

@yigitdot

Problem

check_deployment_preflight (crates/node/src/runtime/mod.rs) identifies the configured blockchain.payment_pool_address by calling PaymentPool.usdc(). FeeRouter and BuybackBurner also expose IERC20 public immutable usdc, so the probe answers for them too.

A node whose config points payment_pool_address at the FeeRouter (or BuybackBurner) passes the preflight. PersistentPoolStateStore::open then rebinds to that address, drops the seller lane state and forfeits the unredeemed vouchers. This is the exact loss the preflight exists to prevent.

Evidence

Found while writing the e2e for #2234. With a seeded seller lane, repointing the node at the snapshot FeeRouter boots the daemon (no exit) and logs:

WARN decdn_node::channel_store: dropping seller lane state, pending settles and watcher checkpoints written against another PaymentPool deployment ... configured_payment_pool=<FeeRouter> dropped_lanes=1 undecodable_lanes=0 forfeited_micro_usdc=20

The #2234 journey uses the TOKEN contract (no usdc()) for its other-contract case instead.

Fix direction

Probe a selector only PaymentPool answers (for example feeRouter(), or a getPool/getWatermark view), or check more than one. Add the FeeRouter case to the #2234 e2e (crates/e2e/tests/deployment_preflight_guard.rs) once the probe rejects it.

Activity

  1. added a commit that references this issue on Oct 1, 2026
    66fff9f
  2. yigitdot commented on Oct 1, 2026

    @yigitdot
    ContributorAuthor

    Fixed in #2280: the preflight now probes PaymentPool.feeRouter(), and the deployment_preflight_guard e2e covers the FeeRouter case.

  3. self-assigned this
    on Oct 1, 2026
  4. yigitdot commented on Oct 1, 2026

    @yigitdot
    ContributorAuthor

    Follow-up in #2280: feeRouter() was not unique either (DecdnGovernor declares it), so the probe is now PaymentPool.getRateBounds(), and the e2e sweeps every contract in the deploy manifest.

  5. added a commit that references this issue on Oct 5, 2026
    b37bbc4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions