You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
node: service-level test that the shutdown redeem sweep applies the configured floor #2235
area:nodedecdn-node daemon: runtime, handlers, admin RPC, serve patharea:paymentsPools, vouchers, redeem, reclaim, staking (incentive crate and chain)kind:testTest coverage, flakes, fixtures or the e2e harnessprio:lowWhen convenientstatus:mainnet-blockingMust land before the mainnet deployment
A test that constructs a PoolSettlementService against a mocked provider, seeds one lane below blockchain.redeem_threshold_micro_usdc, calls shutdown(), and asserts no redeemMany was submitted (and, with the lane above the floor, that one was).
Why
final_redeem_sweep passes self.redeem_threshold (crates/node/src/payment_settlement.rs:445), and the docs now state that every path — graceful shutdown included — applies the configured per-chunk floor. Nothing fails if someone reinserts a U256::ZERO floor at that call site: chunk_redemptions_zero_floor_keeps_everything and a_zero_floor_still_reads_every_lane test the zero-floor mechanics, the opposite direction. The mocked-provider patterns in the same file (a_sub_floor_plan_set_reads_nothing_from_the_chain) may extend to service construction; if they do not, this needs a small bootstrap seam.
History: the only zero-floor caller was the close-redeem path removed in #1761. Docs claiming shutdown used a zero floor misled a review on #2191 (see the docs/runbook.md thread); this test keeps the corrected canon honest.
area:nodedecdn-node daemon: runtime, handlers, admin RPC, serve patharea:paymentsPools, vouchers, redeem, reclaim, staking (incentive crate and chain)kind:testTest coverage, flakes, fixtures or the e2e harnessprio:lowWhen convenientstatus:mainnet-blockingMust land before the mainnet deployment
Activity