Skip to content

fix: allow zero close for untouched channels#343

Open
bpierre wants to merge 1 commit intowevm:mainfrom
bpierre:bpierre/zero-close-untouched-channel
Open

fix: allow zero close for untouched channels#343
bpierre wants to merge 1 commit intowevm:mainfrom
bpierre:bpierre/zero-close-untouched-channel

Conversation

@bpierre
Copy link
Copy Markdown

@bpierre bpierre commented Apr 16, 2026

Summary

  • allow close(0) when a session channel is still untouched (spent = 0, settled = 0)
  • keep the existing strict > settled rule once settlement has advanced
  • add a regression test covering zero-close on an untouched channel

Context

An untouched channel should be able to cooperatively close at 0 instead of falling back to a forced close grace period.

Testing

  • add a regression test in src/tempo/server/Session.test.ts

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.

1 participant